CN115189994B - 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
CN115189994B
CN115189994B CN202210801060.8A CN202210801060A CN115189994B CN 115189994 B CN115189994 B CN 115189994B CN 202210801060 A CN202210801060 A CN 202210801060A CN 115189994 B CN115189994 B CN 115189994B
Authority
CN
China
Prior art keywords
parameter
instance
instances
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.)
Active
Application number
CN202210801060.8A
Other languages
Chinese (zh)
Other versions
CN115189994A (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]

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 guaranteeing synchronization of equipment data stored in a management and control system and actual data of equipment. The method comprises the following steps: when the management and control system receives the parameter value change of the plurality of instances, the plurality of parameter instances associated with the plurality of instances can be determined by querying a state association knowledge graph library comprising the plurality of instances with state association relations, and the plurality of parameter instances are combined to remove the coincident parameter instances. Thus, 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 plurality of parameter instances with the acquired current parameter values of the plurality of parameter instances, so that the synchronism of the data of the plurality of parameter values stored in the management and control system and the data of the parameter instances of the plurality of managed devices is ensured.

Description

Data synchronization method and device and computer readable storage medium
Technical Field
The embodiments of the present application relate to the field of communications technologies, 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. The south interface of the management and control system directly interfaces with each device. Common southbound interface protocols are the simple network management protocol (simple network management protocol, SNMP) protocol, the network configuration (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 these functions, the management and control system can implement management and control on various levels of the device.
In order to realize the control of the control system on the equipment, the data such as equipment configuration, state and the like stored on the control system must be consistent with the data of the equipment, and the real-time performance of the data of the equipment should be ensured. In general, when the management and control system manages the initial online device through the SNMP protocol, the data of all devices will be queried once to ensure data synchronization. When a certain state of a subsequent device changes, the device can actively report state change information in a mode of an event trap (trap) message. After receiving the trap message reported by the device, the management and control system can update the stored state change information of the device.
However, there is a correlation between the state parameters of different devices, and the devices do not report messages when the state parameters are changed. Meanwhile, all parameters which are changed cannot be necessarily covered in the message reported by the equipment, so that the problem that the equipment data stored in the management and control system are not synchronous with the actual data of the equipment is brought.
Disclosure of Invention
The application provides a data synchronization method and device and a computer readable storage medium, which are used for guaranteeing synchronization of equipment data stored by a management and control system and actual data of equipment.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a data synchronization method is provided, applied to a management and control device, and the method includes: and receiving a plurality of notification events in a first time period, wherein one notification event is used for notifying the parameter value of one object instance to change, different notification events correspond to different object instances, and the first time period is smaller than a preset duration. And determining information of one or more first parameter examples associated with each object example according to a preset state association database, wherein the preset state association database comprises a plurality of object examples and state association relations between each object example and the plurality of parameter examples. When one or more first parameter instances corresponding to the object instances exist coincident parameter instances, merging the one or more first parameter instances corresponding to the object instances to obtain a first parameter instance set. And 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.
Based on the technical scheme provided by the application, when the management and control system receives the parameter value change of a plurality of examples, the plurality of parameter examples related to the plurality of examples can be determined by inquiring a state related knowledge graph base comprising the plurality of examples with state related relations, and the plurality of parameter examples are combined to remove the overlapped parameter examples. Thus, 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 plurality of parameter instances with the acquired current parameter values of the plurality of parameter instances, so that the synchronism of the data of the plurality of parameter values stored in the management and control system and the data of the parameter instances of the plurality of managed devices is ensured.
In one possible implementation manner, the relationship between two parameter instances with the association relationship in the preset state association database is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between two parameter instances is used to characterize the positional relationship of the two parameter instances.
In one possible implementation, 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 manner, the method further includes: determining information of equipment corresponding to each parameter instance in the 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 operation 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 a parameter value of each 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 device is provided, which is applied to a management and control apparatus, and may be a functional module of the data synchronization device for implementing the method of the first aspect or any of the possible designs of the first aspect. The data synchronization device may implement the above aspects or functions performed by the management device in each possible design, where 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, wherein one notification event is used for notifying the parameter value of one object instance to change, different notification events correspond to different object instances, and the first time period is smaller than a preset duration.
And the determining unit is used for determining the information of one or more first parameter examples associated with each object example according to a preset state association database, wherein the preset state association database comprises a plurality of object examples and state association relations between each object example and the plurality of parameter examples.
And the processing unit is used for merging the one or more first parameter instances corresponding to the plurality of object instances to obtain a first parameter instance set when the coincident parameter instances exist in the one or more first parameter instances corresponding to the plurality of object instances.
And the inquiring unit is used for inquiring the parameter value of each parameter instance in the first parameter instance set in the second time period.
The processing unit is further configured to replace a parameter value of each parameter instance in the first parameter instance set stored in the database with a parameter value of each parameter instance in the second time period.
In this embodiment, reference may be made to the behavior function of the management device in the data synchronization method provided by the first aspect or any one of the possible designs of the first aspect, and the detailed description is not repeated here. The data synchronizing device provided may thus achieve the same advantages as the first aspect or any of the possible designs of the first aspect.
In one possible implementation manner, the relationship between two parameter instances with the association relationship in the preset state association database is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between two parameter instances is used to characterize the positional relationship of the two parameter instances.
In one possible implementation manner, the relationship between two parameter instances with the association relationship in the preset state association database is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between 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. 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 each corresponding object example; 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, which may be a data management device or a chip or a system on a chip in a management device. The data synchronization device may implement the functions performed by the management and control device in the above aspects or in each possible design, where the functions may be implemented by hardware, for example: in one possible design, the data synchronization device may include: a processor and a communication interface, the processor being operable to support the data synchronizing device to carry out the functions involved 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 the communication interface for a first period of time.
In yet another possible design, the data synchronization device may further include a memory for holding computer-executable instructions and data necessary for the data synchronization device. The processor executes the computer-executable instructions stored by the memory when the data synchronization device is operating to cause the data synchronization device to perform the data synchronization method of the first aspect or any one of the possible designs of the first aspect.
In a fourth aspect, a data synchronization apparatus is provided, which may be a management device or a chip or a system on a chip in a management device. The data synchronization device may implement the functions performed by the data synchronization device in the aspects or in the possible designs, where the functions may be implemented by hardware, for example: in one possible design, the data synchronization device may include: a processor and a communication interface, the processor being operable to support the data synchronizing device to carry out the functions involved 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 the communication interface for a first period of time.
In yet another possible design, the data synchronization device may further include a memory for holding computer-executable instructions and data necessary for the data synchronization device. The processor executes the computer-executable instructions stored by the memory when the data synchronization device is operating to cause the data synchronization device to perform the data synchronization method of the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, a computer readable storage medium is provided, 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 one of the possible designs of the aspects.
In a sixth aspect, there is provided a computer program product comprising instructions which, when run on a computer, enable the computer to perform the data synchronization method of the first aspect or any one of the possible designs of the aspects.
In a seventh aspect, a data synchronization device is provided, which may be a data synchronization device or a chip or a system on a chip in a data synchronization device, the data synchronization device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being 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 described above in the first aspect or any of the possible designs of the first aspect.
In an eighth aspect, a chip system is provided, the chip system comprising a processor and a communication interface, the chip system being operable to implement the functions performed by the data synchronizing device in the first aspect or any of the possible designs of the first aspect, e.g. the processor being operable to obtain first request information from the terminal device via the communication interface. In one possible design, the chip system further includes a memory for holding program instructions and/or data. The chip system may be composed of a chip, or may include a chip and other discrete devices, without limitation.
The technical effects of any one of the design manners of the second aspect to the eighth aspect may be referred to the technical effects of the first aspect, and will not be described herein.
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 (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 device 500 according to an embodiment of the present application;
fig. 6 is a flow chart 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 flowchart of another data transmission method according to an embodiment of the present application;
fig. 9 is a schematic diagram of association relationships of another parameter example provided in the embodiment of the present application;
fig. 10 is a 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 device 100 according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, 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 the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of embodiments of the present application as detailed in the accompanying 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, and/or components.
As described in the background, the management and control system of the operator network is mainly used for managing the synchronization of time signals/clock signals (also called frequency signals) between a time/clock server device and a transmission device in the network. The time signals transferred between devices in the synchronous network mainly comprise accurate time protocol (Precision Time Protocol, PTP) signals, real time clock synchronized signals (1pulse per second&time of date,1pps+tod) signals, and the transferred frequency signals mainly comprise 2 Mbit/s (Mbit/s), 2 mhz (hz), synchronous ethernet (synchronous ethernet, sync) signals, etc. The time synchronization and the frequency synchronization of the devices in the whole network can be realized through the transmission of the time signals and the frequency signals transmitted one by one between the transmission devices in the network.
In one example, as shown in fig. 1, a schematic diagram of the transmission of a time signal in a network is shown. The solid line in fig. 1 is the current actual transmission path of the PTP signal, and the broken line is the back-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 are SNMP, netconf protocol, etc. The management and control system mainly comprises topology management, configuration management, resource management, alarm management, performance management, log management, user management and the like, and realizes management and control of all layers of equipment.
The SNMP protocol adopts a special form of Client/Server (Server) model: agent/management station model. The management and maintenance of the network by the management system is accomplished through the interworking between the management workstation and the SNMP agent. Each SNMP room is configured to receive query information from an SNMP management workstation (master agent) and provide 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 shown in fig. 2.
Further, in order to implement information interaction before the management process and the proxy 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 proxy process.
2. Get next request (get-next-request) operation: the next parameter value for the one or more parameters is extracted from the proxy process.
3. Set request (set-request) operation: one or more parameter values of the proxy process are set.
4. Get response (Get-response) operation: the returned parameter value or values. The operations are issued by the proxy process.
5. Trap operation: the proxy process actively sends out messages to inform the management process that something happens.
The 1-3 operations described above are issued by the management process to the proxy process, and 4 and 5 are issued by the proxy process to the management process. The 3 operations issued by the management process employ the 1 6 1 port of the user datagram protocol (user datagram protocol, UPD). Tr a P operations issued by the proxy process employ the 1 6 2 port of U D P. Because different port numbers are adopted for receiving and transmitting, the management and control system can be a management process and a proxy process at the same time.
Furthermore, in order to realize the management and control of the device by the management and control system, the configuration, state and other data of the device stored by the management and control system are required to be consistent with the actual data of the device, and the real-time performance of the data is required to 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 subjected to full-quantity inquiry so as to ensure the consistency of the data. When a certain state of the subsequent equipment changes, the equipment can report to the network management and control system in a mode of notifying event trap. After receiving the trap message, the management and control system can analyze the corresponding parameters in the trap message and update the database of the management and control system.
However, there is a correlation between many state parameters on the device, and some parameters of the management and control system itself are also correlated with the state parameters of the device, and not all state parameters of the device report messages when changes occur. Typically, the device will report messages only when some significant event or failure occurs. However, the message reported by the device may not necessarily cover all parameters that have been changed. In addition, when the state of one device is changed, the state of other devices can be changed, which brings about the problem of inconsistent data between the management and control system and the devices.
In one possible implementation, the management and control system may actively query the operating data of the device for a predetermined period of time (e.g., 1 day). And when the operation data of the equipment is not consistent with the stored operation data, updating the stored equipment data. However, the real-time performance of the method is poor, and the real-time synchronization of the data of the synchronous control system and the equipment cannot be achieved.
In view of this, the embodiment of the application provides a data synchronization method for ensuring the synchronism of data between management and control devices. The management and control equipment 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 notification time by querying a preset state association library. The management and control device may then merge one or more parameter instances associated with the plurality of object instances to obtain a set of parameter instances. 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, for enabling the parameter value stored in the database to be synchronous with the actual data of the device.
The method provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that, the network system described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the network system and the appearance of other network systems, the technical solution provided in the embodiments of the present application is applicable to similar technical problems.
Fig. 4 is a schematic diagram of a network system according to an embodiment of the present application. As shown in fig. 2, the network system may include a management device and a plurality of transmission devices. The management device may be communicatively coupled to a plurality of devices.
Wherein the management and control device may be used to monitor operational data of the plurality of devices. For example. The management and control device may be a server, a computer, etc. The management and control device may also be provided with a database for storing operational data of the plurality of devices.
Wherein the transmission device is used for providing data services. For example, a time signal and a frequency signal may be acquired from the previous hop device, and the time and frequency of itself may be adjusted according to the acquired time signal and frequency signal. The transmitting 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 frame diagram, the number of devices included in fig. 4 is not limited, and 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 employ the constituent structure shown in fig. 5, or may include the components shown in fig. 5. Fig. 5 is a schematic diagram of a data synchronization device 500 according to an embodiment of the present application, where the data synchronization device 500 may be a chip or a system on a chip in a management and control device. Alternatively, the data synchronization device 500 may be a chip or a system on a chip in an optical network device. Alternatively, the data synchronization device 500 may be a chip or a system on a chip in a data synchronization device. As shown in fig. 5, the data synchronization device 500 includes a processor 501, a communication interface 502, and a communication line 503.
Further, the data synchronization device 500 may also 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, general-purpose processor, network processor (network processor, NP), digital signal processor (digital signal processing, DSP), microprocessor, microcontroller, programmable logic device (programmable logic device, PLD), or any combination thereof. The processor 501 may also be other devices with processing functions, such as a circuit, a device, or a software module, without limitation.
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 components included in the data synchronizing device 500.
Memory 504 for storing instructions. Wherein the instructions may be computer programs.
The memory 504 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device capable of storing static information and/or instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device capable of storing information and/or instructions, an EEPROM, a CD-ROM (compact disc read-only memory) or other optical disk storage, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, etc.
It is noted that the memory 504 may exist separately from the processor 501 or may be integrated with the processor 501. Memory 504 may be used to store instructions or program code or some data, etc. The memory 504 may be located inside the data synchronizer 500 or outside the data synchronizer 500, without limitation. The processor 501 is configured to execute instructions stored in the memory 504 to implement a data synchronization method provided in 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 device 500 includes multiple processors, e.g., in addition to the processor 501 in fig. 5, a processor 507 may be included.
As an alternative implementation, the data synchronization apparatus 500 further comprises an output device 505 and an input device 506. Illustratively, the input device 506 is a keyboard, mouse, microphone, or joystick device, and the output device 505 is a display screen, speaker (spaker), or the like.
It should be noted that the data synchronizing device 500 may be a desktop computer, a portable computer, a web server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system, or a device having a similar structure as in fig. 5. Furthermore, the constituent structures shown in fig. 5 do not constitute limitations on the respective apparatuses in fig. 4, and the respective apparatuses in fig. 4 may include more or less components than those in fig. 5, or may combine some components, or may be arranged in different components, in addition to those shown in fig. 5.
In the embodiment of the application, the chip system may be formed by a chip, and may also include a chip and other discrete devices.
Further, actions, terms, etc. referred to between embodiments of the present application may be referred to each other without limitation. In the embodiment of the present application, the name of the message or the name of the parameter in the message, etc. interacted between the devices are only an example, and other names may also be adopted in the specific implementation, and are not limited.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first data transmission policy and the second data transmission policy are merely for distinguishing between different data transmission policies, and are not limited in their order of precedence. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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 plural.
The following describes a data synchronization method provided in the embodiment of the present application with reference to the network architecture shown in fig. 6.
Fig. 6 provides a data synchronization method applied to a management and control device, which 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.
The duration of the first time period is smaller than or equal to the preset duration. For example, the first period of time may be 30 seconds(s), 20s, etc. A notification event is used to notify an object instance of a change in a parameter value. Examples of objects may be network elements, links, boards, ports, time signals, frequency signals, clock (frequency) tracking states, time tracking states, etc. An object instance may also be an example of a MIB node parameter of a device. Such as whether the board is in place. The object instance may also be a parameter instance of the controlling device. For example, the status color of the board card of the device machine block diagram of the management and control device can be shown.
In one possible implementation, a notification event may be reported to a management and control device when a device detects a change in an operating parameter. Accordingly, the management and control device may receive a notification event reported by the device.
In one example, when communicating between the controlling device and the device using the SNMP protocol, the device may send a notification event to the controlling device in the form of a trap message.
In yet another possible implementation, a degradation event may be reported to the management and control device when degradation occurs to a 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 abnormality of a device state or an abnormality of an operation parameter. For example, when the device is out of lock in the current tracking state (a manifestation of device degradation), a trap message may be reported to the management and control device to notify the device that the current tracking state is out of lock. The tracking state out-of-lock means that the device cannot acquire the frequency signal from the previous hop device.
S602, according to a preset state management database, determining one or more first parameter instances associated with each object instance.
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 be the same as or different from the object instance. For example, when an object instance is that the current tracking state of a device is out of lock, the associated parameter instance may be that the current tracking state of the next hop device of the device is out of lock. For another example, when an object instance is a card out of place, the parameter instance associated with the object instance may be a port exception of the card.
The preset state management database may be preconfigured for the management and control device, or may be generated by the management and control device according to an association relationship between a plurality of devices, without limitation. In particular, reference may be made to the following description.
The state association relationship between the object instance and the plurality of parameter instances may refer to that when the state of the object instance changes, the state change of the plurality of parameter instances can be triggered. However, when the states of the plurality of parameter instances change, the state change of the object instance may or may not be triggered.
In one example, two parameter instances with an association relationship exist in a preset state association database. The association between the two parameter instances may be a one-way relationship or a two-way relationship.
The unidirectional relationship may refer to a state change of one parameter instance (referred to as parameter instance 1) of the two parameter instances, and may trigger a state change of the other parameter instance (referred to as parameter instance 2). However, the change in state of parameter instance 2 cannot trigger the change in state of parameter instance 1. The bidirectional relationship may be replaced by a state change of parameter instance 1, which may trigger a state change of parameter instance 2. Meanwhile, the state change of the parameter example 2 may also trigger the state change of the parameter example 1.
In one possible implementation, in the preset state association database, multiple parameter instances may be associated in a topological form.
For example, as shown in fig. 7, the plurality of parameter instances included in the preset state management database may be parameter instance 3, parameter instance 4, parameter instance 5, parameter instance 6, and parameter instance 7. The association relationship between the plurality of parameter instances may be as shown in fig. 7.
In fig. 7, the association relationship between parameter example 4 and parameter example 3, and between parameter example 4 and parameter example 5 is a one-way relationship. The association relationship between the parameter example 5 and the parameter example 6, and the association relationship between the parameter example 6 and the parameter example 7 are two-way relationships. That is, when the state of parameter instance 5 changes, the state of parameter instance 6 may be triggered, and the state of parameter instance 7 may also be triggered.
Further, there is a constraint relationship between parameter instances. The constraint relationship is used to characterize the positional relationship between parameter instances. For example, the constraint relationship may include 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 of parameter instance 4 and parameter instance 3 is located in the same device. The constraint relationship between parameter instance 4 and parameter instance 5 is that they belong to the same port. The constraint relationship between parameter instance 5 and parameter instance 6 is that they are located on the same board. The constraint relation between the parameter example 6 and the parameter example 7 is the opposite end port of the same link.
In one example, when the notification event received by the management device is used to notify the parameter instance 5 (when the parameter instance 5 is an object instance) that the parameter value changes, the management 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 yet another example, when the notification time received by the management and control device is used to notify the parameter instance 4 (when the parameter instance 4 is an object instance) that the parameter value changes, the management and control device may determine that the parameter instance associated with the parameter instance 4 includes the parameter instance 3, the parameter instance 5, the parameter instance 6, and the parameter instance 7 according to the association relationship shown in fig. 6.
S603, when one or more first parameter instances corresponding to the object instances exist coincident parameter instances, merging the one or more parameter instances corresponding to the object instances to obtain a first parameter instance set.
The first parameter instance set may include first parameter instances corresponding to the multiple object instances after merging.
For example, the example in S604 described above is combined. The parameter examples which are determined by the management and control equipment and are associated with the parameter example 5 comprise a parameter example 6 and a parameter example 7, and the parameter examples which are associated with the parameter example 4 comprise a parameter example 3, a parameter example 5, a parameter example 6 and a parameter example 7. The first set of parameter instances includes 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 plurality of object instances. In this way, 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 located after the first time period. The parameter value of the parameter instance in the second period of time may refer to state information, parameter size, etc. of the parameter instance in the second period of time. The database may refer to a pre-configured management device. The database is used for storing the operation data of the equipment.
In one possible implementation, when the management device determines the first set of parameter instances, information of the device corresponding to each parameter instance may be determined. The management and control device may then 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 a second period of time. The device, upon receiving the query information from the controlling device, may send the parameter values of the parameter instances to the controlling device in the form of a response message. Thus, 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 can determine the device corresponding to the parameter instance according to the parameter instance. The notification event may also include information of the device to which the parameter instance corresponds. Thus, 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 management and control 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 by the parameter value of each parameter instance in the second time period. Thus, the synchronization of the parameter value stored by the management and control equipment and the parameter value of the equipment is ensured.
Based on the technical solution of fig. 6, when the management and control system receives the parameter value changes of multiple instances, multiple parameter instances associated with multiple instances can be determined by querying a state association knowledge graph library including multiple instances with state association relations, and the multiple parameter instances are combined to remove the coincident parameter instances. Thus, 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 plurality of parameter instances with the acquired current parameter values of the plurality of parameter instances, so that the synchronism of the data of the plurality of parameter values stored in the management and control system and the data of the parameter instances of the plurality of managed devices 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 during the 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 a database according to the parameter value of the object instance corresponding to each notification event.
Wherein updating the database may refer to replacing parameter values stored in the database before the first period of time with parameter values of object instances included in the notification event. Thus, comprehensive and accurate synchronization of data from device to device is included.
Based on the technical scheme shown in fig. 8, the management and control device can directly analyze the notification event to obtain parameter values of a plurality of object instances, and update the parameter values of the object instances in the database. Thereby, 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 instances in the plurality of notification events are further associated with the management and control device, the management and control device may further directly obtain the parameter values of the object instances and update the parameter values related to the management and control device in the database.
In some embodiments, the preset state association database may be preconfigured for the controlling device. For example, it may be entered into the management and control device for maintenance personnel. The preset state management database may be generated autonomously for the management and control device.
For example, the management and control device may determine an association relationship between multiple parameter instances through testing. For example, for parameter instance 1 and parameter instance 2, the controlling device may control the device in which parameter instance 1 is located to change the state of parameter instance 1. The controlling device may then query whether the state of parameter instance 2 has changed within a preset period of time. When the state of the parameter example 2 changes, it is explained that there is an association relationship between the parameter example 1 and the parameter example 2.
Further, in order to determine whether the association relationship between the parameter instance 1 and the parameter instance 2 is a unidirectional relationship or a bidirectional relationship, the management and control device may further control the device where the parameter instance 2 is located to change the state of the parameter instance 2. The controlling device may then query whether the state of parameter instance 1 has changed within a preset period of time. When the state of the parameter example 1 changes, the association relationship between the parameter example 1 and the parameter example 2 is illustrated as a bidirectional relationship; when the state of the parameter example 1 does not change, it is explained that the association relationship between the parameter example 1 and the parameter example 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 management and control device may determine an association between the plurality of 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 a specific example.
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. Edges in the graph represent the relationship between two object instances. Edges may be unidirectional or bidirectional.
Wherein when a change of one object instance a causes a change of another object instance B and a change of object instance B does not cause a change of object instance a, then the two object instances are considered to be in relation, the edges being unidirectional a- > B. When either of object instances A and B changes, the other changes, the edges are A < - > B that are bi-directional.
It should be noted that, in the embodiment of the present application, the preset state association database is configurable. And for any side in the preset state association database, at least comprising an object instance A, an object instance B, an influence relationship between the object instance A and the object instance B and 4 characteristics of a constraint condition of a relationship between the object instance A and the object instance B.
In one example, a change in the state of a PTP input signal (e.g., a lost PTP input) at an 8-slot 1 port of a device may cause a change in the state of the current tracking time source of the same device. Meanwhile, the PTP signal input signal state change of the 8 slot 1 port of the device may also cause the PTP signal port state in the port to change (e.g., standby becomes faulty).
In addition, the state change of the PTP signal port of the 8 slot 1 port of the device may also cause the state change of the PTP signal port in the 8 slot 2 port on the same board card of the device (e.g. master) 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 (e.g. passive to master). The example has the following 4 features.
Feature 1, PTP input signal change in port- > device current tracking time source change. The constraint is 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 the PTP signal port state change in port. The constraint is that the same card be other ports.
Feature 4, PTP signal port state change in port the PTP signal port state change in port. The constraint condition is the same link opposite end port.
Based on the 4 features, the association relationship in the preset state database may be shown in fig. 9.
In yet another example, when a link is broken, a change in the state of ports at both ends of the link may result. This example has the features: link down- > port state changes to off (down). The constraint is the two end ports of the same link.
In one possible embodiment, as shown in fig. 10, the embodiment of the present application provides a data synchronization method, which includes S1001 to S1006.
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 managing device receives notification events from the device.
The notification event may be an SNMP trap event message of one or a fragment.
S1002, the management and control equipment 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 equipment according to the state parameter.
S1003, the management and control equipment queries a preset state association database to determine 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 management and control device itself.
S1004, the management and control equipment inquires a first parameter instance corresponding to each object instance in a plurality of notification events in a preset time period, and merges the first parameter instance corresponding to each object instance in the plurality of 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 SyncE signal of the output of device a. The association relation stored in the preset state database comprises the following steps:
1. device a current tracking status out of lock- > ethernet synchronization information channel (ethernet synchronization messaging channel, ESMC) value of the SyncE signal in device a output port is degraded. The constraint condition is the same equipment;
2. sync E signal ESMC values in device A output port degrade < - > Sync E signal ESMC values in device B input port degrade. The constraint is the SyncE signal in the same link.
3. SyncE signal ESMC value degradation in device B input port device B currently tracks clock quality degradation. The constraint is the same device.
In one example, when the management and control device receives a notification event 1 from the device a reporting that the current tracking state of the device a is unlocked and a notification event 2 from the device B reporting 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 management and control device can query an ESMC value degradation instance of the Sync E signal in the output port of the device A (the ESMC value represents the frequency quality of the Sync E signal), an ESMC value degradation instance of the Sync E signal in the input port of the device B, and a current tracking clock quality degradation instance of the device B through a preset state management database.
The management and control device can query the ESMC value degradation instance of the Sync E signal in the input port of the device B and the ESMC value degradation instance of the Sync E signal in the output port of the device A through the preset state management database.
In this way, the management and control 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 trace clock quality degradation of device B into 1.
S1005, the management and control equipment inquires the parameter value of each parameter instance in the combined parameter instance set.
In one example, the management device may actively query the parameter values of each parameter instance through SNMP get-request. The device in which the parameter instance is located may return the current real-time parameter value of the queried parameter instance via SNMP get-response. After receiving the SNMP get-response, the management and control device can update its own database.
The parameter examples queried by the control equipment comprise: the current tracking state 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 tracking clock quality of device B.
S1006, the management and control equipment updates parameters displayed on the front-end display interface and parameter values in the database according to the parameter values of the queried parameter examples.
It should be noted that, the implementation manner of S1001 to S1006 may refer to the description of the foregoing embodiments, and will not be repeated.
Based on the technical scheme of fig. 10, based on the preset state association database, the real-time synchronous consistency of the data stored by the management and control system equipment and the data of the equipment can be ensured. Thereby improving the reliability of network management and improving the operation and maintenance efficiency.
The various schemes in the embodiments of the present application may be combined on the premise of no contradiction.
The embodiment of the present application may divide the functional modules or functional units of the data synchronization device according to the above method example, 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 modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiments of the present application is merely a logic function division, and other division manners may be implemented in practice.
In the case of dividing the respective functional modules by the respective functions, fig. 11 shows a schematic structural diagram of a data synchronization device 110, where the data synchronization device 110 may be a management device or a chip applied to the management device, and the data synchronization device 110 may be used to perform the functions of the management device as described in the above embodiments. The data synchronization device 110 shown in fig. 11 may include: a receiving unit 1101, a determining unit 1102, a processing unit 1103, and a querying unit 1104.
The receiving unit 1101 is configured to receive a plurality of notification events in a first period, where one notification event is used to notify a change in a parameter value of one object instance, and different notification events correspond to different object instances, and the first period is less than a preset duration.
The determining unit 1102 is 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 a state association relationship between each object instance and the plurality of parameter instances.
The processing unit 1103 is configured to, when there are coincident parameter instances in one or more first parameter instances corresponding to the plurality of object instances, combine the one or more first parameter instances corresponding to the plurality of object instances to obtain a first parameter instance set.
A query unit 1104 is configured to query the parameter value of each parameter instance in the first parameter instance set in the second time period.
The processing unit 1103 is further configured to replace a parameter value of each parameter instance in the first set of parameter instances stored in the database with a parameter value of each parameter instance in the second time period.
In one possible implementation manner, the relationship between two parameter instances with the association relationship in the preset state association database is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between two parameter instances is used to characterize the positional relationship of the two parameter instances.
In one possible implementation manner, the relationship between two parameter instances with the association relationship in the preset state association database is a unidirectional association relationship or a bidirectional association relationship, and a constraint relationship exists between the two parameter instances. The constraint relationship between 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 query 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 each corresponding object example; and updating the database according to the parameter value of the object example corresponding to each notification event.
As yet another implementation, 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 a transceiving 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 transceiver unit, the data synchronization device 110 according to the embodiment of the present application may be the data synchronization device shown in fig. 5.
Embodiments of the present application also provide a computer-readable storage medium. All or part of the flow in the above method embodiments may be implemented by a computer program to instruct related hardware, where the program may be stored in the above computer readable storage medium, and when the program is executed, the program may include the flow in the above method embodiments. The computer readable storage medium may be an internal storage unit of the data synchronization device (including the data transmitting 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 device. The computer readable storage medium may be an external storage device of the terminal apparatus, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card), or the like, which are provided in the terminal apparatus. Further, the computer readable storage medium may further 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 synchronizing device. 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 between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 (item)" means one or more, "a plurality" means two or more, "at least two (items)" means two or three and three or more, "and/or" for describing an association relationship of an association object, three kinds of relationships may exist, for example, "a and/or B" may mean: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method of data synchronization, for use with a management and control device, the method comprising:
receiving a plurality of notification events in a first time period, wherein one notification event is used for notifying the parameter value of one object instance to change, different notification events correspond to different object instances, and the first time period is smaller than a preset time period;
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 relation between two parameter examples with the association relation in the preset state association database is a one-way association relation or a two-way association relation, and a constraint relation exists between the two parameter examples, wherein the constraint relation is used for representing the position relation of the two parameter examples; 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;
When one or more first parameter examples corresponding to a plurality of object examples exist coincident parameter examples, merging the one or more first parameter examples corresponding to the plurality of object examples to obtain a first parameter example set;
querying a parameter value of each parameter instance in the first parameter instance set in a second time period, and replacing the parameter value of each parameter instance in the first parameter instance set stored in a database with a parameter value respectively in the second time period, wherein the second time period is located after the first time period.
2. The method according to claim 1, wherein the method further comprises:
determining information of equipment corresponding to each parameter instance in the first parameter instance set;
the querying the parameter value of each parameter instance in the first parameter instance set in the second time period comprises the following steps:
and inquiring the operation data of the equipment corresponding to each parameter instance in the first parameter instance set in a second time period.
3. The method of claim 2, wherein after the receiving a plurality of notification events within a first time period, the method further comprises:
Analyzing each notification event to obtain a parameter value of each corresponding object instance;
and updating the database according to the parameter value of the object instance corresponding to each notification event.
4. A data synchronization device, characterized in that it is applied to a management and control apparatus, the device comprises a receiving unit, a determining unit, a processing unit and a querying unit;
the receiving unit is used for receiving a plurality of notification events in a first time period, wherein one notification event is used for notifying the parameter value of one object instance to change, different notification events correspond to different object instances, and the first time period is smaller than a preset time period;
the determining unit is used for determining one or more first parameter examples associated with each object example according to a preset state association database, wherein the preset state association database comprises a plurality of object examples and state association relations between each object example and the plurality of parameter examples; the relation between two parameter examples with the association relation in the preset state association database is a one-way association relation or a two-way association relation, and a constraint relation exists between the two parameter examples, wherein the constraint relation is used for representing the position relation of the two parameter examples; 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;
The processing unit is used for merging one or more first parameter instances corresponding to the object instances to obtain a first parameter instance set when the coincident parameter instances exist in the one or more first parameter instances corresponding to the object instances;
the query unit is configured to query a parameter value of each parameter instance in the first parameter instance set in a second time period, where the second time period is located after the first time period;
the processing unit is further configured to replace a parameter value of each parameter instance in the first parameter instance set stored in the database with a parameter value of each parameter instance in a second time period.
5. The apparatus of claim 4, wherein the determining unit is further configured to determine information of a device corresponding to each parameter instance in the first set of parameter instances;
the query unit is specifically configured to query operation data of the device corresponding to each parameter instance in the first parameter instance set in a second time period.
6. The apparatus of claim 5, wherein the processing unit is further configured to:
after receiving a plurality of notification events, analyzing each notification event to obtain parameter values of respective corresponding object instances; and updating the database according to the parameter value of the object instance corresponding to each notification event.
7. A computer readable storage medium having instructions stored therein which, when executed, implement the method of any of claims 1-3.
8. A data synchronization device, comprising: a processor, a memory, and a communication interface; wherein the communication interface is used for the communication of the data synchronization device; the memory is configured to store one or more programs, the one or more programs comprising computer-executable instructions that, when executed by the data synchronization device, cause the data synchronization device to perform the method of any of claims 1-3.
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 CN115189994A (en) 2022-10-14
CN115189994B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868226A (en) * 2021-09-09 2021-12-31 猪八戒股份有限公司 Database management method, database platform and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2505885C (en) * 2000-04-10 2009-12-15 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 珠海格力电器股份有限公司 The operating parameter control method of associated data based on equipment
US11272015B2 (en) * 2019-12-13 2022-03-08 Liveperson, Inc. Function-as-a-service 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
CN112699187B (en) * 2020-12-29 2023-05-16 中国联合网络通信集团有限公司 Associated data processing method, device, equipment, medium and product
CN113435657B (en) * 2021-07-09 2022-12-23 清华四川能源互联网研究院 Data integration processing method, system, energy management system, electronic device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868226A (en) * 2021-09-09 2021-12-31 猪八戒股份有限公司 Database management method, database platform and readable storage medium

Also Published As

Publication number Publication date
CN115189994A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
EP1556777B1 (en) System and method for synchronizing the configuration of distributed network management applications
Ruiz et al. Manna: A management architecture for wireless sensor networks
US7949744B2 (en) System and method for synchronizing the configuration of distributed network management applications
US20060230309A1 (en) System for remote fault management in a wireless network
CN102047683B (en) Dynamic fault analysis for a centrally managed network element in a telecommunications system
US10340981B2 (en) Data center management using device identification over power-line
US20100235493A1 (en) Extendable distributed network management system and method
WO2013097719A1 (en) Method and apparatus for resources synchronization
US20160092537A1 (en) Polling based synchronization in managed networks
CN113778615B (en) Rapid and stable network shooting range virtual machine construction system
CN102843259A (en) Middleware self-management hot backup method and middleware self-management hot backup system in cluster
JPH09247144A (en) Method for managing hierarchical network
CN115189994B (en) Data synchronization method and device and computer readable storage medium
CN112087506B (en) Cluster node management method and device and computer storage medium
CN110196721B (en) Internet data center management method, system and medium
CN105306243A (en) Stale data collection method, device 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
CN115208905A (en) Device information synchronization method, device, system, electronic device and storage medium
EP3837808B1 (en) Management model for network equipment performance measurements
CN112787868A (en) Information synchronization method and device
CN102244619B (en) Equipment management method, gateway and server
CN111241200A (en) sSQLite database-based main and standby synchronous processing method and device
CN111722988A (en) Fault switching method and device for data space nodes
KR100542410B1 (en) Element Management System in NGTS and Dynamic Management Component Construction Method thereon

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