WO2016188499A1 - 网络管理方法、装置、网络设备及数据同步系统 - Google Patents

网络管理方法、装置、网络设备及数据同步系统 Download PDF

Info

Publication number
WO2016188499A1
WO2016188499A1 PCT/CN2016/084572 CN2016084572W WO2016188499A1 WO 2016188499 A1 WO2016188499 A1 WO 2016188499A1 CN 2016084572 W CN2016084572 W CN 2016084572W WO 2016188499 A1 WO2016188499 A1 WO 2016188499A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
network
network device
packet
network management
Prior art date
Application number
PCT/CN2016/084572
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 WO2016188499A1 publication Critical patent/WO2016188499A1/zh

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/06Management of faults, events, alarms or notifications
    • 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/34Signalling channels for network management communication

Definitions

  • This document relates to, but is not limited to, the field of communications, and more particularly to network management methods, devices, network devices, and data synchronization systems.
  • the data is generally synchronized by the network management device or the network device data saved by the managed device.
  • the network management system needs to obtain the network device data saved on the managed device, and the managed device first loads the device data into the data file, for example, a file in ZDB format, and then The file is encapsulated into a data packet and sent to the network management device.
  • the network management device After receiving the data of the network device, the network management device first parses the data portion of the data packet to obtain a file in a ZDB format, and then parses the ZDB format file.
  • the data is also transmitted in the form of a data file, and then synchronized according to the one agreed in advance.
  • This article provides a management method that includes:
  • the network device data between the network management device and the managed device is synchronized.
  • the method before receiving the packet sent by the managed device, the method further includes: sending, by the preset data acquisition rule, a data acquisition request for acquiring the network device data to the managed device.
  • the data acquisition rule includes one or more of the following rules:
  • the network management device sends a data acquisition request when newly establishing a link or re-establishing a link with the managed device;
  • a data acquisition request is sent when the preset data detection period is reached.
  • Synchronizing network device data includes:
  • determining, according to the determining result, that the object to be synchronized includes:
  • the preset key data does not exist in the network device data whose judgment result is inconsistent, it is determined that the managed device is the object to be synchronized.
  • the synchronizing the determined objects to be synchronized includes:
  • the locally saved network device data is updated to the parsed network device data.
  • the synchronizing the determined objects to be synchronized includes:
  • This article also provides a network management method, including:
  • the foregoing method further includes:
  • This article also provides a network management device, including:
  • a packet receiving module configured to receive a packet sent by the managed device, where the data part of the packet is network device data of the managed device;
  • a packet parsing module configured to parse the packet to obtain the network device data
  • a determining module configured to determine whether the network device data obtained by the parsing and the network device data of the managed device saved by the network management device are consistent
  • the synchronization module is configured to synchronize network device data between the network management device and the managed device when the determination result is inconsistent.
  • the foregoing device further includes:
  • the triggering module is configured to send, to the managed device, a data acquisition request for acquiring the network device data according to a preset data acquisition rule.
  • the first update unit is configured to update the locally saved network device data to the parsed network device data when the synchronization object determining submodule determines that the network management device is an object to be synchronized.
  • FIG. 6 is another schematic structural diagram of a network management device according to Embodiment 4 of the present invention.
  • FIG. 11 is another schematic structural diagram of a network device according to Embodiment 5 of the present invention.
  • S104 Synchronize the network device data between the network management device and the managed device when the determination result is inconsistent.
  • the data acquisition rule is preset, and the data acquisition request for acquiring the network device data is sent to the managed device according to the preset data acquisition rule, and the packet sent by the managed device is also The managed device's feedback on the data acquisition request.
  • the data acquisition rule can be set according to requirements.
  • the network management device can be configured to send a data acquisition request when the link is newly established or re-established with the managed device; then whenever the network management device establishes a link with the managed device or the link is broken When the link is restored and the link is restored, the network management device sends a data acquisition request for acquiring the network device data to the managed device, and performs the next steps.
  • the data acquisition request may be sent when the network device data synchronization between the network management device and the managed device fails; that is, the network device data between the network management device and the managed device has been executed before. Synchronization, but the result is that the synchronization fails. At this time, resynchronization is required.
  • the network management device first sends a data acquisition request for acquiring network device data to the managed device, and starts the process of resynchronization.
  • the data acquisition request may be sent when the preset data detection period is reached; for example, it may be set to be detected every 1 hour, and once detected at 9 o'clock, the network management device automatically starts at 10 o'clock.
  • a data acquisition request is sent to complete the detection, and the corresponding steps are performed according to the detection result.
  • One or more of the multiple rules can be selected as the data acquisition rule.
  • rules other than the above examples may be adopted as data acquisition rules as needed.
  • step S102 is performed. Because the network device data of the managed device is encapsulated in the packet, to obtain the network device data, the received packet is parsed and read. The content of its data portion is obtained from the network device data on the managed device included therein.
  • the locally saved network device data needs to be updated to the network device data obtained by parsing the message; when the managed device is determined to be the object to be synchronized, the locally saved device needs to be obtained.
  • the network device data adds the locally saved network device data to the data portion of the packet and encapsulates the packet, and sends the packet to the managed device.
  • the transmission process can also be accomplished using the SNMP protocol or other communication protocol that satisfies the conditions and achieves the same effect.
  • inconsistent data information has been recorded, optionally, data is being processed. When synchronizing, you can synchronize only those inconsistent network device data, and do not synchronize those consistent network device data.
  • the network management device when it is determined that the network management device is an object to be synchronized, it is required to update the inconsistent network device data included in the inconsistency information to the corresponding network device data in the network device data obtained by parsing the message; when determining the managed device For the object to be synchronized, similarly, only those inconsistent network device data contained in the inconsistency information are sent. After the synchronization is completed and the synchronization is successful, it is determined whether there is an alarm of data inconsistency. If yes, a reply alarm is generated to eliminate the data inconsistency alarm information.
  • the request is required to respond to the locally transmitted network device data.
  • the encapsulated packet is sent to the network management device through the lower layer processing in the protocol stack.
  • the packet sent by the network management device is also received, and the data part of the packet is the network device data saved on the network management device, and the packet is parsed.
  • the network device data is described, and the locally saved network device data is updated to the parsed network device data.
  • This embodiment provides a network management method. Referring to FIG. 3, the method includes S301 to S308:
  • the network management device sends a data acquisition request for acquiring network device data to the managed device.
  • S302 The managed device acquires the first network device data.
  • the managed device adds the first network device data to the data portion of the packet, and encapsulates the packet.
  • S304 The managed device sends the packet to the network management device.
  • S305 The network management device receives the packet.
  • the network management device parses the packet to obtain the first network device data.
  • the network management device monitors the status information of the managed device in real time, including link status, data change status, and the like.
  • the network management device pre-sets the data acquisition rule.
  • the network management device sends a data acquisition request for acquiring the network device data to the managed device according to the preset data acquisition rule.
  • the data acquisition rule can be specifically set according to requirements.
  • the network management device can be configured to send a data acquisition request when the link is newly established or re-established with the managed device; or the network device data synchronization between the network management device and the managed device can be set.
  • a data acquisition request is sent when it fails; it can also be set to send a data acquisition request when the preset data detection period is reached.
  • One or more of the multiple rules can be selected as the data acquisition rule.
  • rules other than the above examples may be adopted as data acquisition rules as needed.
  • the network device data waiting to be sent needs to be added to the packet, and the network device data may be transmitted by using the SNMP protocol, that is, the network device data is used. Add to the SNMP data packet and add a header for encapsulation.
  • SNMP protocol that is, the network device data is used.
  • Add to the SNMP data packet and add a header for encapsulation can also be used to complete the transmission of data of the network device to be transmitted.
  • the first network device data and the second network device data are compared one by one, and the second network device data is saved.
  • the data inconsistency alarm information includes inconsistent data recorded in the comparison result and can be displayed to the network administrator.
  • the network administrator can manually control whether to synchronize data, or automatically wait for a certain period of time to automatically perform data synchronization. It can also automatically synchronize without waiting for the network administrator's control, and flexibly set according to actual needs.
  • the object to be synchronized is first determined.
  • the inconsistent network device data can be known. If the inconsistent network device data includes preset key parameters, the network management device is selected as the object to be synchronized; if the inconsistent network device data does not include the preset key The parameter selects the managed device as the object to be synchronized.
  • the preset key parameters can be set according to specific needs. For example, the time zone and daylight saving time can be set as key parameters in advance. If the inconsistency parameter indicates that the time zone or daylight saving time includes the time zone or daylight saving time, the network management device will be used as the object to be synchronized. If the inconsistency parameter does not contain a time zone or daylight saving time, it will be managed as the object to be synchronized.
  • the second network device data needs to be updated to the first network device data.
  • the network management device acquires the second network device data.
  • the network management device adds the second network device data to the data portion of the packet, and encapsulates the packet.
  • S404 The managed device receives the packet.
  • S405 The managed device first network device data is updated to the second network device data.
  • the completion of the synchronization process may also be performed by using an SNMP protocol or other communication protocol that satisfies the condition and can achieve the same effect.
  • inconsistent data information has been recorded, optionally, when data synchronization is performed, only those inconsistent network device data can be synchronized, and those that are consistent network device data are not synchronized.
  • the network management device is an object to be synchronized, it is required to update the inconsistent network device data included in the inconsistency information to the corresponding network device data in the second network device data; when determining that the managed device is to be The synchronization object, similarly, only sends the inconsistent network device data contained in the inconsistency information, and after receiving the inconsistent network device data, the managed device updates the locally saved corresponding network device data.
  • After the synchronization is completed and the synchronization is successful it is determined whether there is an alarm of data inconsistency. If yes, a reply alarm is generated to eliminate the inconsistent alarm information.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the network management device 5 includes a packet receiving module 51, a packet parsing module 52, a judging module 53, and a synchronizing module 54.
  • the message receiving module 51 is configured to receive the packet sent by the managed device, and the data part of the packet is the network device data of the managed device.
  • the packet parsing module 52 is configured to parse the packet to obtain network device data. After receiving the packet sent by the managed device, the network device data is encapsulated in the packet, so the network device data is obtained. First, the received message is parsed, and the data part is read to obtain the network device data on the managed device included in the content.
  • the determining module 53 is configured to determine whether the network device data obtained by the parsing is consistent with the network device data of the managed device saved by the network management device;
  • the packet parsing module 52 parses the packet to obtain the network device data on the managed device, it is determined whether the network device data is consistent with the locally saved corresponding network device data, and if the judgment result is inconsistent, The inconsistent information is recorded.
  • a data inconsistency alarm information prompt is generated, and the data inconsistency alarm information includes inconsistent data recorded by the comparison result, and may be displayed to the network administrator.
  • the network administrator can manually control whether to synchronize data, or automatically wait for a certain period of time to automatically perform data synchronization. It can also automatically synchronize without waiting for the network administrator's control, and can be flexibly set according to requirements.
  • the synchronization module 54 is configured to synchronize the network device data between the network management device and the managed device when the determination result is inconsistent.
  • the network management device 6 further includes a triggering module 65 configured to send the network device to the managed device according to a preset data acquisition rule before the message receiving module 61 receives the packet sent by the managed device side.
  • Data acquisition request for data may be specifically set according to requirements.
  • the network management device may be configured to send a data acquisition request when the link is newly established or re-established with the managed device; or may be configured between the network management device and the managed device.
  • the data acquisition request is sent when the network device data synchronization fails; and the data acquisition request may be sent when the preset data detection period is reached.
  • One or more of the multiple rules can be selected as the data acquisition rule.
  • rules other than the above examples may be adopted as data acquisition rules as needed.
  • the synchronization module 74 includes a synchronization object determination sub-module 741 and a synchronization sub-module 742.
  • the synchronization object determination sub-module 741 is set to determine the object to be synchronized based on the determination result.
  • the inconsistent network device data may be known according to the inconsistency information recorded by the judging module.
  • the synchronization object determining sub-module may include the first unit and the second unit.
  • the first unit is configured to determine that the network device data that is inconsistent includes a preset key parameter, and the network management device is selected as the object to be synchronized; and the second unit, the network device data that is determined to be inconsistent is not included in the preset key.
  • the parameter selects the managed device as the object to be synchronized.
  • the synchronization sub-module 842 is configured to synchronize the object to be synchronized.
  • the synchronization sub-module 842 includes a first update unit 8421.
  • inconsistent data information has been recorded, optionally, when data synchronization is performed, only those inconsistent network device data can be synchronized, and those that are consistent network device data are not synchronized.
  • the network management device is an object to be synchronized, it is required to update the inconsistent network device data included in the inconsistency information to the corresponding network device data in the network device data obtained by parsing the message; when determining the managed device For the object to be synchronized, similarly, only those inconsistent network device data contained in the inconsistency information are sent.
  • the synchronization is completed and the synchronization is successful, it is determined whether there is an alarm of data inconsistency. If yes, a reply alarm is generated to eliminate the data inconsistency alarm information.
  • the network device 10 includes a network data acquiring module 101, a packet encapsulating module 102, and a packet sending module 103.
  • the network data obtaining module 101 is configured to acquire network device data to be sent locally;
  • the network device 10 after receiving the data acquisition request for acquiring the network device data sent by the network management device, the network device 10 needs to respond to the request, and send the locally saved network device data to the network data acquiring module 101.
  • the locally saved network device data is obtained as the network device data to be transmitted.
  • the message encapsulating module 102 is configured to add network device data to the data portion of the message and encapsulate the message.
  • the packet encapsulating module 102 adds the network device data waiting to be sent to the packet, and can transmit the network device data by using the SNMP protocol, that is, adding the network device data to the SNMP data packet, and adding a header for encapsulation. .
  • the SNMP protocol that is, adding the network device data to the SNMP data packet, and adding a header for encapsulation.
  • other communication protocols that satisfy the conditions and can achieve the same effect can also be used to complete the transmission of data of the network device to be transmitted.
  • the message sending module 103 is configured to send the message to the network management.
  • the network device further includes a synchronization adjustment module synchronization adjustment module.
  • the synchronization adjustment module 114 is configured to complete the update of the locally saved network data.
  • the synchronization adjustment module 114 includes the message receiving submodule 1141. a parsing sub-module 1142 and a second update sub-module 1143; the message receiving sub-module 1141 is configured to receive a packet sent by the network management device, where the data part content of the packet is network device data saved on the network management device; the message parser
  • the module 1142 is configured to parse the message to obtain network device data;
  • the second update sub-module 1143 is configured to update the locally saved network device data to the parsed network device data.
  • the data synchronization system 12 includes a network device 121 and a network management device 122.
  • the network device 121 includes a network data acquisition module 1211, a message encapsulation module 1212, and a packet transmission. Module 1213.
  • the network management device 122 includes a message receiving module 1221, a message parsing module 1222, a judging module 1223, and a synchronizing module 1224.
  • the network data obtaining module 1211 is configured to acquire first network device data, where the first network device data is network device data saved on the managed device, and the message encapsulating module 1212 is configured to add the first network device data to the data of the packet.
  • the packet sending module 1213 is configured to send the packet; the packet receiving module 1221 is configured to receive the packet; and the packet parsing module 1222 is configured to parse the packet to obtain the first packet.
  • the network device data is provided.
  • the determining module 1223 is configured to determine whether the first network device data and the second network device data are consistent, the second network device data is network device data saved on the network management device, and the synchronization module 1224 is configured to be The judgment result is inconsistent, and the network device data between the network management device and the managed device is synchronized.
  • the network management system includes a network management device, and the managed device is an independent board.
  • the network device data of the managed device is stored on the independent board, and the independent board is controlled by the wireless network controller, that is, the interaction is Completed in the network management device and the wireless network controller.
  • a data acquisition request is sent during the cycle.
  • the network management device obtains the data of the board from the network management database, and then the data of the independent board is queried. The data is parsed and compared. The comparison result is recorded in the log. If the comparison result is inconsistent, the data is inconsistent and the alarm is displayed. Details of inconsistent data.
  • the network management device reads and parses the data inconsistency alarm information to determine whether there are key parameters. It is assumed that the daylight saving time is set as a key parameter in advance, and the inconsistency information displayed by the data inconsistency alarm information does not include the daylight saving time parameter.
  • the data of the network device on the network management device is automatically synchronized, and the data of the network management system is synchronized to the MIB library (Management Information Base) of the independent board on the wireless network controller through the set operation in the SNMP protocol. .
  • MIB library Management Information Base
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for performing the above method.

Landscapes

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

Abstract

一种网络管理方法、装置、网络设备及数据同步系统,其中,所述方法包括:网络管理设备先获取被管设备上的网络设备数据,获取方式为:接收被管设备发送的报文,该报文的数据部分内容为被管设备上的网络设备数据,对报文解析得到所述网络设备数据,判断解析得到的网络设备数据和本地保存的网络设备数据是否一致,当判断结果为不一致时,对所述网络管理设备和所述被管设备之间的网络设备数据进行同步。

Description

网络管理方法、装置、网络设备及数据同步系统 技术领域
本文涉及但不限于通信领域,尤其涉及网络管理方法、装置、网络设备及数据同步系统。
背景技术
随着网络系统复杂度越来越高,网络管理数量越来越多,网络环境越来越复杂,当需要对网络设备更好的管理或处理各种网络故障,往往需要先获得被管设备上的数据信息,并保证其准确性。所以,为了能实现对网络设备更好的管理,更高效的处理各种网络故障,保持网络管理设备和被管设备的网络设备数据的一致性尤为重要。
在相关技术中,为了实现网络管理设备和被管设备的网络设备数据的一致,通常通过数据文件的方式以网络管理设备或被管设备保存的网络设备数据为依据进行同步。当需要进行网络设备数据的同步时,网络管理系统需要先获取到被管设备上保存的网络设备数据,被管设备会先将设备数据加载到数据文件中,例如ZDB格式的文件,然后将该文件封装到数据报文中,发送到网络管理设备,网络管理设备接收到该网络设备数据后,首先解析出数据报文的数据部分会得到ZDB格式的文件,然后将该ZDB格式的文件进行解析才能得到被管设备上保存的网络设备数据。对于其同步的过程,也是通过数据文件的形式来进行数据的传输,然后按照提前约定的一方为标准来进行同步。
可以看出,在对网络管理设备和网络设备之间的网络设备数据进行同步时,二者之间要传输网络设备数据,而在相关技术中会先将所有的网络设备数据加载到数据文件中,并将该数据文件进行分片然后加载到多个报文进行传输,相应的,当需要解析出网络设备数据时,就需要先解析报文,并对数据文件进行重组,获得完整的数据文件后,再对报文的数据部分的数据文件进行解析才能得到需要的网络设备数据,不能直接对报文解析得到该网络设备数据导致网络设备数据获取的效率低、获取过程复杂的问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种网络管理方法、装置、网络设备及数据同步系统,可以解决相关技术中在对网络管理设备和网络设备之间的网络设备数据进行同步时,网络设备数据要采用数据文件进行传输,导致网络设备数据获取的效率低、过程复杂的问题。
本文提供一种管理方法,包括:
接收被管设备发送的报文,所述报文的数据部分内容为所述被管设备的网络设备数据;
对所述报文进行解析得到所述网络设备数据;
判断解析得到的所述网络设备数据和网络管理设备保存的所述被管设备的网络设备数据是否一致;
当判断结果为不一致,对所述网络管理设备和所述被管设备之间的网络设备数据进行同步。
可选地,上述方法中,所述接收被管设备侧发送的报文前,还包括:按预设的数据获取规则向所述被管设备发送获取所述网络设备数据的数据获取请求。
可选地,上述方法中,所述数据获取规则包括以下规则中的一个或多个:
网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;
网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;
达到预设数据检测周期时发送数据获取请求。
可选地,上述方法中,所述对所述网络管理设备和所述被管设备之间的 网络设备数据进行同步包括:
根据所述判断结果确定待同步对象;
对确定的待同步对象进行同步。
可选地,上述方法中,所述根据所述判断结果确定待同步对象包括:
当判断结果为不一致的网络设备数据中存在预设关键数据时,则确定所述网络管理设备为待同步对象;
当判断结果为不一致的网络设备数据中不存在预设关键数据时,确定所述被管设备为待同步对象。
可选地,上述方法中,所述对确定的待同步对象进行同步包括:
当确定所述网络管理设备为待同步对象时,将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
可选地,上述方法中,所述对确定的待同步对象进行同步包括:
当确定所述被管设备为待同步对象时,获取本地保存的网络设备数据;
将所述网络设备数据添加到报文的数据部分并对所述报文进行封装;
将所述报文发送到所述被管设备。
本文还提供了一种网络管理方法,包括:
获取本地待发送的网络设备数据;
将所述待发送的网络设备数据添加到报文的数据部分,并对所述报文进行封装;
向网络管理设备发送所述报文。
可选地,上述方法还包括:
接收所述网络管理设备发送的报文,所述报文的数据部分内容为所述网络管理设备上保存的网络设备数据;
对所述报文进行解析得到所述网络设备数据;
将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
本文还提供了一种网络管理设备,包括:
报文接收模块,设置为接收被管设备发送的报文,所述报文的数据部分内容为所述被管设备的网络设备数据;
报文解析模块,设置为对所述报文进行解析得到所述网络设备数据;
判断模块,设置为判断解析得到的所述网络设备数据和网络管理设备保存的所述被管设备的网络设备数据是否一致;
同步模块,设置为当判断结果为不一致,对所述网络管理设备和所述被管设备之间的网络设备数据进行同步。
可选地,上述设备,还包括:
触发模块,设置为按预设的数据获取规则向所述被管设备发送获取所述网络设备数据的数据获取请求。
可选地,上述设备中,所述数据获取规则包括以下规则中的一个或多个:
网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;
网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;
达到预设数据检测周期时发送数据获取请求。
可选地,上述设备中,所述同步模块包括同步对象确定子模块和同步子模块;
所述同步对象确定子模块,设置为根据所述判断结果确定待同步对象;
所述同步子模块,设置为对确定的待同步对象进行同步。
可选地,上述设备中,所述同步对象确定子模块包括:
第一单元,设置为在所述判断模块判断结果为不一致的网络设备数据中存在预设关键数据时,确定所述网管设备为待同步对象;
第二单元,设置为在所述判断模块判断结果为不一致的网络设备数据中不存在预设关键数据时,确定所述被管设备为待同步对象。
可选地,上述设备中,所述同步子模块包括:
第一更新单元,设置赤在所述同步对象确定子模块确定所述网管设备为待同步对象时,将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
可选地,上述设备中,所述同步子模块还包括:
网络设备数据获取单元,设置为在所述同步对象确定子模块确定所述被管设备为待同步对象时,获取本地保存的网络设备数据;
封装单元,设置为将所述网络设备数据添加到报文的数据部分并对所述报文进行封装;
报文发送单元,设置为将所述封装单元已封装的报文发送到所述被管设备。
本文还提供一种网络设备,包括:
网络数据获取模块:设置为获取本地待发送的网络设备数据;
报文封装模块:设置为将所述网络设备数据添加到报文的数据部分,并对所述报文进行封装;
报文发送模块:设置为向网络管理设备发送所述报文。
可选地,上述设备还包括:
同步调整模块,设置为完成本地保存的网络数据的更新;
所述同步调整模块包括:
报文接收子模块,设置为接收所述网络管理设备发送的报文,所述报文的数据部分内容为所述网络管理设备上保存的网络设备数据;
报文解析子模块,设置为对所述报文进行解析得到所述网络设备数据;
第二更新子模块,设置为将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
本文还提供一种数据同步系统,包括:网络管理设备和网络设备;
所述网络设备包括:
网络数据获取模块,设置为获取第一网络设备数据,所述第一网络设备数据为所述网络设备上保存的网络设备数据;
报文封装模块,设置为将所述第一网络设备数据添加到报文的数据部分,并对所述报文进行封装;
报文发送模块,设置为向网络管理设备所述发送所述报文;
所述网络管理设备包括:
报文接收模块,设置为接收网络设备发送的所述报文;
报文解析模块,设置为对接收到的所述报文进行解析得到所述第一网络设备数据;
判断模块,设置为判断所述第一网络设备数据和第二网络设备数据是否一致,所述第二网络设备数据为所述网络管理设备上保存的网络设备数据;
同步模块,设置为当判断结果为不一致,对所述网络管理设备和所述网络设备之间的网络设备数据进行同步。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
本文提供了网络管理方法、装置、网络设备及数据同步系统,当要进行网络设备数据传输时,获取到待传输的网络设备数据,将该网络设备数据直接添加到报文的数据部分,对报文进行封装,进行传输,接收方在接收到该报文后只需要解析报文,读取报文数据报文数据部分内容就可以直接获得需要的网络设备数据。被管设备通过上述传输方式,向网络管理设备发送本地保存的网络设备数据,网络管理设备在接收到该网络设备数据后将自身保存的网络设备数据与接收到的网络设备数据进行比较,当判断二者不一致时,对网络管理设备和被管设备之间的网络设备数据进行同步,使达到一致。可见,本文提供的技术方案在进行网络设备数据传输时不需要将待传输的网络设备数据加载到数据文件中,再将该数据文件封装到报文才能传输,只需要将各网络设备数据添加到报文,进行传输即可;对于接收端的处理也对应的没有对数据文件的解析过程,直接解析报文便可以得到需要的网络设备数据,因此达到提高网络设备数据获取效率,简化获取过程的效果。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例一中网络管理方法的流程图;
图2为本发明实施例二中网络管理方法的流程图;
图3为本发明实施例三中网络管理方法的流程图;
图4为本发明实施例三中网络管理方法中一种实现网络设备数据同步的流程图;
图5为本发明实施例四中网络管理设备的结构示意图;
图6为本发明实施例四中网络管理设备的另一结构示意图;
图7为本发明实施例四中网络管理设备中同步模块的结构示意图;
图8为本发明实施例四中网络管理设备中同步子模块的结构示意图;
图9为本发明实施例四中网络管理设备中同步子模块的另一结构示意图;
图10为本发明实施例五中网络设备的结构示意图;
图11为本发明实施例五中网络设备的另一结构示意图;
图12为本发明实施例五中网络管理系统的构示意图。
本发明的实施方式
下文中将结合附图对本文的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一:
本实施例提供一种网络管理方法,阐述在完成网络管理设备和被管设备上的网络设备数据的同步时,网络管理设备一侧执行的步骤,请参考图1,包括S101至S104:
S101:接收被管设备发送的报文;
S102:对报文进行解析得到网络设备数据;
S103:判断解析得到的网络设备数据和网络管理设备保存的被管设备的网络设备数据是否一致;
S104:当判断结果为不一致,对网络管理设备和被管设备之间的网络设备数据进行同步。
S101:接收被管设备发送的报文。
可选地,在执行步骤S101前,会预先设定数据获取规则,按照预设的数据获取规则向被管设备发送获取网络设备数据的数据获取请求,被管设备发送的该报文也即是被管设备对该数据获取请求的反馈。数据获取规则可以根据需求设置,例如,可以设置网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;那么每当网络管理设备与被管设备新建立链路或者链路断开后又恢复链路的时候,网络管理设备会向被管设备发送获取网络设备数据的数据获取请求,执行接下来的步骤。
可选地,也可以设置网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;也即是在此之前已经执行了网络管理设备和被管设备之间的网络设备数据同步,但是其结果是同步失败了,那么此时需要进行重新同步,网络管理设备会先向被管设备发送获取网络设备数据的数据获取请求,开始执行重新同步的过程。
可选地,还可以设置达到预设数据检测周期时发送数据获取请求;例如,可以设定每隔1小时检测一次,当9点钟检测了一次,10点钟到达时网络管理设备又会自动发送数据获取请求,来完成检测,并根据检测结果执行相应步骤。可以选择多个规则中的一个或者多个作为数据获取规则。当然,在实际使用时也可能会根据需要采用除上述示例外其他的规则作为数据获取规则。
可选地,当需要对网络管理设备和被管设备上的网络设备数据进行同步时,网络管理设备需要先获取到被管设备上保存的网络设备数据,通过接收被管设备发送的报文的方式来获取该网络设备数据,在接收到的报文中包含 了该网络设备数据,网络设备数据直接添加在报文的数据部分。例如,可以采用SNMP(Simple Network Management Protocol,简单网络管理协议)协议来传输该网络设备数据,对SNMP报文进行解析,可以直接得到其数据部分的被管设备上的网络设备数据。当然,其他满足条件而且能够达到同样效果的通信协议也可以被用来完成网络设备数据的传输。
在执行完步骤S101后,执行步骤S102,因为被管设备的网络设备数据是被封装在报文中的,所以要得到该网络设备数据,先要对该接收到是报文进行解析,读取其数据部分的内容获得其中包括的被管设备上的网络设备数据。
可选地,在对报文进行解析得到被管设备上的网络设备数据后执行步骤S103,判断该网络设备数据与本地保存的相应网络设备数据是否一致,如果不一致,将该不一致的信息记录下来。当判断结果中存在不一致,会产生数据不一致告警信息提示,该数据不一致告警信息包括比较结果记录的不一致的数据,可以显示给网络管理员。网络管理员可以手动控制,选择是否需要进行数据同步,也可以等待一定时长后自动执行数据同步,还可以不等待网络管理员的控制自动进行同步,可以根据需求灵活设置。
可选地,根据步骤S103的执行结果,选择是否要执行步骤S104,步骤S103的执行结果为网络设备数据和网络管理设备保存的被管设备的网络设备数据不一致,那么就需要执行步骤S104完成对网络管理设备和被管设备之间的网络设备数据进行同步。进行数据同步前,要判断待同步对象。根据记录的不一致信息可以知道不一致的网络设备数据,如果这些不一致的网络设备数据中包含了预设关键参数就选择网络管理设备为待同步对象;如果这些不一致的网络设备数据中不包含预设关键参数就选择被管设备为待同步对象。
可选地,当确定网络管理设备为待同步对象,则需要将本地保存的网络设备数据更新为解析报文得到的网络设备数据;当确定被管设备为待同步对象,则需要获取本地保存的网络设备数据,将本地保存的网络设备数据添加到报文的数据部分并对该报文进行封装,将该报文发送到被管设备。也可以采用SNMP协议或其他满足条件而且能够达到同样效果的通信协议来完成该传输过程。另外,由于已经记录了不一致的数据信息,可选地,在进行数据 同步时,可以只同步那些不一致的网络设备数据,对于那些一致的网络设备数据不进行同步。例如,当确定网络管理设备为待同步对象,则需要将不一致性信息中包含的那些不一致的网络设备数据更新为解析报文得到的网络设备数据中相对应的网络设备数据;当确定被管设备为待同步对象,与之类似,只发送不一致性信息中包含的那些不一致的网络设备数据。当完成同步,并且同步成功之后,判断是否有数据不一致的告警,如果有,产生一条回复告警,消除数据不一致告警信息。
实施例二:
本实施例提供一种网络管理方法,阐述在完成网络管理设备和被管设备上的网络设备数据的同步时,被管设备一侧执行的步骤,请参考图2,包括S201至S203:
S201:获取本地待发送的网络设备数据;
S202:将该网络设备数据添加到报文的数据部分,并对所述报文进行封装;
S203:向网络管理设备发送所述报文。
可选地,在接收到网络管理设备发送的获取网络设备数据的数据获取请求后,需要对该请求做出回应,向其发送本地保存的网络设备数据。先需要获得本地保存的网络设备数据作为待发送的网络设备数据。
可选地,在本实施例S202中,将等待发送的网络设备数据添加到报文中,可以采用SNMP协议来传输该网络设备数据,也即是将该网络设备数据添加到SNMP数据报文中,并添加报头进行封装。当然,其他满足条件而且能够达到同样效果的通信协议也可以被用来完成待发送网络设备数据的传输。
可选地,在本实施例S203中,将完成封装后的报文,经过协议栈中下层的处理,发送到网络管理设备。
可选地,当被管设备作为待同步对象时:还会接收网络管理设备发送的报文,该报文的数据部分内容为网络管理设备上保存的网络设备数据,对报文进行解析得到所述网络设备数据,并将本地保存的网络设备数据更新为解析得到的网络设备数据。
实施例三:
本实施例提供一种网络管理方法,请参考图3,包括S301至S308:
S301:网络管理设备向被管设备发送获取网络设备数据的数据获取请求;
S302:被管设备获取第一网络设备数据;
S303:被管设备将该第一网络设备数据添加到报文的数据部分,对该报文进行封装;
S304:被管设备向网络管理设备发送该报文;
S305:网络管理设备接收该报文;
S306:网络管理设备对报文进行解析得到第一网络设备数据;
S307:网络管理设备判断第一网络设备数据和第二网络设备数据是否一致;
S308:当判断结果为不一致,对网络管理设备对该网络管理设备和该被管设备之间的网络设备数据进行同步。
可选地,网络管理设备会实时监控被管设备的状态信息,包括链路状态、数据变更状态等。在网络管理设备会预先设定数据获取规则,本实施例S301中,网络管理设备按照预设的数据获取规则向被管设备发送获取网络设备数据的数据获取请求。数据获取规则可以根据需求具体设置,例如,可以设置网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;也可以设置网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;还可以设置达到预设数据检测周期时发送数据获取请求。可以选择多个规则中的一个或者多个作为数据获取规则。当然,在实际使用时也可能会根据需要采用除上述示例外其他的规则作为数据获取规则。
可选地,在接收到网络管理设备发送的数据获取请求后,需要对该请求做出回应,向其发送本地保存的网络设备数据。被管设备需要获得本地保存的网络设备数据作为待发送的网络设备数据,在本实施例S302中该第一网络设备数据为被管设备上保存的网络设备数据。
可选地,在本实施例S303中需要将等待发送的网络设备数据添加到报文中,可以采用SNMP协议来传输该网络设备数据,也即是将该网络设备数据 添加到SNMP数据报文中,并添加报头进行封装。当然,其他满足条件而且能够达到同样效果的通信协议也可以被用来完成待发送网络设备数据的传输。
可选地,在接收到的报文中包含了第一网络设备数据,并且该第一网络设备数据直接添加在报文的数据部分。在本实施例S306中对报文进行解析,可以直接得到其数据部分的被管设备上的网络设备数据,也即是第一网络设备数据。例如,在S303中采用SNMP协议来进行传输的,此时只需要对SNMP报文进行解析,读取其数据部分的内容,便可以得到第一网络设备数据。
可选地,在本实施例S307中,在对报文进行解析得到第一网络设备数据之后将该第一网络设备数据与第二网络设备数据进行逐条比对,该第二网络设备数据为保存在网络管理设备上的网络设备数据,看是否一致,如果不一致,将该不一致的信息记录下来。若对比结果中存在不一致,会产生数据不一致告警信息提示,该数据不一致告警信息包括比较结果记录的不一致的数据,可以显示给网络管理员。网络管理员可以手动控制,选择是否需要进行数据同步,也可以等待一定时长后自动执行数据同步,还可以不等待网络管理员的控制自动进行同步,根据实际需求灵活设置。
可选地,在本实施例S308中,对网络管理设备对该网络管理设备和该被管设备之间的网络设备数据进行同步之前,先要判断待同步对象。根据记录的不一致信息可以知道不一致的网络设备数据,如果这些不一致的网络设备数据中包含了预设关键参数就选择网络管理设备为待同步对象;如果这些不一致的网络设备数据中不包含预设关键参数就选择被管设备为待同步对象。预设关键参数可以根据具体需求自行设置,例如,可以预先设置时区、夏令时作为关键参数,如果不一致信息中显示不一致的参数中包含有时区或夏令时就会将网络管理设备作为待同步对象,如果不一致信息中显示不一致的参数中没有包含有时区或夏令时,就会将被管作为待同步对象。
当确定网络管理设备为待同步对象,则需要将第二网络设备数据更新为第一网络设备数据。
当确定被管设备为待同步对象,对该网络管理设备和该被管设备之间的网络设备数据进行同步的过程,请参考图4,包括S401至405:
S401:网络管理设备获取第二网络设备数据;
S402:网络管理设备将第二网络设备数据添加到报文的数据部分,并对所述报文进行封装;
S403:网络管理设备向被管设备发送该报文;
S404:被管设备接收该报文;
S405:被管设备第一网络设备数据更新为该第二网络设备数据。
可选地,完成上述同步过程也可以采用SNMP协议或其他满足条件,能够达到同样效果的通信协议来完成该传输过程。
另外,由于已经记录了不一致的数据信息,可选地,在进行数据同步时,可以只同步那些不一致的网络设备数据,对于那些一致的网络设备数据不进行同步。例如,当确定网络管理设备为待同步对象,则需要将不一致性信息中包含的那些不一致的网络设备数据更新为解第二网络设备数据中相对应的网络设备数据;当确定被管设备为待同步对象,与之类似,只发送不一致性信息中包含的那些不一致的网络设备数据,被管设备接收到该不一致的网络设备数据后,更新本地保存的相应的网络设备数据。当完成同步,并且同步成功之后,判断是否有数据不一致的告警,如果有,产生一条回复告警,消除不一致告警信息。
实施例四:
本实施例提供一种网络管理设备,请参考图5,该网络管理设备5包括报文接收模块51、报文解析模块52、判断模块53和同步模块54。
报文接收模块51,设置为接收被管设备发送的报文,报文的数据部分内容为所述被管设备的网络设备数据。
报文解析模块52设置为对报文进行解析得到网络设备数据,在接收到被管设备发送的报文后,因为其网络设备数据是被封装在报文中的,所以要得到该网络设备数据,先要对该接收到是报文进行解析,读取其数据部分是内容获得其中包括的被管设备上的网络设备数据。
判断模块53设置为判断解析得到的网络设备数据和网络管理设备保存的被管设备的网络设备数据是否一致;
可选地,在报文解析模块52对报文进行解析得到被管设备上的网络设备数据后,判断将该网络设备数据与本地保存的相应网络设备数据是否一致,如果判断结果为不一致,将该不一致的信息记录下来。
可选地,若判断结果中存在不一致,会产生数据不一致告警信息提示,该数据不一致告警信息包括比较结果记录的不一致的数据,可以显示给网络管理员。网络管理员可以手动控制,选择是否需要进行数据同步,也可以等待一定时长后自动执行数据同步,还可以不等待网络管理员的控制自动进行同步,根据需求灵活设置。
同步模块54设置为当判断结果为不一致,对述网络管理设备和被管设备之间的网络设备数据进行同步。
请参考图6,网络管理设备6还包括触发模块65设置为在报文接收模块61接收被管设备侧发送的报文之前,按预设的数据获取规则向被管设备发送获取所述网络设备数据的数据获取请求。可选地,数据获取规则可以根据需求具体设置,例如,可以设置网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;也可以设置网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;还可以设置达到预设数据检测周期时发送数据获取请求。可以选择多个规则中的一个或者多个作为数据获取规则。当然,在实际使用时也可能会根据需要采用除上述示例外其他的规则作为数据获取规则。
请参考图7,同步模块74包括同步对象确定子模块741和同步子模块742。同步对象确定子模块741设置为根据判断结果确定待同步对象。根据判断模块记录的不一致信息可以知道不一致的网络设备数据.可选地,同步对象确定子模块可以包括第一单元和第二单元。第一单元,设置为判断结果为不一致的网络设备数据中包含了预设关键参数选择网络管理设备为待同步对象;第二单元,设置为判断结果为不一致的网络设备数据中不包含预设关键参数选择被管设备为待同步对象。
请参考图8,同步子模块842用于对待同步对象进行同步,当同步对象确定子模块确定网管设备为待同步对象,同步子模块842包括第一更新单元8421,
请参考图9,当同步对象确定子模块确定所述被管设备为待同步对象,同步子模块942包括网络设备数据获取单元9422、封装单元9423和报文发送单元9424。网络设备数据获取单元9422设置为获取本地保存的网络设备数据;封装单元9423设置为将网络设备数据添加到报文的数据部分并对所述报文进行封装;报文发送单元9424设置为将报文发送到被管设备。也可以采用SNMP协议或其他满足条件而且能够达到同样效果的通信协议来完成该同步过程。
另外,由于已经记录了不一致的数据信息,可选地,在进行数据同步时,可以只同步那些不一致的网络设备数据,对于那些一致的网络设备数据不进行同步。例如,当确定网络管理设备为待同步对象,则需要将不一致性信息中包含的那些不一致的网络设备数据更新为解析报文得到的网络设备数据中相对应的网络设备数据;当确定被管设备为待同步对象,与之类似,只发送不一致性信息中包含的那些不一致的网络设备数据。当完成同步,并且同步成功之后,判断是否有数据不一致的告警,如果有,产生一条回复告警,消除数据不一致告警信息。
实施例五:
本实施例提供一种网络设备,请参考图10,该网络设备10包括网络数据获取模块101、报文封装模块102和报文发送模块103。
网络数据获取模块101设置为获取本地待发送的网络设备数据;
可选地,在接收到网络管理设备发送的获取网络设备数据的数据获取请求后,网络设备10需要对该请求做出回应,向其发送本地保存的网络设备数据,网络数据获取模块101就需要获得本地保存的网络设备数据作为待发送的网络设备数据。
报文封装模块102设置为将网络设备数据添加到报文的数据部分,并对所述报文进行封装。报文封装模块102将等待发送的网络设备数据添加到报文中,可以采用SNMP协议来传输该网络设备数据,也即是将该网络设备数据添加到SNMP数据报文中,并添加报头进行封装。当然,其他满足条件而且能够达到同样效果的通信协议也可以被用来完成待发送网络设备数据的传输。
报文发送模块103设置为向网络管理发送所述报文。
可选地,该网络设备还包括同步调整模块同步调整模块,请参考图11,同步调整模块114设置为完成本地保存的网络数据的更新;同步调整模块114包括报文接收子模块1141、报文解析子模块1142和第二更新子模块1143;报文接收子模块1141设置为接收网络管理设备发送的报文,报文的数据部分内容为网络管理设备上保存的网络设备数据;报文解析子模块1142设置为对报文进行解析得到网络设备数据;第二更新子模块1143设置为将本地保存的网络设备数据更新为解析得到的网络设备数据。
本实施例还提供一种数据同步系统,请参考图12,该数据同步系统12包括网络设备121和网络管理设备122;网络设备121包括网络数据获取模块1211、报文封装模块1212和报文发送模块1213。网络管理设备122包括报文接收模块1221、报文解析模块1222、判断模块1223和同步模块1224。
网络数据获取模块1211设置为获取第一网络设备数据,该第一网络设备数据为被管设备上保存的网络设备数据;报文封装模块1212设置为将第一网络设备数据添加到报文的数据部分,并对报文进行封装;报文发送模块1213设置为发送报文;报文接收模块1221设置为接收所述报文;报文解析模块1222设置为对所述报文进行解析得到第一网络设备数据;判断模块1223设置为判断所述第一网络设备数据和第二网络设备数据是否一致,所述第二网络设备数据为网络管理设备上保存的网络设备数据;同步模块1224设置为当判断结果为不一致,对网络管理设备和被管设备之间的网络设备数据进行同步。
实施例六:
下面将以实际示例,来进行说明。网络管理系统包括,网络管理设备,被管设备为独立单板,独立单板上保存有被管设备的网络设备数据,独立单板通过无线网络控制器来进行控制,也即是,交互都是在网络管理设备和无线网络控制器完成的。
预先设置好当网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求、网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求、达到预设数据检测周期时发送数据获取请求。
若现被管设备和网络管理设备处于链路断开状态,然后立即又恢复了链路,此时,触发一致性比较。网络管理设备从网管数据库获取单板数据,通过SNMP查询出独立单板的数据,对获取的数据进行解析比较,将比较结果记录在日志中,当比较结果不一致触发数据不一致发告警,告警会显示不一致数据的详细信息。网络管理设备读取并解析该数据不一致告警信息,判断其中是否存在关键参数,假设提前设定夏令时为关键参数,而现在数据不一致告警信息显示的不一致信息中不包括夏令时这个参数,那么以网络管理设备上的网络设备数据为准自动进行数据同步,将网管系统的数据通过SNMP协议中的set操作同步到无线网络控制器上独立单板的MIB库(Management Information Base,管理信息库)中。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。
工业实用性
本发明实施例在进行网络设备数据传输时不需要将待传输的网络设备数据加载到数据文件中,再将该数据文件封装到报文才能传输,只需要将各网络设备数据添加到报文,进行传输即可;对于接收端的处理也对应的没有对数据文件的解析过程,直接解析报文便可以得到需要的网络设备数据,因此达到提高网络设备数据获取效率,简化获取过程的效果。

Claims (19)

  1. 一种网络管理方法,包括:
    接收被管设备发送的报文,所述报文的数据部分内容为所述被管设备的网络设备数据;
    对所述报文进行解析得到所述网络设备数据;
    判断解析得到的所述网络设备数据和网络管理设备保存的所述被管设备的网络设备数据是否一致;
    当判断结果为不一致,对所述网络管理设备和所述被管设备之间的网络设备数据进行同步。
  2. 如权利要求1所述的网络管理方法,其中,所述接收被管设备侧发送的报文前,还包括:按预设的数据获取规则向所述被管设备发送获取所述网络设备数据的数据获取请求。
  3. 如权利要求2所述的网络管理方法,其中,所述数据获取规则包括以下规则中的一个或多个:
    网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;
    网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;
    达到预设数据检测周期时发送数据获取请求。
  4. 如权利要求1-3任一项所述的网络管理方法,其中,所述对所述网络管理设备和所述被管设备之间的网络设备数据进行同步包括:
    根据所述判断结果确定待同步对象;
    对确定的待同步对象进行同步。
  5. 如权利要求4所述的网络管理方法,其中,所述根据所述判断结果确定待同步对象包括:
    当判断结果为不一致的网络设备数据中存在预设关键数据时,则确定所述网络管理设备为待同步对象;
    当判断结果为不一致的网络设备数据中不存在预设关键数据时,确定所述被管设备为待同步对象。
  6. 如权利要求5所述的网络管理方法,其中,所述对确定的待同步对象进行同步包括:
    当确定所述网络管理设备为待同步对象时,将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
  7. 如权利要求5所述的网络管理方法,其中,所述对确定的待同步对象进行同步包括:
    当确定所述被管设备为待同步对象时,获取本地保存的网络设备数据;
    将所述网络设备数据添加到报文的数据部分并对所述报文进行封装;
    将所述报文发送到所述被管设备。
  8. 一种网络管理方法,包括:
    获取本地待发送的网络设备数据;
    将所述待发送的网络设备数据添加到报文的数据部分,并对所述报文进行封装;
    向网络管理设备发送所述报文。
  9. 如权利要求8所述的网络管理方法,还包括:
    接收所述网络管理设备发送的报文,所述报文的数据部分内容为所述网络管理设备上保存的网络设备数据;
    对所述报文进行解析得到所述网络设备数据;
    将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
  10. 一种网络管理设备,包括:
    报文接收模块,设置为接收被管设备发送的报文,所述报文的数据部分内容为所述被管设备的网络设备数据;
    报文解析模块,设置为对所述报文进行解析得到所述网络设备数据;
    判断模块,设置为判断解析得到的所述网络设备数据和网络管理设备保 存的所述被管设备的网络设备数据是否一致;
    同步模块,设置为当判断结果为不一致,对所述网络管理设备和所述被管设备之间的网络设备数据进行同步。
  11. 如权利要求10所述的网络管理设备,还包括:
    触发模块,设置为按预设的数据获取规则向所述被管设备发送获取所述网络设备数据的数据获取请求。
  12. 如权利要求11所述的网络管理设备,其中,所述数据获取规则包括以下规则中的一个或多个:
    网络管理设备与被管设备新建立链接或重新建立链接时发送数据获取请求;
    网络管理设备和被管设备之间的网络设备数据同步失败时发送数据获取请求;
    达到预设数据检测周期时发送数据获取请求。
  13. 如权利要求10-12任一项所述的网络管理设备,其中,所述同步模块包括同步对象确定子模块和同步子模块;
    所述同步对象确定子模块,设置为根据所述判断结果确定待同步对象;
    所述同步子模块,设置为对确定的待同步对象进行同步。
  14. 如权利要求13所述的网络管理设备,其特征在于,所述同步对象确定子模块包括:
    第一单元,设置为在所述判断模块判断结果为不一致的网络设备数据中存在预设关键数据时,确定所述网管设备为待同步对象;
    第二单元,设置为在所述判断模块判断结果为不一致的网络设备数据中不存在预设关键数据时,确定所述被管设备为待同步对象。
  15. 如权利要求14所述的网络管理设备,其中,所述同步子模块包括:
    第一更新单元,设置赤在所述同步对象确定子模块确定所述网管设备为待同步对象时,将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
  16. 如权利要求15所述的网络管理设备,其中,所述同步子模块还包括:
    网络设备数据获取单元,设置为在所述同步对象确定子模块确定所述被管设备为待同步对象时,获取本地保存的网络设备数据;
    封装单元,设置为将所述网络设备数据添加到报文的数据部分并对所述报文进行封装;
    报文发送单元,设置为将所述封装单元已封装的报文发送到所述被管设备。
  17. 一种网络设备,包括:
    网络数据获取模块:设置为获取本地待发送的网络设备数据;
    报文封装模块:设置为将所述网络设备数据添加到报文的数据部分,并对所述报文进行封装;
    报文发送模块:设置为向网络管理设备发送所述报文。
  18. 如权利要求17所述的网络设备,还包括:
    同步调整模块,设置为完成本地保存的网络数据的更新;
    所述同步调整模块包括:
    报文接收子模块,设置为接收所述网络管理设备发送的报文,所述报文的数据部分内容为所述网络管理设备上保存的网络设备数据;
    报文解析子模块,设置为对所述报文进行解析得到所述网络设备数据;
    第二更新子模块,设置为将本地保存的网络设备数据更新为解析得到的所述网络设备数据。
  19. 一种数据同步系统,包括:网络管理设备和网络设备;
    所述网络设备包括:
    网络数据获取模块,设置为获取第一网络设备数据,所述第一网络设备数据为所述网络设备上保存的网络设备数据;
    报文封装模块,设置为将所述第一网络设备数据添加到报文的数据部分,并对所述报文进行封装;
    报文发送模块,设置为向网络管理设备所述发送所述报文;
    所述网络管理设备包括:
    报文接收模块,设置为接收网络设备发送的所述报文;
    报文解析模块,设置为对接收到的所述报文进行解析得到所述第一网络设备数据;
    判断模块,设置为判断所述第一网络设备数据和第二网络设备数据是否一致,所述第二网络设备数据为所述网络管理设备上保存的网络设备数据;
    同步模块,设置为当判断结果为不一致,对所述网络管理设备和所述网络设备之间的网络设备数据进行同步。
PCT/CN2016/084572 2015-11-05 2016-06-02 网络管理方法、装置、网络设备及数据同步系统 WO2016188499A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510747046.4A CN106685675A (zh) 2015-11-05 2015-11-05 网络管理方法、装置、网络设备及数据同步系统
CN201510747046.4 2015-11-05

Publications (1)

Publication Number Publication Date
WO2016188499A1 true WO2016188499A1 (zh) 2016-12-01

Family

ID=57392547

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084572 WO2016188499A1 (zh) 2015-11-05 2016-06-02 网络管理方法、装置、网络设备及数据同步系统

Country Status (2)

Country Link
CN (1) CN106685675A (zh)
WO (1) WO2016188499A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120616B (zh) * 2018-08-16 2021-12-21 上海达梦数据库有限公司 一种身份认证方法、装置、代理服务端和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795208A (zh) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 一种机架图显示信息同步的方法及系统
CN102185703A (zh) * 2010-07-29 2011-09-14 艾默生网络能源有限公司 一种基于snmp协议的网络设备管理方法及主设备
CN102223255A (zh) * 2011-07-05 2011-10-19 迈普通信技术股份有限公司 一种基于snmp与设备信息快速同步的方法及系统
CN102685877A (zh) * 2012-05-16 2012-09-19 北京星网锐捷网络技术有限公司 用户数据同步方法、无线控制器及网管设备
CN102868557A (zh) * 2012-09-05 2013-01-09 烽火通信科技股份有限公司 一种网管和xPON设备之间的配置同步实现方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795208A (zh) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 一种机架图显示信息同步的方法及系统
CN102185703A (zh) * 2010-07-29 2011-09-14 艾默生网络能源有限公司 一种基于snmp协议的网络设备管理方法及主设备
CN102223255A (zh) * 2011-07-05 2011-10-19 迈普通信技术股份有限公司 一种基于snmp与设备信息快速同步的方法及系统
CN102685877A (zh) * 2012-05-16 2012-09-19 北京星网锐捷网络技术有限公司 用户数据同步方法、无线控制器及网管设备
CN102868557A (zh) * 2012-09-05 2013-01-09 烽火通信科技股份有限公司 一种网管和xPON设备之间的配置同步实现方法

Also Published As

Publication number Publication date
CN106685675A (zh) 2017-05-17

Similar Documents

Publication Publication Date Title
WO2021121370A1 (zh) 用于消息队列的消息丢失检测方法和装置
CN110808874B (zh) 一种跨机房服务监控方法、装置、存储介质及服务器
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN104184756A (zh) 一种数据同步方法、装置及系统
CN109547524B (zh) 基于物联网的用户行为存储方法、装置、设备及存储介质
US11889255B2 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
JP2009140515A (ja) 中断された同期プロセスに対処してデータを同期させる方法、装置、システム
EP2725759A1 (en) Authentication method for bidirectional forwarding detection session and node
US10021182B2 (en) Method and apparatus for data synchronization
US8924544B2 (en) Techniques for sessionless reporting by device management client
KR100728076B1 (ko) 인터럽트된 동기화 프로세스의 처리를 제공하는 데이터를동기화하는 방법, 장치 및 시스템
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN109788251B (zh) 视频处理方法、装置及存储介质
CN105281940B (zh) 一种基于netconf协议的hello报文交互的方法、设备和系统
WO2016188499A1 (zh) 网络管理方法、装置、网络设备及数据同步系统
JP7185054B2 (ja) リソース周期構成方法およびデバイス、リンク処理および確立方法およびデバイス
CN114884805B (zh) 数据传输方法、装置、终端及存储介质
EP3145120A1 (en) Data acquisition method, device and system
CN115632815A (zh) 一种数据的更新方法、装置、电子设备及存储介质
CN107872479B (zh) 云管理平台与控制器集成方法和系统以及相关模块
CN103957079A (zh) 一种hdlc网络中的协商方法和设备
WO2017000713A1 (zh) 一种光传送网络中时钟时间传送模式同步的方法及装置
WO2016065752A1 (zh) 一种链路状态的检测方法、设备和存储介质
KR101973264B1 (ko) PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구 방법 및 그 장치
WO2016184025A1 (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: 16799386

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: 16799386

Country of ref document: EP

Kind code of ref document: A1