CN115189994A - Data synchronization method and device and computer readable storage medium - Google Patents

Data synchronization method and device and computer readable storage medium Download PDF

Info

Publication number
CN115189994A
CN115189994A CN202210801060.8A CN202210801060A CN115189994A CN 115189994 A CN115189994 A CN 115189994A CN 202210801060 A CN202210801060 A CN 202210801060A CN 115189994 A CN115189994 A CN 115189994A
Authority
CN
China
Prior art keywords
parameter
instances
instance
management
time period
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.)
Granted
Application number
CN202210801060.8A
Other languages
Chinese (zh)
Other versions
CN115189994B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210801060.8A priority Critical patent/CN115189994B/en
Publication of CN115189994A publication Critical patent/CN115189994A/en
Application granted granted Critical
Publication of CN115189994B publication Critical patent/CN115189994B/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/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/0803Configuration setting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The application discloses a data synchronization method and device and a computer readable storage medium, relates to the technical field of communication, and is used for ensuring that equipment data stored in a management and control system is synchronized with actual data of equipment. The method comprises the following steps: when the management and control system receives the parameter value change of the multiple instances, the management and control system can determine the multiple parameter instances associated with the multiple instances by querying a state association knowledge gallery comprising the multiple instances with state association relations, and combine the multiple parameter instances to remove overlapped parameter instances. Therefore, the management and control device can respectively inquire the current parameter values of the parameter instances after the duplication removal. Then, the management and control system can replace the stored parameter values of the multiple parameter instances with the obtained current parameter values of the multiple parameter instances, so that the synchronism of the data of the multiple parameter values stored in the management and control system and the data of the parameter instances of the multiple devices to be managed is ensured.

Description

Data synchronization method and device and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, and in particular, to a data synchronization method and apparatus, and a computer-readable storage medium.
Background
The management and control system of the operator network is mainly used for managing professional network equipment. And the southbound interface of the management and control system is directly connected with each device. Common southbound interface protocols include Simple Network Management Protocol (SNMP) protocol, network configuration (Netconf) protocol, and the like. For example, the functions of the management and control system include topology management, configuration management, resource management, alarm management, performance management, log management, user management, and the like. Based on the functions, the management and control system can realize management and control of all the layers of the equipment.
In order to realize the management and control of the management and control system on the device, the data such as the device configuration, the state and the like stored on the management and control system must be consistent with the data of the device, and the real-time performance of the data of the device should be ensured. In general, when an initial online device is managed by a management and control system through an SNMP protocol, the data of all devices can be queried once, so as to ensure data synchronization. When a certain state of the subsequent device changes, the device may actively report the state change information in an event trap (trap) message manner. After receiving the trap message reported by the device, the management and control system may update the stored state change information of the device.
However, there is a correlation between the status parameters of different devices, and the devices do not report messages when the status parameters change. Meanwhile, the message reported by the device may not cover all the changed parameters, which brings the problem that the device data stored in the management and control system is not synchronous with the actual data of the device.
Disclosure of Invention
The application provides a data synchronization method and device and a computer readable storage medium, which are used for ensuring that equipment data stored by a management and control system is synchronized with actual data of equipment.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a data synchronization method is provided, and is applied to a management and control device, where the method includes: receiving a plurality of notification events in a first time period, wherein one notification event is used for notifying the change of a parameter value of one object instance, different notification events correspond to different object instances, and the first time period is less than a preset time length. And determining information of one or more first parameter instances associated with each object instance according to a preset state association database, wherein the preset state association database comprises a plurality of object instances and state association relations between each object instance and the plurality of parameter instances. When one or more first parameter instances corresponding to the object instances have coincident parameter instances, combining the one or more first parameter instances corresponding to the object instances to obtain a first parameter instance set. And querying the parameter value of each parameter instance in the first parameter instance set in the second time period, and replacing the parameter value of each parameter instance in the first parameter instance set stored in the database with the parameter value of the second time period.
Based on the technical scheme provided by the application, when the management and control system receives the parameter value change of the multiple instances, the state association knowledge gallery comprising the multiple instances with the state association relation can be inquired, the multiple parameter instances associated with the multiple instances are determined, and the multiple parameter instances are combined to remove overlapped parameter instances. Therefore, the management and control device can respectively query the current parameter values of the parameter instances after the duplication removal. Then, the management and control system may replace the stored parameter values of the multiple parameter instances with the obtained current parameter values of the multiple parameter instances, so that the synchronicity between the data of the multiple parameter values stored in the management and control system and the data of the parameter instances of the multiple devices to be managed is ensured.
In a possible implementation manner, the relationship between two parameter instances having an association relationship in the preset state association database is a one-way association relationship or a two-way association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between the two parameter instances is used to characterize the positional relationship of the two parameter instances.
In a possible implementation manner, the association of the object instance with the one or more first parameter instances means that a parameter value change of the object instance triggers a parameter value change of the one or more first parameter instances.
In a possible implementation, the method further includes: determining information of equipment corresponding to each parameter instance in a first parameter instance set; the "querying the parameter value of each parameter instance in the first parameter instance set in the second time period" specifically includes querying the operating data of the device corresponding to each parameter instance in the first parameter instance set in the second time period.
In one possible implementation, after receiving the plurality of notification events within the first time period, the method further includes: analyzing each notification event to obtain the parameter value of the corresponding object example; and updating the database according to the parameter value of the object example corresponding to each notification event.
In a second aspect, a data synchronization apparatus is provided, where the data synchronization apparatus is applied to a management and control device, and may also be a functional module of the data synchronization apparatus for implementing the method according to the first aspect or any possible design of the first aspect. The data synchronization apparatus may implement the functions performed by the management device in each of the above aspects or possible designs, and the functions may be implemented by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the functions. Such as: the data synchronization device comprises a receiving unit, a determining unit, a processing unit and a query unit.
The receiving unit is used for receiving a plurality of notification events in a first time period, one notification event is used for notifying the change of a parameter value of one object instance, different notification events correspond to different object instances, and the first time period is less than a preset time length.
The determining unit is used for determining information of one or more first parameter instances associated with each object instance according to a preset state association database, and the preset state association database comprises a plurality of object instances and state association relations between each object instance and the plurality of parameter instances.
And the processing unit is used for merging the one or more first parameter instances corresponding to the multiple object instances to obtain a first parameter instance set when the overlapped parameter instances exist in the one or more first parameter instances corresponding to the multiple object instances.
And the query unit is used for querying the parameter value of each parameter instance in the first parameter instance set in the second time period.
And the processing unit is further used for replacing the parameter value of each parameter instance in the first parameter instance set stored in the database with the parameter value in the second time period.
The specific implementation manner of the data synchronization apparatus may refer to the first aspect or a behavior function of the control device in a data synchronization method provided by any possible design of the first aspect, and will not be described repeatedly herein. Thus, the provided data synchronization apparatus may achieve the same advantageous effects as the first aspect or any possible design of the first aspect.
In a possible implementation manner, the relationship between two parameter instances having an association relationship in the preset state association database is a one-way association relationship or a two-way association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between the two parameter instances is used to characterize the positional relationship of the two parameter instances.
In a possible implementation manner, the relationship between two parameter instances having an association relationship in the preset state association database is a one-way association relationship or a two-way association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between the two parameter instances is used to characterize the positional relationship of the two parameter instances.
In a possible implementation manner, the determining unit is further configured to determine information of a device corresponding to each parameter instance in the first parameter instance set. And the query unit is specifically configured to determine information of a device corresponding to each parameter instance in the first parameter instance set.
In a possible implementation manner, the processing unit is further configured to: after receiving a plurality of notification events in a first time period, analyzing each notification event to obtain a parameter value of an object example corresponding to each notification event; and updating the database according to the parameter value of the object example corresponding to each notification event.
In a third aspect, a data synchronization apparatus is provided, where the data synchronization apparatus may be a data management and control device or a chip or a system on chip in the management and control device. The data synchronization apparatus may implement the functions performed by the management device in each of the above aspects or possible designs, and the functions may be implemented by hardware, for example: in one possible design, the data synchronization apparatus may include: a processor and a communications interface, the processor being operable to support a data synchronisation apparatus to implement the functions referred to in the first aspect or any one of the possible designs of the first aspect, for example: the processor receives a plurality of notification events over a first time period through the communication interface.
In yet another possible design, the data synchronization device may further include a memory for storing computer-executable instructions and data necessary for the data synchronization device. When the data synchronization apparatus is running, the processor executes the computer-executable instructions stored in the memory to cause the data synchronization apparatus to perform the data synchronization method according to the first aspect or any one of the possible designs of the first aspect.
In a fourth aspect, a data synchronization apparatus is provided, where the data synchronization apparatus may be a management and control device or a chip or a system on chip in the management and control device. The data synchronization apparatus may implement the functions performed by the data synchronization apparatus in the above aspects or in each possible design, and the functions may be implemented by hardware, such as: in one possible design, the data synchronization apparatus may include: a processor and a communication interface, the processor being operable to support the data synchronisation apparatus to perform the functions referred to in the first aspect or any one of the possible designs of the first aspect, for example: the processor receives a plurality of notification events over a first time period through the communication interface.
In yet another possible design, the data synchronization device may further include a memory for storing computer-executable instructions and data necessary for the data synchronization device. When the data synchronization apparatus is running, the processor executes the computer-executable instructions stored in the memory to cause the data synchronization apparatus to perform the data synchronization method according to the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, there is provided a computer-readable storage medium, which may be a readable non-volatile storage medium, storing computer instructions or a program, which when run on a computer, cause the computer to perform the data synchronization method of the first aspect or any of the above possible designs.
A sixth aspect provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data synchronization method of the first aspect described above or any one of the possible designs of the above aspect.
In a seventh aspect, a data synchronization apparatus is provided, which may be a data synchronization apparatus or a chip or a system on chip in a data synchronization apparatus, and includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors and the one or more memories are configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the data synchronization apparatus to perform the data synchronization method as set forth in the first aspect above or any possible design of the first aspect.
In an eighth aspect, a chip system is provided, where the chip system includes a processor and a communication interface, and the chip system may be configured to implement the function performed by the data synchronization apparatus in the first aspect or any possible design of the first aspect, for example, where the processor is configured to obtain the first request information from the terminal device through the communication interface. In one possible design, the system-on-chip further includes a memory to hold program instructions and/or data. The chip system may be formed by a chip, and may also include a chip and other discrete devices, without limitation.
The technical effects brought by any one of the design manners in the second aspect to the eighth aspect can be referred to the technical effects brought by the first aspect, and are not described in detail.
Drawings
Fig. 1 is a schematic structural diagram of a synchronous network according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a Management Information Base (MIB) provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an SNMP protocol according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data synchronization apparatus 500 according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a data synchronization method according to an embodiment of the present application;
fig. 7 is a schematic diagram of an association relationship of a parameter example provided in an embodiment of the present application;
fig. 8 is a schematic flowchart of another data transmission method according to an embodiment of the present application;
fig. 9 is a schematic diagram of an association relationship of another parameter example provided in the embodiment of the present application;
fig. 10 is a schematic flowchart of another data transmission method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another data synchronization apparatus 100 according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the embodiments of the application, as detailed in the appended claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
As introduced in the background, the governing system of a carrier network is mainly used to manage the synchronization of time signals/clock signals (also called frequency signals) between time/clock server devices and transmission devices in the network. The Time signals transmitted among the devices in the synchronous network mainly include Precision Time Protocol (PTP) signals, real-Time clock synchronization signals (1pulse per second and Time of date and 1pps +) tod signals, and the transmitted frequency signals mainly include 2 Mbit/s (Mbit/s), 2 mhz (hz), synchronous ethernet (sync e) signals, etc. The transmission devices in the network can transmit time signals and frequency signals transmitted one by one, so that the time synchronization and the frequency synchronization of the devices in the whole network are realized.
In one example, as shown in fig. 1, a schematic diagram of the transmission of time signals in a network is shown. The solid line in fig. 1 is the current actual transmission path of the PTP signal, and the dotted line is the shadow transmission path of the PTP signal.
It should be noted that, in the embodiment of the present application, the network is a synchronous network. The management and control system in the network can directly correspond to each device through the southbound interface. Common southbound interface protocols include SNMP, netconf protocols, and the like. The management and control system mainly has the functions of topology management, configuration management, resource management, alarm management, performance management, log management, user management and the like, and realizes the management and control of all layers of equipment.
The SNMP protocol adopts a special form of a Client (Client)/Server (Server) model: the agent/management station model. The management and maintenance of the network by the management system are completed by the interaction between the management workstation and the SNMP agent. Each SNMP gateway is used for receiving query information from an SNMP management workstation (a main agent) and providing information related to the query information. The query information is used to query information in the MIB. The MIB contains parameters of all agent processes that can be queried and modified. For example, the structure of the MIB may be as shown in fig. 2.
Further, in order to realize information interaction before the management process and the agent process of the SNMP, as shown in fig. 3, the SNMP protocol defines 5 messages:
1. get request (get-request) operation: one or more parameter values are extracted from the agent process.
2. Get the next request (get-next-request) operation: the next parameter value of the one or more parameters is retrieved from the broker process.
3. Set-request (set-request) operation: one or more parameter values of the agent process are set.
4. Get response (Get-response) operation: the returned one or more parameter values. An operation is issued by the proxy process.
5. Trap operation: the agent process sends out message to inform the management process that some things happen.
The above-mentioned operations 1-3 are issued by the management process to the agent process, and 4 and 5 are issued by the agent process to the management process. The 3 operations sent by the management process adopt 1 6 ports of a user datagram protocol (UPD). Trap operations issued by the proxy process use the 1 6 port of the UDP. Because different port numbers are adopted for transceiving, the management and control system can simultaneously serve as a management process and a proxy process.
Further, in order to implement the management and control of the device by the management and control system, it is necessary to ensure that data such as configuration and state of the device stored by the management and control system is consistent with actual data of the device, and real-time performance of the data should be ensured. When the management and control system manages the initially online equipment through the SNMP protocol, the data of the managed equipment can be inquired in a full amount so as to ensure the consistency of the data. When a certain state of the subsequent device changes, the device may report to the network management and control system by notifying an event trap. After receiving the trap message, the management and control system may analyze the corresponding parameter in the trap message and update the database of the management and control system itself.
However, there is a correlation between many state parameters on the device, and there is a correlation between some parameters of the management and control system itself and the state parameters of the device, and not all the state parameters of the device report messages when they are changed. Normally, a device reports a message only when some relatively important event or failure occurs. However, the message reported by the device may not cover all the parameters that are changed. In addition, when the state of a certain device changes, the state of other devices can also be changed, which brings the problem that the data of the management and control system and the device are inconsistent.
In a possible implementation manner, the management and control system may actively query the operation data of the device according to a preset time period (e.g., 1 day). And when the operating data of the equipment is not consistent with the stored operating data, updating the stored equipment data. However, the real-time performance of this method is poor, and the real-time synchronization of the data of the synchronization management and control system and the device cannot be achieved.
In view of this, an embodiment of the present application provides a data synchronization method, which is used to ensure data synchronization between a management and control device and a device. The management and control device receives a plurality of notification events in a first time period, and determines one or more parameter instances associated with each object instance in the plurality of notification times by querying a preset state association library. Then, the management and control device may merge one or more parameter instances associated with the multiple object instances to obtain a parameter instance set. Finally, the management and control device may query the parameter value of each parameter instance in the parameter instance set, and update the parameter value in the database according to the parameter value of each parameter instance, so as to synchronize the parameter value stored in the database with the actual data of the device.
The method provided by the embodiment of the application is described in detail below with reference to the attached drawings.
It should be noted that, the network system described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided in the embodiment of the present application, and as a person of ordinary skill in the art knows, with the evolution of the network system and the appearance of other network systems, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Fig. 4 is a schematic diagram illustrating a network system according to an embodiment of the present application. As shown in fig. 2, the network system may include a management apparatus and a plurality of transmission apparatuses. The governing device may be communicatively connected with a plurality of devices.
The management and control device can be used for monitoring operation data of a plurality of devices. For example. The managing device may be a server, a computer, or the like. The management and control device can also be provided with a database which is used for storing the operation data of a plurality of devices.
Wherein the transmission device is used for providing data services. For example, the time signal and the frequency signal may be obtained from the last hop device, and the time and the frequency of the last hop device may be adjusted according to the obtained time signal and frequency signal. The transmission device may also be used to provide a time signal and a frequency signal for the next hop device.
It should be noted that fig. 4 is only an exemplary framework diagram, the number of devices included in fig. 4, the names of the respective devices are not limited, and other devices may be included in addition to the functional nodes shown in fig. 4.
In particular, the apparatus of fig. 4 may adopt the structure shown in fig. 5, or include the components shown in fig. 5. Fig. 5 is a schematic diagram illustrating a data synchronization apparatus 500 according to an embodiment of the present disclosure, where the data synchronization apparatus 500 may be a chip in a management device or a system on a chip. Alternatively, the data synchronization apparatus 500 may be a chip or a system on a chip in an optical network device. Alternatively, the data synchronization apparatus 500 may be a chip or a system on a chip in the data synchronization apparatus. As shown in fig. 5, the data synchronization apparatus 500 includes a processor 501, a communication interface 502, and a communication line 503.
Further, the data synchronization apparatus 500 may further include a memory 504. The processor 501, the memory 504 and the communication interface 502 may be connected by a communication line 503.
The processor 501 is a CPU, a general-purpose processor, a Network Processor (NP), a Digital Signal Processor (DSP), a microprocessor, a microcontroller, a Programmable Logic Device (PLD), or any combination thereof. The processor 501 may also be other devices with processing functions, such as, without limitation, a circuit, a device, or a software module.
A communication interface 502 for communicating with other devices or other communication networks. The communication interface 502 may be a module, a circuit, a communication interface, or any device capable of enabling communication.
A communication line 503 for transmitting information between the respective components included in the data synchronization apparatus 500.
A memory 504 for storing instructions. Wherein the instructions may be a computer program.
The memory 504 may be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and/or instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disc storage medium or other magnetic storage devices, and the like, without limitation.
It is to be noted that the memory 504 may exist independently of the processor 501 or may be integrated with the processor 501. The memory 504 may be used for storing instructions or program code or some data or the like. The memory 504 may be located inside the data synchronization apparatus 500 or outside the data synchronization apparatus 500, which is not limited. The processor 501 is configured to execute the instructions stored in the memory 504 to implement the data synchronization method provided by the following embodiments of the present application.
In one example, processor 501 may include one or more CPUs, such as CPU0 and CPU1 in fig. 5.
As an alternative implementation, the data synchronization apparatus 500 includes multiple processors, for example, the processor 507 may be included in addition to the processor 501 in fig. 5.
As an alternative implementation, the data synchronization apparatus 500 further includes an output device 505 and an input device 506. Illustratively, the input device 506 is a keyboard, mouse, microphone, joystick, or the like, and the output device 505 is a display screen, speaker (microphone), or the like.
It should be noted that the data synchronization apparatus 500 may be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system, or a device with a similar structure as in fig. 5. Further, the constituent structures shown in fig. 5 do not constitute limitations on the respective devices in fig. 4, and the respective devices in fig. 4 may include more or less components than those shown in fig. 5, or combine some components, or a different arrangement of components, in addition to the components shown in fig. 5.
In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
In addition, acts, terms, and the like referred to between the embodiments of the present application may be mutually referenced and are not limited. In the embodiment of the present application, the name of the message exchanged between the devices or the name of the parameter in the message, etc. are only an example, and other names may also be used in the specific implementation, which is not limited.
In order to facilitate clear description of technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish identical items or similar items with substantially the same functions and actions. For example, the first data transmission policy and the second data transmission policy are only for distinguishing different data transmission policies, and the order of the data transmission policies is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It is noted that, in the present application, words such as "exemplary" or "for example" are used to mean exemplary, illustrative, or descriptive. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In this application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
The following describes a data synchronization method provided in an embodiment of the present application with reference to a network architecture shown in fig. 6.
Fig. 6 provides a data synchronization method applied to a management and control device according to an embodiment of the present application, where the management and control device may be the management and control apparatus in fig. 4. As shown in fig. 6, the method includes:
s601, receiving a plurality of notification events of a first time period.
And the duration of the first time period is less than or equal to the preset duration. For example, the first time period may be 30 seconds(s), 20s, and so on. A notification event is used to notify an object instance of a change in parameter values. The object instance may be a network element, a link, a board, a port, a time signal, a frequency signal, a clock (frequency) tracking status, a time tracking status, etc. The object instance may also be an example of a MIB node parameter of the device. Such as whether the board is in place. The object instance may also be a parameter instance of the governing device. For example, the board status color of the device block diagram of the management and control device may be used.
In a possible implementation manner, when a certain device detects that an operation parameter changes, a notification event may be reported to the management and control device. Accordingly, the management and control device may receive the notification event reported by the device.
In one example, when the managing device communicates with the device using the SNMP protocol, the device may send a notification event to the managing device in the form of a trap message.
In another possible implementation manner, when a certain device is degraded, a degradation event may be reported to the management and control device. Accordingly, the management and control device may receive the degradation event reported by the device.
It should be noted that the degradation event may refer to an abnormal state of the device or an abnormal operation parameter. For example, when the current tracking state of the device is unlocked (a type of device degradation), a trap message for notifying the current tracking state of the device is unlocked may be reported to the management and control device. The tracking state losing lock means that the device cannot acquire a frequency signal from the last-hop device.
S602, determining one or more first parameter instances associated with each object instance according to a preset state management database.
The preset state association database comprises a plurality of object instances and state association relations between each object instance and a plurality of parameter instances. The parameter instance may or may not be the same as the object instance. For example, when an object instance is a device that is out-of-lock in the current tracking state, the associated parameter instance may be the next hop of the device that is out-of-lock in the current tracking state. For another example, when an object instance is a board is not in place, the parameter instance associated with the object instance may be a port exception for the board.
The preset state management database may be preconfigured for the management and control device, and may also be generated by the management and control device according to an association relationship among a plurality of devices, without limitation. In particular, reference may be made to the ensuing description.
The state association relationship between the object instance and the multiple parameter instances can mean that when the state of the object instance changes, the state change of the multiple parameter instances can be triggered. However, when the states of the plurality of parameter instances change, the state change of the object instance may be triggered or may not be triggered.
In one example, two parameter instances having an associative relationship in the database are associated for a preset state. The association between the two parameter instances may be a one-way relationship or a two-way relationship.
The one-way relationship may refer to that when the state of one parameter instance (denoted as parameter instance 1) of the two parameter instances changes, the state of the other parameter instance (denoted as parameter instance 2) may be triggered to change. However, the change in state of parameter instance 2 cannot trigger the change in state of parameter instance 1. The bidirectional relationship can be changed into a state change of the parameter instance 2, which can be triggered when the state of the parameter instance 1 is changed. Meanwhile, the state change of the parameter example 2 can trigger the state change of the parameter example 1.
In one possible implementation, in the preset state association database, a plurality of parameter instances may be associated in a topological manner.
For example, as shown in fig. 7, the preset state management database may include a plurality of parameter instances, which are parameter instance 3, parameter instance 4, parameter instance 5, parameter instance 6, and parameter instance 7. The association relationship between the multiple parameter instances may be as shown in fig. 7.
In fig. 7, the association between parameter instance 4 and parameter instance 3, and between parameter instance 4 and parameter instance 5 are one-way relationships. The association between the parameter instance 5 and the parameter instance 6, and the association between the parameter instance 6 and the parameter instance 7 are bidirectional relationships. That is, when the state of parameter instance 5 changes, a change in the state of parameter instance 6 may be triggered, and a change in the state of parameter instance 7 may also be triggered.
Further, the parameter instances have constraint relationships. The constraint relationship is used to characterize the positional relationship between the parameter instances. For example, the constraint relationship may include the opposite ports located on the same device, belonging to the same port, located on the same board, and being the same link.
For example, as shown in FIG. 7, the constraint relationship between parameter instance 4 and parameter instance 3 is located in the same device. The constraint relationship between the parameter instance 4 and the parameter instance 5 is the same port. The constraint relationship between the parameter instance 5 and the parameter instance 6 is located on the same board. The constraint relationship between parameter instance 6 and parameter instance 7 is the opposite port of the same link.
In an example, when the management and control device receives a notification event for notifying that the parameter value of the parameter instance 5 (at this time, the parameter instance 5 is an object instance) is changed, the management and control device may determine that the parameter instance associated with the parameter instance 5 includes the parameter instance 6 and the parameter instance 7 according to the association relationship shown in fig. 7.
In another example, when the time of notification received by the management and control device is used to notify that the parameter value of the parameter instance 4 (at this time, the parameter instance 4 is the object instance) changes, the management and control device may determine, according to the association relationship shown in fig. 6, that the parameter instances associated with the parameter instance 4 include the parameter instance 3, the parameter instance 5, the parameter instance 6, and the parameter instance 7.
S603, when coincident parameter instances exist in the one or more first parameter instances corresponding to the multiple object instances, combining the one or more parameter instances corresponding to the multiple object instances to obtain a first parameter instance set.
The first parameter instance set may include first parameter instances corresponding to the merged multiple object instances.
For example, the example in S604 described above is combined. The parameter instances which are determined by the management and control device and are associated with the parameter instance 5 comprise a parameter instance 6 and a parameter instance 7, and the parameter instances which are determined by the management and control device and are associated with the parameter instance 4 comprise a parameter instance 3, a parameter instance 5, a parameter instance 6 and a parameter instance 7. The first set of parameter instances comprises parameter instance 2, parameter instance 5, parameter instance 6 and parameter instance 7. That is, the management and control device may perform deduplication processing on one or more parameter instances corresponding to the multiple object instances. In this manner, the number of parameter instances for subsequent queries may be reduced.
S604, inquiring the parameter value of each parameter instance in the first parameter instance set in the second time period, and replacing the parameter value of each parameter instance in the first parameter instance set stored in the database with the parameter value of each parameter instance in the second time period.
Wherein the second time period is after the first time period. The parameter value of the parameter instance in the second time period may refer to state information, parameter size, and the like of the parameter instance in the second time period. The database may refer to a pre-configured by the governing device. The database is used for storing the operation data of the equipment.
In a possible implementation manner, after the management and control device determines the first parameter instance set, information of a device corresponding to each parameter instance may be determined. Then, the management and control device may send query information to the device corresponding to each parameter instance. The query information is used to query parameter values of the parameter instance over the second time period. The device may send the parameter values of the parameter instance to the managing device in the form of a response message after receiving the query information from the managing device. Therefore, the management and control device can inquire the parameter value of the parameter instance.
It should be noted that, the parameter instance may refer to a device or a part of a device (e.g., version, port). Therefore, the management and control device may determine the device corresponding to the parameter instance according to the parameter instance. The notification event may also include information about the device to which the parameter instance corresponds. Therefore, the management and control device can acquire the information of the device corresponding to the parameter instance according to the notification event.
Further, after the governing device queries the parameter value of each parameter instance in the first parameter instance set, the parameter value of each parameter instance stored in the database may be replaced with the parameter value in the second time period. Therefore, the synchronization of the parameter values stored by the management and control equipment and the parameter values of the equipment is ensured.
Based on the technical scheme of fig. 6, when the management and control system receives a change in the parameter value of multiple instances, it may determine multiple parameter instances associated with the multiple instances by querying a state association knowledge gallery including the multiple instances having a state association relationship, and merge the multiple parameter instances to remove overlapped parameter instances. Therefore, the management and control device can respectively inquire the current parameter values of the parameter instances after the duplication removal. Then, the management and control system may replace the stored parameter values of the multiple parameter instances with the obtained current parameter values of the multiple parameter instances, so that the synchronicity between the data of the multiple parameter values stored in the management and control system and the data of the parameter instances of the multiple devices to be managed is ensured.
In some embodiments, as shown in fig. 8, after S801 described above, the method further includes S801 and S802.
S801, analyzing each notification event to obtain a parameter value of an object example corresponding to each notification event.
Wherein the notification event may include a parameter value of the object instance for a first time period. After receiving the notification event, the management and control device may parse the notification event to obtain a parameter value of the object instance.
S802, updating the database according to the parameter value of the object instance corresponding to each notification event.
Updating the database may refer to replacing the parameter value stored in the database before the first time period with the parameter value of the object instance included in the notification event. As such, overall, accurate synchronization may be included that governs data synchronicity from device to device.
Based on the technical scheme shown in fig. 8, the management and control device may directly analyze the notification event to obtain parameter values of the multiple object instances, and update the parameter values of the object instances in the database. Thus, the synchronicity of the parameter values of the object instance of the management device with the actual parameter values of the device can be ensured.
In some embodiments, when the object instance in the multiple notification events is further associated with the managing device, the managing device may further directly obtain the parameter value of itself, and update the parameter value related to the managing device in the database.
In some embodiments, the preset state association database may be preconfigured for the governing device. For example, maintenance personnel may be entered into the regulating device. The preset state management database may be autonomously generated for the management and control device.
For example, the management and control device may determine, through testing, an association relationship between multiple parameter instances. For example, for the parameter instance 1 and the parameter instance 2, the management and control device may control the device in which the parameter instance 1 is located to change the state of the parameter instance 1. Then, the management and control device may inquire whether the state of the parameter instance 2 changes within a preset time period. When the state of the parameter instance 2 changes, the parameter instance 1 and the parameter instance 2 are shown to be in an association relationship.
Further, in order to determine whether the association relationship between the parameter instance 1 and the parameter instance 2 is a one-way relationship or a two-way relationship, the control device may further continue to control the device in which the parameter instance 2 is located to change the state of the parameter instance 2. Then, the management and control device may inquire whether the state of the parameter instance 1 changes within a preset time period. When the state of the parameter instance 1 changes, the correlation between the parameter instance 1 and the parameter instance 2 is a bidirectional relationship; when the state of the parameter instance 1 is not changed, the association between the parameter instance 1 and the parameter instance 2 is a one-way relationship. The one-way relationship is a change in state of parameter instance 1, which can trigger a change in state of parameter instance 2.
Based on the instance, the governing device may determine an associative relationship between multiple parameter instances. That is, a preset state association database may be determined.
The preset state association database provided in the embodiment of the present application is described below with reference to specific examples.
The preset state association database may also be referred to as a state association knowledge gallery. The preset state association database is a directed graph. Each node in the graph represents a specific object instance of a state parameter. The edges in the graph represent the relationship between two object instances. Edges may be unidirectional or bidirectional.
When the change of one object instance A causes the change of another object instance B and the change of the object instance B does not cause the change of the object instance A, the two object instances are considered to have a relationship, and the edge is unidirectional A- > B. When either of the object instances A and B changes, the other changes, the edge is a bidirectional A < - > B.
It should be noted that, in the embodiment of the present application, the preset state association database is configurable. Any edge in the preset state association database at least comprises 4 characteristics of an object instance A, an object instance B, an influence relationship between the object instance A and the object instance B, and a constraint condition that a relationship exists between the object instance A and the object instance B.
In one example, a PTP input signal status change (e.g., loss of PTP input) of an 8-slot 1 port of a device may cause a change in the source status of the current tracking time of the same device. Meanwhile, a PTP signal input signal state change of an 8-slot 1 port of the device may also cause a PTP signal port state change (e.g., a slave changes to a fault) in the port.
In addition, a PTP signal port state change of the 8 slot 1 port of the device may also cause a PTP signal port state change in the 8 slot 2 port on the same board of the device (e.g., master (slave) to slave). Meanwhile, the state change of the PTP signal port in the 8 slot 2 port of the device may cause the state change of the PTP signal port in the opposite port of the other device directly connected to the 8 slot 2 port (for example, passive port is changed into master). The following 4 features exist for this example.
Feature 1, PTP input signal changes in port- > the device currently tracks time source changes. The constraints are the same device.
Feature 2, PTP input signal change in port- > PTP signal port state change in port. The constraint is the same port.
Feature 3, PTP signal port state change in port-PTP signal port state change in port < - > PTP signal port state change in port. The constraint conditions are other ports of the same board card.
Feature 4, PTP signal port state change in port-PTP signal port state change in port < - > PTP signal port state change in port. The constraint is the same link opposite end port.
Based on the above-mentioned 4 features, the association relationship in the preset state database can be shown in fig. 9.
In yet another example, when a link is down, it may cause the status of the ports on both ends of the link to change. This example has the features: link down- > port status changes to off (down). The constraint is the ports on both ends of the same link.
In one possible embodiment, as shown in fig. 10, the present application provides a data synchronization method, which includes S1001 to S1006.
And S1001, when the state of the equipment is changed, the equipment generates and sends a notification event to the management and control equipment. Accordingly, the policing device receives notification events from the device.
The notification event may be one or a fragment of an SNMP trap event message.
S1002, the management and control device analyzes the received notification event to obtain a parameter value of an object instance in the notification event, and updates the stored state parameter of the device according to the state parameter.
S1003, the management and control equipment queries a preset state association database and determines a first parameter instance associated with the object instance.
Wherein, the first parameter instance comprises an instance of the device and an instance of the control device.
S1004, the management and control device inquires a first parameter instance corresponding to each object instance in the multiple notification events in a preset time period, and merges the first parameter instances corresponding to each object instance in the multiple notification events to obtain a merged parameter instance set.
For example, device a and device B are connected by the same link. The clock of device B is based on the output SyncE signal of device a. The preset state database stores the incidence relation including:
1. device a currently tracks out-of-lock- > device a degrades the ethernet synchronization information channel (ESMC) value of the sync signal in the output port. The constraint condition is the same equipment;
2. the value of the SyncE signal ESMC in the output port of device a deteriorates < - > the value of the SyncE signal ESMC in the input port of device B deteriorates. The constraint is a SyncE signal in the same link.
3. The value of the SyncE signal ESMC in the input port of device B degrades < - > device B currently tracks the clock quality degradation. The constraints are the same device.
In one example, when the management and control device receives a notification event 1 that the device a reports that the current tracking state of the device a is out of lock and a notification event 2 that the device B reports that the current tracking clock quality of the device is degraded, the time interval between the notification event 1 and the notification event 2 is not more than 30s.
The managing device may query, via the preset state management database, an ESMC value degradation instance of the SyncE signal in the output port of device a (the ESMC value represents the frequency quality of the SyncE signal), an ESMC value degradation instance of the SyncE signal in the input port of device B, and a current trace clock quality degradation instance of device B.
The management and control device may query an ESMC value degradation instance of the SyncE signal in the input port of device B and an ESMC value degradation instance of the SyncE signal in the output port of device a through a preset state management database.
Thus, the policing device may merge 2 instances of ESMC value degradation of the SyncE signal in the output port of device a into 1, merge 2 instances of ESMC value degradation of the SyncE signal in the input port of device B into 1, and merge 2 instances of current tracking clock quality degradation of device B into 1.
S1005, inquiring the parameter value of each parameter instance in the merged parameter instance set by the management and control equipment.
In one example, the management and control device may actively query the parameter value of each parameter instance through SNMP get-request. The device where the parameter instance is located can return the current real-time parameter value of the queried parameter instance through SNMP get-response. After receiving the SNMP get-response, the management and control device can update the database of the management and control device.
The parameter example for managing and controlling the equipment query comprises the following steps: the current trace status of device a, the ESMC value of the SyncE signal in the output port of device a, the ESMC value of the SyncE signal in the input port of device B, the current trace clock quality of device B.
And S1006, the management and control equipment updates the parameters displayed on the front-end display interface and the parameter values in the database according to the inquired parameter values of the parameter examples.
It should be noted that, for implementation of S1001 to S1006, reference may be made to the description of the foregoing embodiment, and details are not repeated.
Based on the technical scheme of fig. 10, the real-time synchronization consistency between the data stored in the management and control system device and the data of the device can be ensured based on the preset state association database. Therefore, the network management reliability is improved, and the operation and maintenance efficiency is improved.
All the schemes in the above embodiments of the present application can be combined without contradiction.
In the embodiment of the present application, the data synchronization apparatus may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module corresponding to each function, fig. 11 shows a schematic structural diagram of a data synchronization apparatus 110, where the data synchronization apparatus 110 may be a management and control device, or may be a chip applied to the management and control device, and the data synchronization apparatus 110 may be configured to execute the function of the management and control device in the foregoing embodiment. The data synchronization apparatus 110 shown in fig. 11 may include: a receiving unit 1101, a determining unit 1102, a processing unit 1103 and an inquiring unit 1104.
The receiving unit 1101 is configured to receive a plurality of notification events in a first time period, where one notification event is used to notify a parameter value change of one object instance, different notification events correspond to different object instances, and the first time period is less than a preset time length.
A determining unit 1102, configured to determine information of one or more first parameter instances associated with each object instance according to a preset state association database, where the preset state association database includes a plurality of object instances and state association relationships between each object instance and the plurality of parameter instances.
The processing unit 1103 is configured to, when there is a coincident parameter instance in one or more first parameter instances corresponding to the multiple object instances, merge the one or more first parameter instances corresponding to the multiple object instances to obtain a first parameter instance set.
A querying unit 1104, configured to query a parameter value of each parameter instance in the first set of parameter instances in the second time period.
The processing unit 1103 is further configured to replace the parameter value of each parameter instance in the first set of parameter instances stored in the database with the parameter value of each parameter instance in the second time period.
In a possible implementation manner, the relationship between two parameter instances having an association relationship in the preset state association database is a one-way association relationship or a two-way association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between the two parameter instances is used to characterize the positional relationship of the two parameter instances.
In a possible implementation manner, the relationship between two parameter instances having an association relationship in the preset state association database is a one-way association relationship or a two-way association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between the two parameter instances is used to characterize the positional relationship of the two parameter instances.
In a possible implementation manner, the determining unit 1102 is further configured to determine information of a device corresponding to each parameter instance in the first parameter instance set. The querying unit 1104 is specifically configured to determine information of a device corresponding to each parameter instance in the first parameter instance set.
In a possible implementation manner, the processing unit 1103 is further configured to: after receiving a plurality of notification events in a first time period, analyzing each notification event to obtain a parameter value of an object example corresponding to each notification event; and updating the database according to the parameter value of the object example corresponding to each notification event.
As yet another implementable manner, the processing unit 1103 in fig. 11 may be replaced by a processor, which may integrate the functions of the processing unit 1103. The receiving unit 1101 in fig. 11 may be replaced by a transceiver or transceiver unit, which may integrate the functions of the receiving unit 1101.
Further, when the processing unit 1103 is replaced by a processor and the receiving unit 1101 is replaced by a transceiver or a transmitting-receiving unit, the data synchronization apparatus 110 according to the embodiment of the present application may be the data synchronization apparatus shown in fig. 5.
The embodiment of the application also provides a computer readable storage medium. All or part of the processes in the above method embodiments may be performed by a computer program instructing related hardware, where the program may be stored in the above computer-readable storage medium, and when executed, the program may include the processes in the above method embodiments. The computer readable storage medium may be an internal storage unit of the data synchronization apparatus (including the data sending end and/or the data receiving end) of any of the foregoing embodiments, for example, a hard disk or a memory of the data synchronization apparatus. The computer readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (flash card), and the like, which are provided on the terminal device. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the data synchronization apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the data synchronization apparatus. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
It should be noted that the terms "first" and "second" and the like in the description, claims, and drawings of the present application are used for distinguishing different objects, and are not used for describing a specific order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It should be understood that, in the present application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and more, "and/or" for describing the association relationship of the associated objects, indicating that there may be three relationships, for example, "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A data synchronization method is applied to management and control equipment, and comprises the following steps:
receiving a plurality of notification events in a first time period, wherein one notification event is used for notifying the change of a parameter value of one object instance, different notification events correspond to different object instances, and the first time period is less than a preset time length;
determining one or more first parameter instances associated with each object instance according to a preset state association database, wherein the preset state association database comprises a plurality of object instances and state association relations between each object instance and the plurality of parameter instances;
when one or more first parameter instances corresponding to a plurality of object instances have coincident parameter instances, combining the one or more first parameter instances corresponding to the plurality of object instances to obtain a first parameter instance set;
and inquiring the parameter value of each parameter instance in the first parameter instance set within a second time period, and replacing the parameter value of each parameter instance in the first parameter instance set stored in the database with the parameter value of the second time period, wherein the second time period is after the first time period.
2. The method according to claim 1, wherein the relationship between two parameter instances in the preset state association database having an association relationship is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances, wherein the constraint relationship is used for characterizing the position relationship of the two parameter instances.
3. The method according to claim 1 or 2, wherein the object instance is associated with the one or more first parameter instances, which means that a change in a parameter value of the object instance triggers a change in a parameter value of the one or more first parameter instances.
4. The method of claim 3, further comprising:
determining information of equipment corresponding to each parameter instance in the first parameter instance set;
the querying a parameter value of each parameter instance in the first set of parameter instances for a second time period comprises:
and querying the operation data of the equipment corresponding to each parameter instance in the first parameter instance set in the second time period.
5. The method of claim 4, wherein after said receiving a plurality of notification events within a first time period, the method further comprises:
analyzing each notification event to obtain the parameter value of the corresponding object instance;
and updating the database according to the parameter value of the object instance corresponding to each notification event.
6. The data synchronization device is applied to management and control equipment and comprises a receiving unit, a determining unit, a processing unit and a query unit;
the receiving unit is configured to receive a plurality of notification events within a first time period, where one notification event is used to notify a parameter value change of one object instance, different notification events correspond to different object instances, and the first time period is less than a preset time length;
the determining unit is used for determining one or more first parameter instances associated with each object instance according to a preset state association database, wherein the preset state association database comprises a plurality of object instances and state association relations between each object instance and the plurality of parameter instances;
the processing unit is configured to, when a coincident parameter instance exists in one or more first parameter instances corresponding to multiple object instances, merge the one or more first parameter instances corresponding to the multiple object instances to obtain a first parameter instance set;
the query unit is configured to query a parameter value of each parameter instance in the first parameter instance set within a second time period, where the second time period is after the first time period;
the processing unit is further configured to replace the parameter value of each parameter instance in the first set of parameter instances stored in the database with the parameter value at a second time period.
7. The apparatus according to claim 6, wherein the relationship between two parameter instances in the preset state association database having an association relationship is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances, and the constraint relationship is used for characterizing a position relationship of the two parameter instances.
8. The apparatus according to claim 6 or 7, wherein the object instance being associated with the one or more first parameter instances means that a change in a parameter value of the object instance triggers a change in a parameter value of the one or more first parameter instances.
9. The apparatus according to claim 8, wherein the determining unit is further configured to determine information of a device corresponding to each parameter instance in the first parameter instance set;
the query unit is specifically configured to query operating data of the device corresponding to each parameter instance in the first parameter instance set in the second time period.
10. The apparatus of claim 9, wherein the processing unit is further configured to:
after receiving a plurality of notification events, analyzing each notification event to obtain a parameter value of an object instance corresponding to each notification event; and updating the database according to the parameter value of the object instance corresponding to each notification event.
11. A computer-readable storage medium having stored therein instructions that, when executed, implement the method of any one of claims 1-5.
12. A data synchronization apparatus, comprising: a processor, a memory, and a communication interface; wherein, the communication interface is used for the data synchronization device to communicate; the memory is configured to store one or more programs, the one or more programs including computer-executable instructions, which when executed by the data synchronization apparatus, cause the data synchronization apparatus to perform the method of any of claims 1-5 by executing the computer-executable instructions stored by the memory.
CN202210801060.8A 2022-07-08 2022-07-08 Data synchronization method and device and computer readable storage medium Active CN115189994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210801060.8A CN115189994B (en) 2022-07-08 2022-07-08 Data synchronization method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210801060.8A CN115189994B (en) 2022-07-08 2022-07-08 Data synchronization method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115189994A true CN115189994A (en) 2022-10-14
CN115189994B CN115189994B (en) 2023-05-16

Family

ID=83517533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210801060.8A Active CN115189994B (en) 2022-07-08 2022-07-08 Data synchronization method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115189994B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2505885A1 (en) * 2000-04-10 2001-10-10 Research In Motion Limited System and method for synchronizing data records between multiple databases
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN110107992A (en) * 2019-05-05 2019-08-09 珠海格力电器股份有限公司 Operation parameter control method based on associated data of equipment
CN110392876A (en) * 2017-03-10 2019-10-29 净睿存储股份有限公司 Data set and other managed objects are synchronously copied into storage system based on cloud
CN112214505A (en) * 2020-10-21 2021-01-12 北京金堤征信服务有限公司 Data synchronization method and device, computer readable storage medium and electronic equipment
CN112699187A (en) * 2020-12-29 2021-04-23 中国联合网络通信集团有限公司 Associated data processing method, device, equipment, medium and product
WO2021119441A1 (en) * 2019-12-13 2021-06-17 Liveperson, Inc. Function-as-a-service cloud chatbot for two-way communication systems
CN113435657A (en) * 2021-07-09 2021-09-24 清华四川能源互联网研究院 Data integration processing method, system, energy management system, electronic device and computer readable storage medium
CN113868226A (en) * 2021-09-09 2021-12-31 猪八戒股份有限公司 Database management method, database platform and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2505885A1 (en) * 2000-04-10 2001-10-10 Research In Motion Limited System and method for synchronizing data records between multiple databases
CN101515234A (en) * 2009-03-26 2009-08-26 华亚微电子(上海)有限公司 Associated data processing method and associated data device
CN110392876A (en) * 2017-03-10 2019-10-29 净睿存储股份有限公司 Data set and other managed objects are synchronously copied into storage system based on cloud
CN110107992A (en) * 2019-05-05 2019-08-09 珠海格力电器股份有限公司 Operation parameter control method based on associated data of equipment
WO2021119441A1 (en) * 2019-12-13 2021-06-17 Liveperson, Inc. Function-as-a-service cloud chatbot for two-way communication systems
CN112214505A (en) * 2020-10-21 2021-01-12 北京金堤征信服务有限公司 Data synchronization method and device, computer readable storage medium and electronic equipment
CN112699187A (en) * 2020-12-29 2021-04-23 中国联合网络通信集团有限公司 Associated data processing method, device, equipment, medium and product
CN113435657A (en) * 2021-07-09 2021-09-24 清华四川能源互联网研究院 Data integration processing method, system, energy management system, electronic device and computer readable storage medium
CN113868226A (en) * 2021-09-09 2021-12-31 猪八戒股份有限公司 Database management method, database platform and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋廉;李蓉蓉;彭智勇;: "一种对象代理数据库的跨类查询优化方法" *

Also Published As

Publication number Publication date
CN115189994B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
Ruiz et al. Manna: A management architecture for wireless sensor networks
US7523184B2 (en) System and method for synchronizing the configuration of distributed network management applications
CA2488044C (en) System and method for synchronizing the configuration of distributed network management applications
US20210328856A1 (en) Scalability, fault tolerance and fault management for twamp with a large number of test sessions
US20060230309A1 (en) System for remote fault management in a wireless network
US20060085532A1 (en) Remote management of communication devices
CN102447582A (en) Resource synchronization method and device
US20160092537A1 (en) Polling based synchronization in managed networks
CN113778615B (en) Rapid and stable network shooting range virtual machine construction system
JPH09247144A (en) Method for managing hierarchical network
CN105024856B (en) The converged communication method and device of multiple network management system
CN112087506B (en) Cluster node management method and device and computer storage medium
CN115189994B (en) Data synchronization method and device and computer readable storage medium
CN105306243A (en) Stale data collection method, device and system
CN111241200A (en) sSQLite database-based main and standby synchronous processing method and device
CN110995503A (en) Synchronous network monitoring method and system
CN113472849B (en) Node management method, system, device and medium
CN112650815B (en) Method and device for synchronizing environment data, storage medium and electronic device
EP3837808B1 (en) Management model for network equipment performance measurements
CN110659299B (en) Data updating method and device and front-end development client
CN102244619B (en) Equipment management method, gateway and server
CN115695169B (en) Configuration information issuing method, device and storage medium
CN110134467B (en) Parameter configuration processing method and device, storage medium and processor
CN112564953B (en) Method, device and equipment for managing remote equipment of office
CN114666197B (en) Network management system and method based on industrial Internet identification analysis

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