WO2009111965A1 - 一种数据同步的方法、设备及系统 - Google Patents

一种数据同步的方法、设备及系统 Download PDF

Info

Publication number
WO2009111965A1
WO2009111965A1 PCT/CN2009/070657 CN2009070657W WO2009111965A1 WO 2009111965 A1 WO2009111965 A1 WO 2009111965A1 CN 2009070657 W CN2009070657 W CN 2009070657W WO 2009111965 A1 WO2009111965 A1 WO 2009111965A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
synchronization
identifier
instruction
requested
Prior art date
Application number
PCT/CN2009/070657
Other languages
English (en)
French (fr)
Inventor
史曙光
韦增战
李宗标
迟菲
朱峰
邓芊
蒋英茹
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2009111965A1 publication Critical patent/WO2009111965A1/zh

Links

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/024Standardisation; Integration using relational databases for representation of network management data, e.g. managing via structured query language [SQL]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for data synchronization. Background technique
  • GUI Graphic User Interface
  • OSS Operational Support System
  • MIB Management Information Base
  • the interface delivers services to the NE device.
  • the data in the network management device database is inconsistent with the data of the network element device managed by the network management device due to network transmission restrictions.
  • the network management device needs to continuously obtain relevant data from the network element device, and update the data on the network management device to make data on the network management device and data on the network element. be consistent. This operation of the network management device is called "synchronous operation".
  • the current synchronization operation is generally performed in the following way:
  • the network management device wakes up through 8?
  • the get-next command in the S imple network management protocol sends a synchronization command to a piece of data to the network element device.
  • the network element receives the corresponding data on the network element.
  • the network management device updates the data on the network management device, so that the data of the network element device displayed on the network management device is the same as the data of the network element device itself. Therefore, if the network management device needs to have multiple pieces of data To synchronize, you need to send multiple corresponding get-next instructions to the network element device.
  • the inventor has found that at least the following problems exist in the prior art: If the synchronization operation is performed in the above manner, each time the network management device acquires a piece of data, it needs to perform a get-next instruction with the network element device. Interacting related data. Then, when the amount of data is large, a large amount of data interaction between the network management device and the network element device is required, so that the number of interactions between the two devices is large, and the interaction time occupied is relatively long. In the case of a poor network, the interaction between devices takes longer. In the case of the entire network management, that is, when there are multiple network elements in the network, the network management device needs to perform the above interaction with each network element device by using the method in the prior art. However, due to the limitation of the CPU resources of the network management device, the concurrency between the network element devices is low and the data synchronization speed is slow. Summary of the invention
  • the embodiment of the invention provides a method, a device and a system for data synchronization, which overcomes the defect that the network management device can only obtain one synchronization data from the network element through a data synchronization instruction in the prior art.
  • a method for data synchronization includes: combining identifiers corresponding to at least two pieces of data requested to be synchronized; and transmitting a data synchronization instruction, where the data synchronization instruction includes a synchronization request for the at least two pieces of data And the combination of the foregoing identifiers; receiving data requested by the data synchronization instruction, and updating the data that needs to be synchronized according to the received data.
  • another method for data synchronization includes: receiving a data synchronization instruction, where the data synchronization instruction includes a synchronization request for at least two pieces of data, and corresponding to data requested by the data synchronization instruction.
  • the identifier combination consisting of: identifying data synchronized by the data synchronization instruction; compressing the data of the request synchronization of the collection; and transmitting the data of the compressed request synchronization.
  • An apparatus for data synchronization includes: a generating unit, an instruction sending unit, and a data updating unit.
  • the generating unit is configured to combine identifiers corresponding to at least two data requested to be synchronized to form an identifier combination; a unit, configured to send a data synchronization instruction, where the data synchronization instruction includes a synchronization request for the at least two pieces of data and a combination of identifiers;
  • the data requested to be synchronized by the data synchronization instruction is received, and the data to be synchronized is updated according to the received data.
  • the data synchronization device includes: an instruction receiving unit, a data collection unit, a data compression unit, and a data sending unit, where the instruction receiving unit is configured to receive a data synchronization instruction, where The data synchronization instruction includes an identifier combination consisting of a synchronization request for at least two data and an identifier corresponding to the data requested by the data synchronization instruction; a data collection unit configured to collect data requested by the data synchronization instruction; a data compression unit, configured to compress data of the request synchronization of the foregoing collection; and a data sending unit, configured to send the data of the compressed request synchronization.
  • the embodiment of the present invention further provides a data synchronization system, including: a network management device and at least one network element device; wherein, the network management device includes: a generating unit, an instruction sending unit, and a data updating unit; wherein, the generating unit is configured to The identifier corresponding to the data of the at least two requested synchronizations constitutes a combination of identifiers; the instruction sending unit is configured to send a data synchronization instruction, where the data synchronization instruction includes a synchronization request for the at least two pieces of data and a combination of identifiers; And receiving the data that is requested to be synchronized by the data synchronization instruction, and updating the data that needs to be synchronized according to the received data; the network element device includes: an instruction receiving unit, a data collection unit, a data compression unit, and a data sending unit; An instruction receiving unit, configured to receive a data synchronization instruction, where the data synchronization instruction includes a combination of a synchronization request for at least two data and an
  • the method, device and system for data synchronization provided by the embodiment of the present invention firstly combine the identifiers corresponding to the data to be synchronized, and then send them to the network element device through a data synchronization instruction together with the synchronization request for multiple pieces of data. .
  • the network element device collects the corresponding data according to the data synchronization instruction and the identifier combination, compresses the collected data, and then sends the compressed data to the network management device.
  • the device can obtain only one defect of synchronous data through a data synchronization command, which reduces the interaction time between the network management device and the network element device, and improves the efficiency of data synchronization.
  • FIG. 1 is a flow chart of a method for data synchronization according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic diagram of a method for data synchronization according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a method for data synchronization according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of a method for data synchronization according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of an apparatus for data synchronization in Embodiment 3 of the present invention.
  • FIG. 6 is a schematic diagram of an apparatus for data synchronization in Embodiment 3 of the present invention.
  • FIG. 7 is a schematic diagram of a device for data synchronization in Embodiment 4 of the present invention.
  • FIG. 8 is a schematic diagram of an apparatus for data synchronization according to Embodiment 4 of the present invention.
  • Figure 9 is a schematic diagram of a system for data synchronization in accordance with a fifth embodiment of the present invention.
  • embodiments of the present invention provide a data synchronization method, device, and system.
  • the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
  • the method for data synchronization includes the following steps: Step 100: Combine identifiers corresponding to at least two data that are requested to be synchronized into an identifier combination; Step 101: Send a data synchronization instruction, where The data synchronization instruction includes a synchronization request and a combination of identifiers for the at least two pieces of data;
  • Step 102 Receive data requested by the data synchronization instruction, and update data that needs to be synchronized according to the received data.
  • the identifier corresponding to the data requested by the data synchronization instruction may include: an identifier of a management information database table to which the data requested by the data synchronization instruction belongs, or other forms.
  • the network management system includes a network management station (NMS, Network Management Station) and a proxy (Agent), wherein the network management station can be a PC, a workstation or a server.
  • the network management station communicates with the manager (Manager, referred to as "network management device” in the embodiment of the present invention) and the agent (“network element device” in the embodiment of the present invention).
  • the network administrator sends management commands to the agent through the network management station, such as query or modification.
  • the agent After receiving the relevant command, the agent queries or modifies the data in the MIB (Management Information Base) and then generates a response to S.
  • the agent can also generate an unsolicited event notification and report it to S. For example, the agent can report a trap message to S.
  • the above MIB table is a logical conceptual database that holds the values of all managed objects in the managed device. Each managed object is assigned a 0 ID (objec t ident if ier, object identifier) identifier.
  • the M I B table includes:
  • MIB Tree A software representation of the Management Information Base, a data model for software system management MIB nodes. This model can connect the relationships between nodes through the parent node, child nodes and sibling nodes to form a tree structure;
  • Configuration information item The information supported by the system can be modified or can be queried to describe the minimum unit, which is represented as a leaf node in the MIB;
  • Configuration entry Several related configuration information items are combined to form a configuration entry, which is represented in the MIB as the parent node of the leaf node.
  • Each node of the MIB tree is assigned a number (non-negative number), and nodes of the same layer are distinguished by different numbers. These node numbers are assigned by the standard organization to specify that any node in the MIB tree is named by its location. Since the node numbers of the same layer are different, the route to a node can be represented by a numeric string from the root of the tree to the node through which the node passes. This string of numbers is called the object identifier of the corresponding MIB object.
  • the MIB table technology is used in the embodiment of the present invention.
  • the network management device Before sending the data synchronization command to the network element device, the network management device can pre-agreed a MIB table with the network element device, and the network management device uses the MIB to A synchronization request of at least two data is sent to the network element device.
  • the following process may be included:
  • the foregoing management information database table is a private MIB table negotiated in advance by the network management device and the network element device. After the MIB table is created, the identity combination is set to a node in the MIB table (such as a Col lectTableName node). For example, if the network management device wants to synchronize the data of Table 1, Table 2, and Table 3 in the NE device, the identifier of the above table may be used, such as the name or identifier of the table, etc., in this embodiment, the tables.
  • the name consists of a string "1, 2, 3" and sets this string to the node Co 11 ec t Tab 1 eName.
  • the network management device When the network element device to be managed by the network management device is added, the network management device saves the information about the MIB table of the data that the network management device requests to synchronize to the network element device by using the Create (Crea te) command in the S-P protocol.
  • the MIB table information that the network management device cares about other MIB table information can be set or saved on the network element device.
  • the identifier of the MIB table to which the request synchronization data belongs may be represented by the name of the MIB table, or may be expressed in other manners.
  • the MIB table on the NE device can be named in the manner of Table 1, Table 2, and Table n respectively.
  • the naming rules of the MIB table are not limited to this, as long as the network element device can resolve the rule. Under the node with the 0ID, the network element device can collect the synchronization data that meets the requirements of the network management device.
  • the information about the network management device that needs to be synchronized is sent to the NE device through the set command (Set) in the S-P protocol.
  • Set set command
  • the network element device After receiving the Set command, the network element device starts collecting data according to the Set command, and parses the string "1, 2, 3" to know which table data the network management device needs to synchronize.
  • the name of the MIB the object identifier of the node where the data of the request synchronization corresponding to the name is found is found, and the network element device can collect data under the corresponding node.
  • the data synchronization command may also be sent by using a communication protocol between other network management devices and the network element device, and is not limited to the S-up P protocol described herein.
  • a synchronization request for at least two data and the Identifying the combination and after receiving the data requested for synchronization, updating the data that needs to be synchronized according to the received data. Therefore, the network management device only needs to send a data synchronization command to send a request for synchronizing multiple pieces of data to the network element device.
  • the defect of sending an instruction to the network element device every time a piece of synchronous data is acquired is avoided, and the interaction time between the network management device and the network element device is reduced.
  • Embodiment 2 of the present invention further provides a method for data synchronization.
  • Step 301 Receive a data synchronization instruction, where the data synchronization instruction includes a synchronization request for at least two pieces of data, and the data synchronization instruction is a combination of identifiers consisting of identifiers corresponding to the data requesting synchronization;
  • Step 302 Collect data that is requested to be synchronized by the data synchronization instruction.
  • Step 303 Compress the data of the request synchronization of the foregoing collection
  • Step 304 Send the data of the compressed request synchronization.
  • the network element device After receiving the data synchronization instruction, the network element device parses the data synchronization instruction, obtains the identifier combination, and collects data requested by the data synchronization instruction according to the identifier combination. After collecting the synchronization data, the data is compressed, and then the compressed data is sent to the network management device. Therefore, the network element device can compress multiple pieces of data and then send the compressed data to the network management device, which avoids the defect that only one synchronous data can be sent by one reply command in the prior art, and the network is reduced. The data interaction time between the metadevice and the network management device.
  • the combination of the identifiers included in the data synchronization instruction is composed of the identifier corresponding to the data requested by the data synchronization instruction.
  • the identifier is the same as that described in the first embodiment of the present invention.
  • the identifier includes an identifier of a management information database table to which the data requested by the data synchronization instruction belongs, or may be synchronized by a unique identifier data. Another form of representation of the affiliation of the data requested by the instruction.
  • the method for data synchronization according to the second embodiment of the present invention includes:
  • the index table includes a correspondence between an identifier of a management information database table to which the data requesting synchronization belongs and an object identifier of a node where the data requested to be synchronized is located.
  • step 302 collects the data requested by the data synchronization instruction, which specifically includes:
  • Step 302a parsing the identifier combination in the data synchronization instruction
  • Step 302b Searching the index table according to the identifier of the management information database table to which the data requested to be synchronized by the parsed data synchronization instruction belongs, and obtaining an object identifier of the node where the data of the request synchronization corresponding to the identifier of the management information database table is located ;
  • Step 302c Collect data requesting synchronization according to an object identifier of a node where the data requested to be synchronized is located.
  • the network element device can compress the obtained synchronization data, and notify the network management device that the data preparation is completed by using the t rap command. Then, after receiving the data synchronization request command of the network management device, the network element device transmits the compressed data to the network management device.
  • the network management device can also actively query whether the data is ready. For example, the network management device can send a data transmission request to the network element device.
  • the way to obtain the synchronization data required by the network management device is to use the ge t-next instruction in the S-up P protocol, that is, the network element device sends a ge t-next instruction to the object it manages. Obtaining a piece of data for the object and then writing the data to the compressed data packet. The same is true for other managed objects.
  • the foregoing operation of the network element device is a process of processing data inside the network element. Therefore, in the whole network management, the network management device can perform concurrent data synchronization operations on multiple network element devices.
  • Embodiment 3 of the present invention further provides a device for data synchronization.
  • the device for data synchronization according to the third embodiment of the present invention includes: a generating unit 51, an instruction sending unit 52, and a data updating unit 53. among them,
  • the generating unit 51 is configured to combine the identifiers corresponding to the data of the at least two requested synchronizations into an identifier combination;
  • the instruction sending unit 52 is configured to send a data synchronization instruction, where the data synchronization instruction includes a synchronization request and a combination of identifiers for the at least two pieces of data;
  • the data updating unit 53 is configured to receive data requested by the data synchronization instruction, and update the data that needs to be synchronized according to the received data.
  • the command sending unit 52 specifically includes:
  • the setting subunit 521 is configured to set the foregoing identifier combination at a node of the pre-agreed management information base table, and the sending subunit 522 is configured to send the data synchronization instruction by using a simple network management protocol.
  • the device for requesting data synchronization may send the synchronization instruction for at least two pieces of data to the network element device in the form of a management information database table.
  • the data synchronization instructions may also be transmitted using other communication protocols, and are not limited to the S-up P protocol described herein.
  • the MIB table technique is also utilized.
  • the identification combination is set by one of the plurality of nodes in the MIB table, and the table is a private MIB table. That is to say, through the MIB table, the network element device can know which of the MIB tables in the network element device to obtain data under which nodes. The information of these combination combinations is sent to the network element device through the Set command in the S-up P protocol.
  • the command sending unit only needs to send a data synchronization command to send a request for synchronizing a plurality of pieces of data, and the data to be synchronized may be updated by the data updating unit.
  • the defect of sending a data synchronization instruction every time a synchronization data needs to be acquired is avoided, and the interaction between the network management device and the network element device is reduced. Between.
  • the fourth embodiment of the present invention further provides a device for data synchronization.
  • the device for data synchronization according to Embodiment 4 of the present invention includes: an instruction receiving unit 71, a data collecting unit 72, a data compressing unit 73, and a data transmitting unit 74. among them,
  • the instruction receiving unit 71 is configured to receive a data synchronization instruction, where the data synchronization instruction includes a combination of a synchronization request for at least two data and an identifier corresponding to the data requested by the data synchronization instruction;
  • a data collection unit 72 configured to collect data requested by the data synchronization instruction
  • a data compression unit 73 configured to compress the data of the request synchronization of the foregoing collection
  • the data sending unit 74 is configured to send the data of the compressed request synchronization described above.
  • the device for data synchronization may further include: a storage unit 75, configured to set or store an index table, where the index table is The correspondence between the identifier of the management information base table and the object identifier of the node where the data requested to be synchronized is located is included.
  • the corresponding object identifier can be quickly found by using the identifier of the management information base table to which the data requested by the data synchronization instruction belongs.
  • the data collection unit 72 includes: a parsing module 721, a lookup module 722, and a parsing module 723. among them,
  • the parsing module 721 is configured to parse the identifier combination in the foregoing data synchronization instruction
  • the searching module 722 is configured to search the index table according to the identifier of the management information database table to which the data requested to be synchronized by the parsed data synchronization instruction belongs, and obtain a section of the data corresponding to the request synchronization corresponding to the identifier of the management information database table.
  • object identifier
  • the collection module 723 is configured to collect data for request synchronization according to the object identifier of the node where the data synchronized by the request is located.
  • the network element device After the network element device receives the data synchronization instruction, the network element device parses the data synchronization index. Ordering, synchronizing data according to the data synchronization instruction. After collecting the synchronization data, the data is compressed to obtain a compressed data packet, and then the compressed data packet is sent to the network management device. Therefore, the network element device can send multiple pieces of data to the network management device at the same time by using the compressed data packet, thereby avoiding the defect that only one synchronous data can be sent by one reply command in the prior art, and the network element device is reduced. Data interaction time between network management devices.
  • Embodiment 5 of the present invention further provides a system for data synchronization.
  • the data synchronization system of the fifth embodiment of the present invention includes: a network management device 91, and at least one network element device 92;
  • the network management device 91 includes:
  • a generating unit 911 configured to combine the identifiers corresponding to the data of the at least two requested synchronizations into an identifier combination
  • the instruction sending unit 912 is configured to send a data synchronization instruction, where the data synchronization instruction includes a synchronization request and a combination of identifiers for the at least two pieces of data;
  • the data updating unit 913 is configured to receive data requested by the data synchronization instruction, and update the received data.
  • the network element device 92 includes:
  • the instruction receiving unit 921 is configured to receive a data synchronization instruction, where the data synchronization instruction includes a combination of a synchronization request for at least two data and an identifier corresponding to the data requested by the data synchronization instruction;
  • a data collection unit 922 configured to collect data requested by the data synchronization instruction
  • a data compression unit 923 configured to compress the data of the request synchronization of the foregoing collection
  • the data sending unit 924 is configured to send the data of the compressed request synchronization described above.
  • the command sending unit in the network management device specifically includes:
  • a sending subunit configured to send the above data synchronization instruction by using a simple network management protocol.
  • the data synchronization instruction may also be transmitted by using a communication protocol between the other network management device and the network element device, and is not limited to the S awake protocol described herein.
  • the network element device further includes: a storage unit 925, configured to set or store an index table, where the correspondence between the identifier of the management information base table and the object identifier of the node where the data requested to be synchronized is stored is stored in the index table.
  • the data collection unit described in the network element device includes:
  • a parsing module configured to parse the identifier combination in the foregoing data synchronization instruction
  • a search module configured to search for the index table according to the identifier of the management information database table to which the data requested to be synchronized by the parsed data synchronization instruction belongs, and obtain an object of the node where the data of the request synchronization corresponding to the identifier of the management information database table is located Identifier
  • the collection module is configured to collect data requesting synchronization under the node having the object identifier.
  • the following describes the operation of the system for data synchronization of the embodiment of the present invention.
  • the network management device combines the identifiers corresponding to the data to be synchronized into one identification combination according to requirements. This step includes the following steps:
  • 1101b Set the identifier combination in a node of the management information database table.
  • the management information database table in step 1101a is a private MIB table negotiated by the network management device and the network element device. After the MIB table is created, the identifier combination is set to a node in the MIB table (such as Col lectTableName ). For example, if the network management device wants to synchronize the data of Table 1, Table 2, and Table 3 in the NE device, the identifier of the above table may be used, such as the name or identifier of the table, etc., in this embodiment, the tables.
  • the name consists of a combination of identifiers, such as the string "1, 2, 3", and sets this string to the node Co 11 ec t Tab 1 eName.
  • the mapping between the MIB table identifier of the data to be synchronized by the network management device and the object identifier of the node where the data to be synchronized is required is formed into an index table, and is saved on the network element device.
  • a network element device is added, it is created by the network management device through the wakeup P protocol (Crea te)
  • the command saves the MIB table information that needs to be synchronized in the added network element device and the object identifier of the node where the data that needs to be requested to be synchronized is saved to the network element device.
  • this index table in addition to the MIB table information that the network management device cares about, other MIB table information may be set or saved on the network element device.
  • the network management device sends a data synchronization instruction (such as a Set command) to the network element device by using the S-up P protocol, instructing the network element device to start a data synchronization operation, and the information includes the identifier combination and the like.
  • a data synchronization instruction such as a Set command
  • the network element device After receiving the Set command, the network element device parses the instruction to obtain the identifier combination. And searching, by using the identifier combination, an index table stored on the network element device, and finding an object identifier corresponding to the MIB identifier to which the data to be synchronized belongs, and the network element device is configured under the node with the corresponding object identifier. Corresponding data.
  • the network element device When the network element device collects data, it also uses the get-next command to implement, and after obtaining each piece of data, it compresses it, obtains a compressed data packet, and continuously writes the received data to the collected data. Compressed in the packet.
  • the network management device can notify the network management device that the data collection of the data to be synchronized is completed.
  • the network management device can also actively query the working status of the NE device.
  • the network element device After the network management device needs to synchronize data, the network element device transmits the collected data to the network management device through a protocol such as a file transfer protocol.
  • the network management device After receiving the data, the network management device decompresses the data, and updates the data that needs to be synchronized according to the received corresponding data.
  • the network management device stipulates a private MIB table with the network element device to transmit the data that the network management device needs to synchronize, which is only one mode for implementing the embodiment of the present invention.
  • the data synchronization command sent by the network management device carries the synchronization request of the network management device for multiple pieces of data, and the corresponding identifier of the multiple pieces of data, so that the network element device can know which data to collect. can.
  • the method, device and system according to the embodiments of the present invention can be used for multiple data at the same time Line synchronization, so it takes only 5 hours to synchronize data on a network of 5 million lines. If data synchronization between the network management device and the network element device is performed by using the method in the prior art, it costs 1750 hours. In addition, in the prior art, the traditional S-up P protocol is affected by the network management CPU resources, and the data synchronization operation can be performed on only 1-20 network elements at the same time. The technical solution of the embodiment of the present invention can be greatly improved. The degree of concurrency of data synchronization operations.
  • the technical solution of the embodiment of the present invention can perform data synchronization operations on 1 000-1 0000 network elements at the same time. Therefore, it can be seen from the above that the method, the device and the system according to the embodiments of the present invention can greatly reduce the time taken for data synchronization and improve the efficiency of data synchronization.

Landscapes

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

Description

一种数据同步的方法、 设备及系统 本申请要求于 2008 年 3 月 12 日提交中国专利局、 申请号为 200810007496. X, 发明名称为 "一种数据同步的方法、 设备及系统" 的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 尤其涉及一种数据同步的方法、 设备及系统。 背景技术
随着通信技术的发展, 特别是接入技术的发展, 网络中网元设备的类型 和数量不断的增长, 网管设备的容量也随之不断的增大, 因而网管设备的负 荷也越来越重。
就目前的业务发放来讲,运营商一般是釆用网管设备的 GUI( Graphic User Interface,图形用户界面)或 OSS ( Opera t ions Suppor t Sys tems,运营支撑 系统), 通过网管接口或 MIB ( Management Informa t ion Base,管理信息库) 接口向网元设备下发业务。 那么在业务发放的过程中, 由于网络传输的限制 等原因, 往往会造成网管设备数据库中的数据与其所管理的网元设备的数据 不一致的问题。 为了实现对网元设备的有效监控, 网管设备就需要不断的从 网元设备上获取相关的数据, 并对网管设备上数据进行相应的更新, 以使网 管设备上的数据与网元上的数据保持一致。 网管设备的这种操作过程被称为 "同步操作"。
目前的同步操作一般是釆用以下的方式进行:网管设备通过 8醒?( S imple Network Management Protocol,简单网络管理协议) 中的 get-next指令, 向 网元设备发送对某条数据的同步指令; 网元在收到 get-next指令后, 将网元 上的相应数据通过 ge t-response指令返回给网管设备。 而网管设备在收到网 元返回的数据后, 对网管设备上的数据进行更新, 使网管设备上显示的网元 设备的数据与网元设备本身的数据相同。 因此, 若网管设备需要对多条数据 进行同步, 就需要向网元设备发送多条相应的 get-next指令。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 按照上述的方式进行同步操作的话, 网管设备每要获取一条数据, 就需 要与网元设备进行一次 get-next指令及相关数据的交互操作。 那么当数据量 大时, 就需要网管设备与网元设备之间进行大量的数据交互, 从而使得两个 设备之间交互次数较多, 所占用的交互时间比较长。 若是在网络比较差的情 况下, 设备间的交互则会占用更长的时间。 特别是在全网管理中, 也即网络 中存在多个网元的时候, 利用现有技术中的方法, 网管设备需要与每个网元 设备之间进行上述的交互操作。 但是由于网管设备的 CPU 资源的限制, 利用 现有技术中的方法, 各网元设备之间的并发度很低, 数据同步的速度很慢。 发明内容
本发明实施例提供一种数据同步的方法、 设备和系统, 克服现有技术中 网管设备通过一条数据同步指令只能从网元获取一条同步数据的缺陷。
本发明实施例一种数据同步的方法, 包括: 将至少两条所请求同步的数 据所对应的标识组成标识组合; 发送数据同步指令, 该数据同步指令中包括 对上述至少两条数据的同步请求以及上述标识组合; 接收数据同步指令所请 求同步的数据, 根据所述接收到的数据对需要同步的数据进行更新。
相应的, 本发明实施例提供的另外一种数据同步的方法, 包括: 接收数 据同步指令, 该数据同步指令包括对至少两条数据的同步请求, 以及由数据 同步指令所请求同步的数据所对应的标识组成的标识组合; 釆集上述数据同 步指令所请求同步的数据; 压缩上述釆集的请求同步的数据; 发送上述压缩 的请求同步的数据。
本发明实施例一种数据同步的设备, 包括: 生成单元, 指令发送单元和 数据更新单元; 其中, 生成单元, 用于将至少两条所请求同步的数据所对应 的标识组成标识组合; 指令发送单元, 用于发送数据同步指令, 该数据同步 指令包括对上述至少两条数据的同步请求以及标识组合; 数据更新单元, 用 于接收数据同步指令所请求同步的数据, 根据所述接收到的数据对需要同步 的数据进行更新。
相应的, 本发明实施例提供的另外一种数据同步的设备, 包括: 指令接 收单元、 数据釆集单元、 数据压缩单元和数据发送单元; 其中, 指令接收单 元, 用于接收数据同步指令, 该数据同步指令包括对至少两条数据的同步请 求以及由数据同步指令所请求同步的数据所对应的标识组成的标识组合; 数 据釆集单元, 用于釆集上述数据同步指令所请求同步的数据; 数据压缩单元, 用于压缩上述釆集的请求同步的数据; 数据发送单元, 用于发送上述压缩的 请求同步的数据。
本发明实施例还提供了一种数据同步的系统, 包括: 网管设备和至少一 个网元设备; 其中, 网管设备包括: 生成单元, 指令发送单元和数据更新单 元; 其中, 生成单元, 用于将至少两条所请求同步的数据所对应的标识组成 标识组合; 指令发送单元, 用于发送数据同步指令, 该数据同步指令包括对 上述至少两条数据的同步请求以及标识组合; 数据更新单元, 用于接收数据 同步指令所请求同步的数据, 根据所述接收到的数据对需要同步的数据进行 更新; 网元设备包括: 指令接收单元、 数据釆集单元、 数据压缩单元和数据 发送单元; 其中, 指令接收单元, 用于接收数据同步指令, 该数据同步指令 包括对至少两条数据的同步请求以及由数据同步指令所请求同步的数据所对 应的标识组成的标识组合; 数据釆集单元, 用于釆集上述数据同步指令所请 求同步的数据; 数据压缩单元, 用于压缩上述釆集的请求同步的数据; 数据 发送单元, 用于发送上述压缩的请求同步的数据。
本发明实施例提供的数据同步的方法、 设备和系统, 首先将所请求同步 的数据所对应的标识组成标识组合, 然后连同对多条数据的同步请求, 通过 一个数据同步指令发送给网元设备。 而网元设备在收到该数据同步指令后, 根据该数据同步指令以及标识组合釆集相应的数据, 并将釆集到的数据进行 压缩, 然后将压缩的数据发送给网管设备。 这样就避免了现有技术中, 网管 设备通过一条数据同步指令只能获取一条同步数据的缺陷, 减少了网管设备 和网元设备之间的交互时间, 提高了数据同步的效率。
附图说明
图 1是本发明的实施例一数据同步的方法的流程图;
图 2是本发明的实施例一数据同步的方法的示意图;
图 3是本发明的实施例二数据同步的方法的流程图;
图 4是本发明的实施例二数据同步的方法的示意图;
图 5是本发明的实施例三数据同步的设备的原理图;
图 6是本发明的实施例三数据同步的设备的示意图;
图 7是本发明的实施例四数据同步的设备的原理图;
图 8是本发明的实施例四数据同步的设备的示意图;
图 9是本发明的实施例五数据同步的系统的原理图。
具体实施方式
为解决现有技术中网管设备与网元设备之间的数据同步效率低下的问 题, 本发明的实施例提供了一种数据同步的方法、 设备及系统。 为使本发明 实施例的技术方案的优点更加清楚, 下面结合附图对本发明的实施例作进一 步的详细说明。
如图 1所示, 本发明实施例一的数据同步的方法包括如下步骤: 步骤 100、 将至少两条所请求同步的数据所对应的标识组成标识组合; 步骤 101、发送数据同步指令, 所述数据同步指令中包括对上述至少两条 数据的同步请求以及标识组合;
步骤 102、接收数据同步指令所请求同步的数据,根据所述接收到的数据 对需要同步的数据进行更新。
其中, 所述数据同步指令所请求同步的数据所对应的标识可以包括: 所 述数据同步指令所请求同步的数据所属的管理信息库表的标识, 或者其他形 式。 在网管系统中包括有网络管理站 ( NMS , Network Management Sta t ion ) 和代理(Agent ), 其中网络管理站可以是一台 PC机, 工作站或服务器。 网络 管理站通过管理者 (Manager , 在本发明的实施例中指的是 "网管设备")和 代理(在本发明的实施例中为 "网元设备")进行通信。 网络管理员通过网络 管理站向代理发出管理命令, 例如查询或修改等。 代理在收到相关命令后, 在 MIB (管理信息库) 中查询或修改数据, 然后生成一个应答给 S。 代理也 可生成一个无请求的事件通知主动上报给 S , 例如代理可向 S 上报陷阱 ( Trap )报文。
上述的 MIB表是一个逻辑概念上的数据库, 它保存了被管理设备中所有 被管理对象的值。 每个被管理对象都被指定了一个 0 ID ( objec t ident if ier, 对象标识符 )标识。 M I B表包括:
MIB树: 管理信息库的软件表示形式,是软件系统管理 MIB节点的一种数 据模型。 这种模型能够把各节点之间的关系通过父节点, 子节点和兄弟节点 的形式相互联系在一起, 形成一个树状结构;
配置信息项: 系统支持的可被修改或可被查询的信息描述最小单元, 在 MIB中表现为叶子节点;
配置表项: 几个具有相关性的配置信息项组合在一起形成配置表项, 在 MIB中表现为叶子节点的父节点。
MIB树的每个节点被指定为一个数字 (非负数), 同一层的节点用不同的 数字区分。 这些节点数字由标准组织指定 MIB树中的任何一个节点由其所处 的位置来命名。 由于同一层的节点数字各不相同, 到达某个节点的路由可以 由从树根到此节点所经过的节点的数字串来表示。这个数字串被称为相应 MIB 对象的对象标识符。
根据上面所描述的, 具体到本发明的实施例中利用 MIB表技术, 在向网 元设备发送数据同步指令前, 网管设备可以与网元设备事先约定一个 MIB表, 网管设备利用这个 MIB将对至少两条数据的同步请求发送给网元设备。 这样, 对于步骤 101 中发送数据同步指令的过程来说, 如图 1所示, 可 以包括如下过程:
101a , 在预先约定的管理信息库表的节点, 设置所述标识组合。
其中, 上述的管理信息库表, 是一个经网管设备与网元设备预先协商好 的私有 MIB表。 当创建好所述的 MIB表后, 将所述标识组合设置到所述 MIB 表中的某个节点 (如 Col lectTableName 节点)。 例如, 若网管设备想要同步 网元设备中表 1 , 表 2 , 以及表 3的数据, 那么可利用上述表的标识, (如表 的名称或标识等, 在此实施例中为各表的名称)组成一个字符串 "1 , 2 , 3" , 并将这个字符串设置到节点 Co 11 ec t Tab 1 eName。
当网管设备需要管理的网元设备增加时, 网管设备通过 S醒 P协议中的创 建(Crea te )命令, 将网管设备请求同步的数据的 MIB表的相关信息保存到 网元设备上。 除了网管设备关心的 MIB表信息外, 网元设备上还可设置或保 存有其他的 MIB表信息。 这里的请求同步的数据所属 MIB表的标识可以用所 述 MIB表的名称表示, 也可用其他方式表示。 例如网元设备上的 MIB表可以 分别以表 1 , 表 2 , ... ...表 n的方式命名。 当然, MIB表的命名规则并不局限 于此, 只要网元设备能够解析这个规则即可。 在具有所述 0ID 的节点下, 网 元设备可釆集到符合网管设备要求的同步数据。
101b, 利用 S醒 P协议发送所述数据同步指令。
上述网管设备需要同步的信息, 通过 S醒 P协议中的设置命令(Set ) 下 发到网元设备中。 这样, 网元设备在收到 Set命令后, 会根据这个 Set命令 开始釆集数据, 并解析字符串 "1 , 2 , 3" , 获知网管设备需要对哪些表的数 据进行同步。 通过所述的 MIB 的名称, 查找到与所述的名称相对应的请求同 步的数据所在节点的对象标识符, 网元设备即可在相应的节点下釆集数据。
需要注意的是, 所述数据同步指令还可利用其他的网管设备与网元设备 之间的通信协议发送, 并不局限于在此所述的 S醒 P协议。
由于在所述的数据同步指令中包括对至少两条数据的同步请求以及所述 标识组合, 并在收到请求同步的数据后, 根据所述接收到的数据对需要同步 的数据进行更新。 因此, 网管设备只需发送一条数据同步指令, 就可向网元 设备发送对多条数据进行同步的要求。 利用本发明的实施例, 避免了现有技 术中, 每需获取一条同步数据, 就向网元设备发送一条指令的缺陷, 减少了 网管设备和网元设备之间的交互时间。
另外, 本发明的实施例二还提供了一种数据同步的方法。
如图 3所示, 本发明实施例二的数据同步的方法, 包括如下步骤: 步骤 301、接收数据同步指令, 该数据同步指令包括对至少两条数据的同 步请求, 以及由该数据同步指令所请求同步的数据所对应的标识组成的标识 组合;
步骤 302、 釆集上述数据同步指令所请求同步的数据;
步骤 303、 压缩上述釆集的请求同步的数据;
步骤 304、 发送上述压缩的请求同步的数据。
网元设备在收到所述数据同步指令后, 网元设备将解析所述数据同步指 令, 获得所述标识组合, 并根据所述标识组合釆集所述数据同步指令所请求 同步的数据。 在釆集到各同步数据后, 对所述数据进行压缩, 然后将所述压 缩的数据发送给网管设备。 因此, 所述网元设备可将多条数据进行压缩, 然 后把经压缩的数据发送给网管设备, 这就避免了现有技术中通过一个回复指 令只能发送一条同步数据的缺陷, 减少了网元设备与网管设备之间的数据交 互时间。
如上所述, 在所述的数据同步指令中包括的标识组合, 由所述数据同步 指令所请求同步的数据所对应的标识组成。 并且, 与本发明实施例一中所述 的相同, 在此实施例中, 所述的标识包括所述数据同步指令所请求同步的数 据所属的管理信息库表的标识, 或可用唯一标识数据同步指令所请求同步的 数据的隶属关系的其他形式表示。
如图 4所示, 本发明实施例二的数据同步的方法, 在步骤 301之前, 还 包括:
301a , 设置或存储索引表, 该索引表中包括请求同步的数据所属的管理 信息库表的标识与请求同步的数据所在节点的对象标识符的对应关系。
这样, 就可通过查找所述索引表, 利用数据同步指令所请求同步的数据 所属的管理信息库表的标识, 快速地查找到其对应的对象标识符, 并在相应 的节点下进行数据釆集。
在设置或存储了上述索引表后, 步骤 302 釆集数据同步指令所请求同步 的数据, 具体包括:
步骤 302a、 解析上述数据同步指令中的标识组合;
步骤 302b、 根据解析出的数据同步指令所请求同步的数据所属的管理信 息库表的标识, 查找上述索引表, 得到与管理信息库表的标识相对应的请求 同步的数据所在节点的对象标识符;
步骤 302c、 根据请求同步的数据所在节点的对象标识符, 釆集请求同步 的数据。
根据上述的过程,网元设备就可将得到的同步数据进行压缩,并通过 t rap 命令通知网管设备数据准备完毕。 那么, 在接收到网管设备的数据同步请求 指令后, 网元设备便会将所述压缩的数据传送给网管设备。 而网管设备也可 以主动查询数据是否准备完毕, 例如所述网管设备可以向网元设备发送数据 传输请求。
对于网元设备本身而言, 它获取网管设备需要的同步数据的方式是釆用 S醒 P协议中 ge t-next指令, 即, 网元设备会向其管理的对象发送 ge t-next 指令, 获取所述对象的一条数据, 然后将所述数据写入压缩数据包中。 对其 他管理的对象亦是如此。 并且, 需要说明的是, 网元设备的上述操作是对网 元内部数据处理的过程。 因此, 在全网管理中, 网管设备可对多个网元设备 进行并发的数据同步操作。
同时, 本发明的实施例三还提供了一种数据同步的设备。 如图 5所示, 本发明实施例三的数据同步的设备, 包括: 生成单元 51 , 指令发送单元 52和数据更新单元 53。 其中,
生成单元 51 , 用于将至少两条所请求同步的数据所对应的标识组成标识 组合;
指令发送单元 52 , 用于发送数据同步指令, 该数据同步指令包括对上述 至少两条数据的同步请求以及标识组合;
数据更新单元 53 , 用于接收上述数据同步指令所请求同步的数据, 根据 所述接收到的数据对需要同步的数据进行更新。
其中, 如图 6所示, 所述指令发送单元 52 , 具体包括:
设置子单元 521 , 用于在预先约定的管理信息库表的节点,设置上述标识 组合; 发送子单元 522 , 用于利用简单网络管理协议发送上述数据同步指令。
这样, 利用本发明实施例所述的请求数据同步的设备, 可以通过管理信 息库表的形式, 将所述的对至少两条数据的同步指令发送给网元设备。
同样需要注意的是, 在此实施例中, 所述数据同步指令还可利用其他的 通信协议发送, 并不局限于在此所述的 S醒 P协议。
在此实施例中, 同样利用 MIB表这项技术。 通过在所述的 MIB表, 将诸 多节点中的某一个节点下,设置所述的标识组合, 并且这个表是一个私有 MIB 表。 也就是说, 通过这个 MIB表, 网元设备可以知道去获取网元设备上哪些 MIB表中的哪些节点下的数据。这些标识组合的信息,通过 S醒 P协议中的 Set 指令发送给网元设备。
上面列举的只是实现同时向网元发送对多条数据的同步请求的一种实现 方式。 在具体应用中, 并不局限于此。
本发明实施例三中, 指令发送单元只需发送一条数据同步指令, 就可发 送对多条数据进行同步的要求, 并可通过数据更新单元对需要同步的数据进 行更新。 利用本发明的实施例, 避免了现有技术中, 每需获取一条同步数据, 就发送一条数据同步指令的缺陷, 减少了网管设备和网元设备之间的交互时 间。
与上述实施例三的数据同步的设备相对应, 本发明实施例四还提供了一 种数据同步的设备。
如图 7所示, 本发明实施例四的数据同步的设备包括: 指令接收单元 71 , 数据釆集单元 72 , 数据压缩单元 73以及数据发送单元 74。 其中,
指令接收单元 71 , 用于接收数据同步指令, 该数据同步指令包括对至少 两条数据的同步请求以及由数据同步指令所请求同步的数据所对应的标识组 成的标识组合;
数据釆集单元 72 , 用于釆集上述数据同步指令所请求同步的数据; 数据压缩单元 73 , 用于压缩上述釆集的请求同步的数据;
数据发送单元 74 , 用于发送上述压缩的请求同步的数据。
为了进一步的提高与网管设备之间的交互效率, 如图 7 所示, 本发明实 施例所述的数据同步的设备还可包括: 存储单元 75 , 用于设置或存储索引表, 该索引表中包括管理信息库表的标识与请求同步的数据所在节点的对象标识 符的对应关系。
这样, 就可通过查找所述索引表, 利用数据同步指令所请求同步的数据 所属的管理信息库表的标识, 快速地查找到其对应的对象标识符。
在此基础上, 如图 8所示, 所述的数据釆集单元 72包括: 解析模块 721、 查找模块 722和釆集模块 723。 其中,
解析模块 721 , 用于解析上述数据同步指令中的标识组合;
查找模块 722 ,用于根据解析出的数据同步指令所请求同步的数据所属的 管理信息库表的标识, 查找上述索引表, 得到与管理信息库表的标识相对应 的请求同步的数据所在节, *的对象标识符;
釆集模块 723 , 用于根据上述请求同步的数据所在节点的对象标识符, 釆 集请求同步的数据。
网元设备在收到所述数据同步指令后, 网元设备将解析所述数据同步指 令, 根据所述数据同步指令釆集同步数据。 并在釆集到各同步数据后, 对所 述数据进行压缩, 得到压缩数据包, 然后将所述压缩数据包发送给网管设备。 因此, 网元设备可通过所述的压缩数据包, 将多条数据同时发送给网管设备, 避免了现有技术中, 通过一个回复指令只能发送一条同步数据的缺陷, 减少 了网元设备与网管设备之间的数据交互时间。
此外, 本发明实施例五还提供了一种数据同步的系统。
如图 9所示, 本发明实施例五的数据同步的系统包括: 网管设备 91 , 和 至少一个网元设备 92; 其中,
该网管设备 91包括:
生成单元 911 ,用于将至少两条所请求同步的数据所对应的标识组成标识 组合;
指令发送单元 912 , 用于发送数据同步指令, 该数据同步指令包括对上述 至少两条数据的同步请求以及标识组合;
数据更新单元 913 , 用于接收上述数据同步指令所请求同步的数据, 对接 收的数据进行更新。
该网元设备 92包括:
指令接收单元 921 , 用于接收数据同步指令, 该数据同步指令包括对至少 两条数据的同步请求以及由该数据同步指令所请求同步的数据所对应的标识 组成的标识组合;
数据釆集单元 922 , 用于釆集上述数据同步指令所请求同步的数据; 数据压缩单元 923 , 用于压缩上述釆集的请求同步的数据;
数据发送单元 924 , 用于发送上述压缩的请求同步的数据。
此外, 本发明实施例所述的数据同步的系统中, 上述网管设备中的指令 发送单元, 具体包括:
设置子单元, 用于在预先约定的管理信息库表的节点, 设置上述标识组 合; 发送子单元, 用于利用简单网络管理协议发送上述数据同步指令。
同样, 在此实施例中, 所述数据同步指令还可利用其他的网管设备与网 元设备之间的通信协议发送, 并不局限于在此所述的 S醒 Ρ协议。
所述网元设备还包括: 存储单元 925 , 用于设置或存储索引表, 在该索引 表中存储有管理信息库表的标识与请求同步的数据所在节点的对象标识符之 间的对应关系。
而所述网元设备中所述的数据釆集单元包括:
解析模块, 用于解析上述数据同步指令中的标识组合;
查找模块, 用于根据解析出的数据同步指令所请求同步的数据所属的管 理信息库表的标识, 查找上述索引表, 得到与管理信息库表的标识相对应的 请求同步的数据所在节点的对象标识符;
釆集模块, 用于在具有上述对象标识符的节点下, 釆集请求同步的数据。 下面描述一下本发明的实施例数据同步的系统的工作过程。
1101、 网管设备根据需要, 将需要同步的数据分别对应的标识组成一个 标识组合。 这个步骤包括以下步骤:
1101a , 与网元设备约定一个管理信息库表;
1101b, 在所述管理信息库表的一个节点, 设置上述标识组合。
步骤 1101a 中的管理信息库表, 是一个经网管设备与网元设备协商的私 有 MIB表。 当创建好所述的 MIB表后, 将所述标识组合设置到所述 MIB表中 的某个节点(如 Col lectTableName )。 例如, 若网管设备想要同步网元设备中 表 1 , 表 2 , 以及表 3的数据, 那么可利用上述表的标识, (如表的名称或标 识等,在此实施例中为各表的名称)组成一个标识组合,如字符串 "1 , 2 , 3" , 并将这个字符串设置到节点 Co 11 ec t Tab 1 eName。
1102、 将网管设备需要同步的数据所属的 MIB表标识以及需要请求同步 的数据所在节点的对象标识符之间的对应关系组成一个索引表, 并保存在网 元设备上。当有网元设备增加时,由网管设备通过 S醒 P协议中的创建( Crea te ) 命令, 将增加的网元设备中的需要同步的 MIB表信息以及需要请求同步的数 据所在节点的对象标识符保存到网元设备上。 在这个索引表中, 除了网管设 备关心的 MIB表信息外, 网元设备上还可设置或保存有其他的 MIB表信息。
1103、 网管设备利用 S醒 P协议, 向网元设备发送数据同步指令(如 Set 指令), 指示网元设备启动数据同步操作, 且在所述指令中包含有所述标识组 合等信息。
1104、 网元设备收到 Set 指令后, 解析所述指令, 得到所述标识组合。 通过所述标识组合, 查找网元设备上存储的索引表, 找到与需要同步的数据 所属的 MIB标识所对应的对象标识符, 网元设备会在具有相应的对象标识符 的节点下, 釆集相应的数据。
网元设备在釆集数据的时候, 也是利用 get-next命令实现, 并在获得每 条数据后, 将其进行压缩, 得到压缩数据包, 并将之后收到的釆集数据不断 的写入到压缩数据包中。
1105、 网元设备准备数据完成后, 可通过 Trap指令通知网管设备其已经 完成需要同步的数据的釆集工作。 网管设备也可主动查询网元设备的工作情 况。
1106、 待网管设备需要同步数据后, 网元设备通过文件传输协议等协议 将釆集到的数据传送给网管设备。
1107、 网管设备在收到所述数据后, 将其进行解压缩操作, 并根据收到 的相应的数据对需要同步的数据进行更新。
需要注意的是, 网管设备通过与网元设备约定一个私有 MIB表, 来传递 网管设备需要对哪些数据进行同步的方式, 只是实现本发明的实施例的一种 方式。 在具体应用中, 只要能够通过网管设备发送的数据同步指令中, 携带 网管设备对多条数据的同步请求, 以及这多条数据的对应标识, 以使网元设 备能够知道去釆集哪些数据即可。
利用本发明实施例所述的方法、 设备和系统, 由于可同时对多条数据进 行同步, 因此在对一个 500万线的网络进行数据同步时, 只需花费 5小时的 时间; 而若利用现有技术中的方法进行网管设备与网元设备之间的数据同步, 则需要花费 1750小时。 并且, 在现有技术中, 传统的 S醒 P协议受网管 CPU 资源的影响, 最多只能同时对 1-20个网元进行数据同步操作; 而利用本发明 实施例的技术方案, 可以大大提高数据同步操作的并发度。 例如, 对于典型 的应用场景, 利用本发明实施例的技术方案, 能同时对 1 000-1 0000个网元进 行数据同步操作。 因此, 由上可以看出, 利用本发明实施例所述的方法, 设 备和系统, 能够大大减小数据同步所花费的时间, 提高数据同步的效率。
当然, 本发明的实施例还可有^ ί艮多种, 在不背离本发明的实施例精神及 改变和变形, 但这些相应的改变和变形都应属于本发明的实施例所附的权利 要求的保护范围。

Claims

权利 要 求 书
1、 一种数据同步的方法, 其特征在于, 所述方法包括如下步骤: 将至少两条所请求同步的数据所对应的标识组成标识组合;
发送数据同步指令, 所述数据同步指令中包括对所述至少两条数据的同步 请求以及所述标识组合;
接收所述数据同步指令所请求同步的数据, 根据所述接收到的数据对需要 同步的数据进行更新。
2、 根据权利要求 1所述的数据同步的方法, 其特征在于, 所述所请求同步 的数据所对应的标识包括:
所述所请求同步的数据所属的管理信息库表的标识。
3、 根据权利要求 1所述的数据同步的方法, 其特征在于, 所述发送数据同 步指令, 具体包括:
在预先约定的管理信息库表的节点, 设置所述标识组合;
利用简单网络管理协议发送所述数据同步指令。
4、 一种数据同步的方法, 其特征在于, 所述方法包括如下步骤: 接收数据同步指令, 所述数据同步指令包括对至少两条数据的同步请求, 以及由所述数据同步指令所请求同步的数据所对应的标识组成的标识组合; 釆集所述数据同步指令所请求同步的数据;
压缩所述釆集的请求同步的数据;
发送所述压缩的请求同步的数据。
5、 根据权利要求 4所述的数据同步的方法, 其特征在于, 所述数据同步指 令所请求同步的数据所对应的标识包括:
所述数据同步指令所请求同步的数据所属的管理信息库表的标识。
6、 根据权利要求 5所述的数据同步的方法, 其特征在于, 在所述接收数据 同步指令之前, 所述方法还包括:
设置或存储索引表, 所述索引表中包括所述请求同步的数据所属的管理信 息库表的标识与所述请求同步的数据所在节点的对象标识符的对应关系。
7、 根据权利要求 6所述的数据同步的方法, 其特征在于, 所述釆集所述数 据同步指令所请求同步的数据, 具体包括:
解析所述数据同步指令中的标识组合;
根据解析出的数据同步指令所请求同步的数据所属的管理信息库表的标 识, 查找所述索引表, 得到与所述管理信息库表的标识相对应的请求同步的数 据所在节点的对象标识符;
根据所述请求同步的数据所在节点的对象标识符, 釆集所述请求同步的数 据。
8、 一种数据同步的设备, 其特征在于, 所述设备包括:
生成单元(51 ), 用于将至少两条所请求同步的数据所对应的标识组成标识 组合;
指令发送单元(52 ), 用于发送数据同步指令, 所述数据同步指令包括对所 述至少两条数据的同步请求以及所述标识组合;
数据更新单元(53 ), 用于接收所述数据同步指令所请求同步的数据, 根据 所述接收到的数据对需要同步的数据进行更新。
9、 根据权利要求 8所述的数据同步的设备, 其特征在于, 所述指令发送单 元( 52 ) 包括:
设置子单元(521 ), 用于在预先约定的管理信息库表的节点, 设置所述标 识组合;
发送子单元( 522 ), 用于利用简单网络管理协议发送所述数据同步指令。
10、 一种数据同步的设备, 其特征在于, 所述设备包括:
指令接收单元(71 ), 用于接收数据同步指令, 所述数据同步指令包括对至 少两条数据的同步请求以及由所述数据同步指令所请求同步的数据所对应的标 识组成的标识组合;
数据釆集单元( 72 ), 用于釆集所述数据同步指令所请求同步的数据; 数据压缩单元(73 ), 用于压缩所述釆集的请求同步的数据;
数据发送单元(74 ), 用于发送所述压缩的请求同步的数据。
11、 根据权利要求 1 0所述的数据同步的设备, 其特征在于, 所述数据同步 指令所请求同步的数据所对应的标识包括:
所述数据同步指令所请求同步的数据所属的管理信息库表的标识。
12、 根据权利要求 1 1所述的数据同步的设备, 其特征在于, 所述的数据同 步设备还包括:
存储单元(75 ), 用于设置或存储索引表, 所述索引表中包括所述请求同步 的数据所属的管理信息库表的标识与所述请求同步的数据所在节点的对象标识 符的对应关系。
1 3、 根据权利要求 12所述的数据同步的设备, 其特征在于, 所述的数据釆 集单元( n ) 包括:
解析模块( 721 ), 用于解析所述数据同步指令中的标识组合;
查找模块 ( 722 ), 用于根据解析出的数据同步指令所请求同步的数据所属 的管理信息库表的标识, 查找所述索引表, 得到与所述管理信息库表的标识相 对应的请求同步的数据所在节点的对象标识符;
釆集模块( 723 ), 用于根据所述请求同步的数据所在节点的对象标识符, 釆集所述请求同步的数据。
14、 一种数据同步的系统, 其特征在于, 所述系统包括: 网管设备(91 ), 和至少一个网元设备(92 ); 其中,
所述网管设备包括:
生成单元(911 ), 用于将至少两条所请求同步的数据所对应的标识组成标 识组合;
指令发送单元(912 ), 用于发送数据同步指令, 所述数据同步指令包括对 所述至少两条数据的同步请求以及所述标识组合;
数据更新单元(91 3 ), 用于接收所述数据同步指令所请求同步的数据, 根 据所述接收到的数据对需要同步的数据进行更新;
所述网元设备 ( 92 ) 包括:
指令接收单元(921 ), 用于接收数据同步指令, 所述数据同步指令包括对 至少两条数据的同步请求以及由所述数据同步指令所请求同步的数据所对应的 标识组成的标识组合;
数据釆集单元( 922 ), 用于釆集所述数据同步指令所请求同步的数据; 数据压缩单元( 923 ), 用于压缩所述釆集的请求同步的数据;
数据发送单元( 924 ), 用于发送所述压缩的请求同步的数据。
15、 根据权利要求 14 所述的数据同步的系统, 其特征在于, 所述网元设 备还包括:
存储单元( 925 ), 用于设置或存储索引表, 所述索引表中包括所述请求同 步的数据所属的管理信息库表的标识与所述请求同步的数据所在节点的对象标 识符的对应关系。
PCT/CN2009/070657 2008-03-12 2009-03-05 一种数据同步的方法、设备及系统 WO2009111965A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA200810007496XA CN101242302A (zh) 2008-03-12 2008-03-12 一种数据同步的方法、设备及系统
CN200810007496.X 2008-03-12

Publications (1)

Publication Number Publication Date
WO2009111965A1 true WO2009111965A1 (zh) 2009-09-17

Family

ID=39933527

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070657 WO2009111965A1 (zh) 2008-03-12 2009-03-05 一种数据同步的方法、设备及系统

Country Status (2)

Country Link
CN (1) CN101242302A (zh)
WO (1) WO2009111965A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242302A (zh) * 2008-03-12 2008-08-13 华为技术有限公司 一种数据同步的方法、设备及系统
CN101729530B (zh) * 2009-10-30 2013-03-20 中兴通讯股份有限公司 一种数据同步方法及系统
CN102299814B (zh) * 2010-06-24 2014-09-10 中兴通讯股份有限公司 一种snmp代理上管理信息库的升级方法和系统
CN101895568B (zh) * 2010-06-25 2014-03-12 中兴通讯股份有限公司 一种同步数据清理的方法和系统
CN103188790B (zh) * 2011-12-29 2016-03-02 中兴通讯股份有限公司 信息同步方法及接入控制器
CN103327037B (zh) * 2012-03-20 2017-09-29 中兴通讯股份有限公司 数据同步方法及装置
CN102685877B (zh) * 2012-05-16 2015-08-19 北京星网锐捷网络技术有限公司 用户数据同步方法、无线控制器及网管设备
CN103686668B (zh) 2012-09-20 2017-12-05 中兴通讯股份有限公司 数据更新方法、系统和设备
CN103731251A (zh) * 2012-10-12 2014-04-16 上海斐讯数据通信技术有限公司 机架式设备卡同步系统及其同步方法
CN103795754B (zh) * 2012-10-31 2017-08-25 中国电信股份有限公司 多系统间的数据同步方法和系统
WO2017182615A1 (de) * 2016-04-22 2017-10-26 Hirschmann Automation And Control Gmbh Mib-orientiertes protokoll für hochwirksame http-verwaltungsprozeduren
CN107196827A (zh) * 2017-07-28 2017-09-22 郑州云海信息技术有限公司 一种监控设备节点的方法及装置
CN108574722B (zh) * 2017-10-12 2021-12-10 视联动力信息技术股份有限公司 资源同步方法、装置及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003013679A1 (en) * 2001-08-03 2003-02-20 Nokia Corporation A method, system and terminal for synchronising a plurality of terminals
CN1617139A (zh) * 2003-11-15 2005-05-18 鸿富锦精密工业(深圳)有限公司 电子送件文件同步系统及方法
CN1652116A (zh) * 2005-03-29 2005-08-10 威盛电子股份有限公司 数据库同步系统与方法
CN101242302A (zh) * 2008-03-12 2008-08-13 华为技术有限公司 一种数据同步的方法、设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003013679A1 (en) * 2001-08-03 2003-02-20 Nokia Corporation A method, system and terminal for synchronising a plurality of terminals
CN1617139A (zh) * 2003-11-15 2005-05-18 鸿富锦精密工业(深圳)有限公司 电子送件文件同步系统及方法
CN1652116A (zh) * 2005-03-29 2005-08-10 威盛电子股份有限公司 数据库同步系统与方法
CN101242302A (zh) * 2008-03-12 2008-08-13 华为技术有限公司 一种数据同步的方法、设备及系统

Also Published As

Publication number Publication date
CN101242302A (zh) 2008-08-13

Similar Documents

Publication Publication Date Title
WO2009111965A1 (zh) 一种数据同步的方法、设备及系统
WO2022262465A1 (zh) 基于opc ua的时间敏感网络集中用户配置方法及系统
CN107710196B (zh) 一种管理资源对象的方法和系统
EP1542409A1 (en) Protocol for multi-hop ad-hoc networks
JP4943512B2 (ja) 通知メッセージ処理方法および装置
EP2262185A1 (en) Method and system for forwarding data among private networks
WO2020135574A1 (zh) 报文处理方法、装置、控制面设备和计算机存储介质
WO2011113372A1 (zh) 多群组操作同步的方法、系统和群组服务器
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
WO2013117112A1 (zh) 传感器网络解析互通平台、传感器网络互通方法及系统
JP2009151560A (ja) リソースの管理方法、情報処理システム、情報処理装置、及びプログラム
WO2021087892A1 (zh) 资源的订阅方法、设备及存储介质
WO2015100628A1 (zh) 网元数据访问方法、装置以及网络管理系统
CN102833287B (zh) 分布式文件系统及分布式文件系统中访问数据资源的方法
KR100772879B1 (ko) 네트워크에서 디스커버리를 수행하는 장치, 시스템 및 그방법
CN113994649A (zh) BLE Mesh设备的访问方法、装置、设备及存储介质
CN109413118B (zh) 一种实现会话同步的方法、装置及存储介质、程序产品
CA2987316A1 (en) Local object instance discovery for metric collection on network elements
CN102891763B (zh) 一种获取cim资源的方法和装置
CN114461427A (zh) 一种酒店pms共享电脑外设的方法
JP2003099341A (ja) ネットワークデバイス管理装置、管理システム及び管理方法、並びにネットワークデバイス
KR20050112912A (ko) 소켓 어플리케이션 프로그램을 이용한 데이터 중계 시스템및 데이터 중계 방법
WO2017215381A1 (zh) 虚拟扩展端口的指示方法和装置、存储介质
US7860099B2 (en) Method for managing and setting many network devices
CN110474781B (zh) 一种组播数据转发的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09720481

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09720481

Country of ref document: EP

Kind code of ref document: A1