WO2016074412A1 - 基于网络配置协议进行兼容管理的方法、存储介质及设备 - Google Patents

基于网络配置协议进行兼容管理的方法、存储介质及设备 Download PDF

Info

Publication number
WO2016074412A1
WO2016074412A1 PCT/CN2015/075109 CN2015075109W WO2016074412A1 WO 2016074412 A1 WO2016074412 A1 WO 2016074412A1 CN 2015075109 W CN2015075109 W CN 2015075109W WO 2016074412 A1 WO2016074412 A1 WO 2016074412A1
Authority
WO
WIPO (PCT)
Prior art keywords
netconf
interface
network
feature information
merge
Prior art date
Application number
PCT/CN2015/075109
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 WO2016074412A1 publication Critical patent/WO2016074412A1/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

Definitions

  • the present invention relates to network management technologies in the field of communication technologies, and in particular, to a method, a storage medium, and a device for performing compatibility management based on a network configuration protocol.
  • SDN Software Defined Network
  • the control plane of the network device migrates from the device level to the network management server level, and defines an interface between the network management server and the network device through a network configuration protocol (netconf); here, the network management server may also be called SDN server.
  • network configuration protocol network configuration protocol
  • the Netconf protocol has a number of advantages, such as: strong scalability, simple communication mechanism, and the use of hierarchical structure, but the Netconf protocol has defects in compatibility management of multiple devices and multiple versions.
  • the receiver (device host) of the Netconf protocol strictly checks the received packets. If the receiver (device host) receives the packet, the receiver (device host) does not support it. The field, then, the receiver (device host) will report an error, therefore, the message originator (SDN server) needs to identify the definition of the netconf interface supported by the receiver (device host), and according to the receiver (device host) The supported interface defines the outgoing packets.
  • the SDN server needs to manage a large number of networks of different device types and different versions. Equipment, will inevitably increase the management complexity, development workload and maintenance workload of the SDN server.
  • the embodiments of the present invention provide a method, a storage medium, and a device for performing compatibility management based on a network configuration protocol.
  • the embodiment of the invention provides a method for compatibility management based on netconf, the method comprising:
  • the netconf interface packet When the netconf interface packet is sent to the network device, the netconf interface packet is processed according to the obtained device feature information and the device feature information carried in each field of the netconf merge interface.
  • the method further includes:
  • the netconf interface of each network device is received, and the netconf interface of each network device is merged according to the compatibility merge rule, and the netconf merge interface is obtained in advance and stored; each field in the netconf merge interface carries all network devices supporting the field.
  • Device feature information, device feature information of each network device is different.
  • the method further includes:
  • the netconf merge interface is updated according to the updated netconf interface.
  • the device feature information includes a device type, a version model, and a version update time.
  • the processing of the netconf interface packet is performed according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface, including:
  • the device type and the version type are not found in the device feature information carried in each field, or the version update time is earlier than the corresponding version update time, the corresponding field in the netconf interface packet is deleted. .
  • an embodiment of the present invention provides a storage medium including a set of instructions that, when executed, cause at least one processor to perform the operations described above.
  • an embodiment of the present invention provides a network management device, where the network management device includes: an acquiring module and a processing module;
  • the acquiring module is configured to acquire device feature information of the network device when establishing a connection with the network device;
  • the processing module is configured to process the netconf interface packet according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface.
  • the network management device further includes a merged storage module, configured to receive the netconf interface of each network device, merge the netconf interfaces of the network devices according to the compatibility merge rule, and obtain the netconf merge interface in advance and store the same;
  • Each field in the netconf merge interface carries device feature information of all network devices that support the field. The device feature information of each network device is different.
  • the network management device further includes an update module configured to update the netconf merge interface according to the updated netconf interface when receiving the updated networkconf interface of the network device.
  • the embodiment of the present invention further provides a network management device, where the network management device includes: a first processor, a second processor;
  • the first processor is configured to acquire device feature information of the network device when establishing a connection with the network device;
  • the second processor is configured to process the netconf interface packet according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface.
  • the network management device further includes:
  • the third processor is configured to receive the netconf interface of each network device, combine the netconf interfaces of the network devices according to the compatibility merge rule, and obtain the netconf merge interface in advance; each field in the netconf merge interface carries the support Device feature information of all network devices in the field, and device feature information of each network device is different;
  • Memory configured to store the netconf merge interface.
  • the network management device further includes:
  • the fourth processor is configured to update the netconf merge interface according to the updated netconf interface when receiving the netconf interface after the network device is updated.
  • the method, the storage medium, and the device for performing the compatibility management based on the network configuration protocol provided by the embodiment of the present invention acquires the device feature information of the network device when establishing a connection with the network device; and when sending the netconf interface packet to the network device, according to the network device Obtaining the device feature information and the device feature information carried in each field of the netconf merge interface, and processing the netconf interface packet; the embodiment of the present invention is carried according to the acquired device feature information and each field in the netconf merge interface.
  • the device feature information is used to determine the fields supported by the current network device in the netconf interface packet, which can not only meet the requirements of multiple network devices, but also implement compatible management of the network device, and can also be described according to the field supported by the current network device.
  • the netconf interface packet is processed accordingly, and the fields that are not supported by the current network device in the netconf interface packet are deleted and sent, so that the network management device implements unified management and reduces the complexity of maintenance management.
  • FIG. 1 is a schematic flowchart of a method for implementing compatibility management based on a network configuration protocol according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a network management device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a network management device according to another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a network management device according to another embodiment of the present invention.
  • FIG. 5 is a structural diagram of hardware components of a network management device according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of hardware components of a network management device according to another embodiment of the present invention.
  • FIG. 7 is a structural diagram of hardware components of a network management device according to another embodiment of the present invention.
  • the device feature information of the network device is obtained; when the netconf interface packet is sent to the network device, the device is carried according to the device feature information and the device carried in each field of the netconf merge interface.
  • the feature information is used to process the netconf interface packet, and then the processed netconf interface packet is sent to the network device.
  • the implementation of the embodiment of the present invention further includes: receiving a netconf interface of each network device, combining the netconf interfaces of the network devices according to the compatibility merge rule, and obtaining the netconf merge interface in advance and storing the netconf;
  • Each field in the merged interface carries device feature information of all network devices supporting the field, and the device feature information of each network device is different.
  • the embodiment of the invention provides a method for performing compatibility management based on a network configuration protocol. As shown in FIG. 1 , the method includes:
  • Step S101 When establishing a connection between the network management device and the network device, acquiring device feature information of the network device.
  • the method further includes:
  • Step S100 The network management device receives the netconf interface sent by each network device, merges the netconf interfaces of the network devices according to the compatibility merge rule, and obtains the netconf merge interface in advance, and stores each field in the netconf merge interface. There are device feature information of all network devices supporting this field, and the device feature information of each network device is different.
  • each netconf interface manufacturer defines a netconf interface for each network device according to the netconf protocol standard, and sends the defined netconf interface to the network management device; specifically, adds a device to each field in the defined netconf interface.
  • Feature information wherein the device feature information includes information such as a device type, a version model, and a version update time, and the version update time may be represented by a timestamp, and the timestamp is a feature for indicating unique identification in a sequential order.
  • the code can be a feature code of the year, month, and day. For example, 2014-01-15, it can also be an incremental number or other feature code that can indicate the order; usually, the defined netconf interface is stored and sent as a yang file. .
  • the network management device After receiving the netconf interface sent by all network devices, the network management device merges the netconf interfaces of all network devices according to the compatibility merge rule through the netconf interface merge tool Merge Yang Tool, and obtains the netconf merge interface and stores the specific
  • the implementation is as follows:
  • the netconf interface of the first network device (device type 1, version model 1, version update time 1) and the netconf interface of the second network device (device type 2, version model 2, version update time 2) as the to be merged
  • the netconf interface; where the interface-name field in the netconf interface of the first network device is defined as follows:
  • the input netconf interface to be merged is merged according to the compatibility merge rule, and the netconf merge interface is obtained; wherein the interface-name field in the netconf merge interface is defined as follows:
  • the device feature information of all network devices supporting the field is added by adding the field attribute.
  • the attribute name can be customized according to requirements, for example, the attributes in the above fields.
  • the name is defined as device-availabledate.
  • the netconf interface merge tool Merge Yang Tool first reads the netconf interface of multiple network devices, and parses the netconf interface. If it finds that the netconf interface definition does not meet the syntax, the corresponding netconf interface is returned to the netconf interface. Vendors require the netconf interface to specify the vendor to modify the netconf interface definition and give corresponding error prompts; if no netconf interface definitions that do not conform to the syntax are found, they are merged according to the compatibility merge rules.
  • the input of the netconf interface merge tool Merge Yang Tool is a plurality of parallel directories, the directory name is the name of the corresponding network device, and the yang file corresponding to the netconf interface defined by one network device in each directory is merged to obtain the netconf merge.
  • the interface is stored in a yang file.
  • the compatibility merge rule is set to: merge the same fields defined in the netconf interface of multiple network devices, and add device feature information of all network devices supporting the field in the merged field.
  • the netconf interface manufacturer updates the netconf interface definition, for example, adding a field to the netconf interface or updating the original field, and adding corresponding device feature information to the field;
  • the updated netconf interface is sent to the network management device; when the network management device receives the updated netconf interface, the networkconf merge interface is updated according to the updated netconf interface.
  • Step S102 When the netconf interface packet is sent to the network device, the netconf interface packet is processed according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface.
  • the netconf interface message is based on the netconf interface to define the vendor-defined netconf interface settings.
  • the device feature information of the network device is acquired in a netconf-based capability exchange process, where the device feature information includes: a device type, a version model, and a version update time. information;
  • the netconf interface packet When the netconf interface packet is sent to the network device, the netconf interface packet is processed according to the obtained device feature information and the device feature information carried in each field of the netconf merge interface.
  • the specific implementation manner is as follows:
  • the obtained device type and the version type are queried in the device feature information carried in each field, and the obtained version update time is later than or equal to the corresponding version update time, the corresponding field in the netconf interface packet is obtained. Do nothing
  • the obtained device type and the version type are not found in the device feature information carried in each field, or the version update time is earlier than the corresponding version update time, the corresponding field in the netconf interface packet is deleted. .
  • the acquired device feature information is: device type 1, version model 1, and version update time 3; correspondingly, the device feature information list corresponding to a field in the netconf merge interface is "device type 1, version model 1, Version update time 1; device type 2, version model 2, version update time 2";
  • version model 1 query the device feature information list corresponding to the field, "device type 1, version model 1, version update time 1; device type 2, version model 2, version update time 2"; At this time, a set of matching information (device type 1, version model 1, version update time 1) is queried; then, the version update time 3 is compared with the corresponding version update time 1 in the matching information, if the version update time is 3 nights Or equal to the corresponding version Update time 1, then, no operation is performed on the field in the netconf interface packet; if the version update time 3 is earlier than the corresponding version update time 1, the field in the netconf interface packet is deleted.
  • the corresponding field in the netconf interface packet is defined before the version model of the network device is released, and therefore, the network is If the device supports the field, the device does not need to perform any operation on the corresponding field in the netconf interface packet. If the version update time is earlier than the corresponding version update time, the corresponding field in the netconf interface packet is After the version of the network device is released, the network device does not support the field. You need to delete the corresponding field in the netconf interface packet.
  • the method further includes:
  • Step S103 Send the processed netconf interface packet to the network device.
  • an embodiment of the present invention provides a storage medium including a set of instructions that, when executed, cause at least one processor to perform the operations described above.
  • the device feature information of the network device is obtained when the device is connected to the network device, and the device type is 15K, the version model is 1.00, and the version update time is 2014-01-15.
  • the interface-name field is corresponding to the netconf merge interface.
  • the device feature information list is "15K, 1.00, 2014-01-12; 15K, 2.00, 2014-03-21";
  • the process of processing the netconf interface packet is as follows:
  • the device feature information list corresponding to the interface-name field according to the device type 15K and version 1.00, "15K, 1.00, 2014-01-12; 15K, 2.00, 2014-03-21";
  • the network device supports the interface-name field, and the interface-name field in the netconf interface packet is not required to be performed at this time. Any operation.
  • the embodiment of the present invention further provides a network management device.
  • the principle and method for solving the problem are similar. Therefore, the implementation process and implementation principles of the network management device can refer to the implementation process of the foregoing method. And the description of the implementation principle, the repetition will not be repeated.
  • the network management device provided by the embodiment of the present invention includes: an obtaining module 200 and a processing module 201;
  • the acquiring module 200 is configured to acquire device feature information of the network device when establishing a connection with the network device;
  • the processing module 201 is configured to process the netconf interface packet according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface, when the netconf interface packet is sent to the network device;
  • the device feature information includes a device type, a version model, and a version update time.
  • each part of the network management device described above is divided into various modules or units by functions.
  • the division of the above functional units or modules is only a preferred implementation manner of the embodiments of the present invention, and the division manner of the functional units or modules does not constitute a limitation of the present invention.
  • the network management device further includes: a merge storage module 202 configured to receive a netconf interface of each network device, and merge the netconf interfaces of the network devices according to the compatibility merge rule. Obtaining a netconf merge interface and storing it; each field in the netconf merge interface carries a device supporting all network devices of the field Feature information, device feature information of each network device is different.
  • the network management device further includes: an update module 203, configured to: when receiving the updated networkconf interface of the network device, update the netconf merge interface according to the updated netconf interface.
  • the obtaining module 200, the processing module 201, the merging storage module 202, and the updating module 203 may be implemented by a central processing unit (CPU), a microprocessor (MPU), and a digital network management device.
  • CPU central processing unit
  • MPU microprocessor
  • DSP signal processor
  • FPGA field programmable gate array
  • the mobile terminal includes: a first processor 300, a second processor 301;
  • the first processor 300 is configured to acquire device feature information of the network device when establishing a connection with the network device;
  • the second processor 301 is configured to process the netconf interface packet according to the acquired device feature information and the device feature information carried in each field of the netconf merge interface when the netconf interface packet is sent to the network device. .
  • the network management device further includes: a third processor 302 configured to receive a netconf interface of each network device, and merge the netconf interfaces of the network devices according to the compatibility merge rule.
  • the netconf merge interface is obtained in advance; each field in the netconf merge interface carries device feature information of all network devices supporting the field, and device feature information of each network device is different;
  • the memory 303 is configured to store a netconf merge interface.
  • the network management device further includes: a fourth processor 304: configured to update the netconf merge interface according to the updated netconf interface when receiving the netconf interface after the network device is updated.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种基于网络配置协议(netconf)进行兼容管理的方法,该方法包括:与网络设备建立连接时,获取所述网络设备的设备特征信息;向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。本发明还同时公开了实现所述方法的存储介质和网络管理设备。

Description

基于网络配置协议进行兼容管理的方法、存储介质及设备 技术领域
本发明涉及通信技术领域中的网络管理技术,尤其涉及一种基于网络配置协议进行兼容管理的方法、存储介质及设备。
背景技术
随着软件定义网络(Software Defined Network,SDN)的快速发展,越来越多的网络设备向SDN网络架构演进。在SDN网络架构下,网络设备的控制平面从设备层面迁移到网络管理服务器层面,且通过网络配置协议(netconf)定义网络管理服务器和网络设备之间的接口;这里,网络管理服务器也可称为SDN服务器。
Netconf协议具有一系列的优点,例如:扩展性强、通讯机制简单、使用分层结构等,但Netconf协议在多设备多版本的兼容性管理方面存在缺陷。按照Netconf协议的标准要求,Netconf协议的接收方(设备主机)会对接收到的报文进行严格校验,如果接收方(设备主机)接收到的报文中含有接收方(设备主机)不支持的字段,那么,接收方(设备主机)就会报错,因此,报文发起方(SDN服务器)需要识别出接收方(设备主机)所支持的netconf接口定义,并按照接收方(设备主机)所支持的接口定义下发报文,这就需要SDN服务器针对不同设备类型及不同版本型号的网络设备设置相应的接口报文;但是,如果SDN服务器需要管理大量的不同设备类型及不同版本型号的网络设备,势必会增加SDN服务器的管理复杂度、开发工作量以及维护工作量。
发明内容
为解决现有存在的技术问题,本发明实施例提供了一种基于网络配置协议进行兼容管理的方法、存储介质及设备。
本发明实施例提供了一种基于netconf进行兼容管理的方法,该方法包括:
与网络设备建立连接时,获取所述网络设备的设备特征信息;
向所述网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
上述方案中,所述方法还包括:
接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
上述方案中,所述方法还包括:
接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
上述方案中,所述设备特征信息包括设备类型、版本型号及版本更新时间。
上述方案中,所述根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理,包括:
根据获取的设备类型、版本型号及版本更新时间,查询netconf合并接口中每个字段携带的设备特征信息;
若在每个字段携带的设备特征信息中查询到获取的设备类型及版本类型,且获取的版本更新时间晚于或等于对应的版本更新时间,则不对所述 netconf接口报文中对应的字段进行任何操作;
若在每个字段携带的设备特征信息中未查询到获取的设备类型及版本类型,或获取的版本更新时间早于在对应的版本更新时间,则将所述netconf接口报文中对应的字段删除。
根据上述方法,本发明实施例提供了一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的操作。
根据上述方法,本发明实施例提供了一种网络管理设备,该网络管理设备包括:获取模块、处理模块;其中,
所述获取模块,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
所述处理模块,配置为向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
上述方案中,所述网络管理设备还包括合并存储模块,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
上述方案中,所述网络管理设备还包括更新模块,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
根据上述方法,本发明实施例还提供了一种网络管理设备,该网络管理设备包括:第一处理器、第二处理器;其中,
所述第一处理器,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
所述第二处理器,配置为向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
上述方案中,所述网络管理设备还包括:
第三处理器,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同;
存储器,配置为存储netconf合并接口。
上述方案中,所述网络管理设备还包括:
第四处理器,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
本发明实施例所提供的基于网络配置协议进行兼容管理的方法、存储介质及设备,与网络设备建立连接时,获取所述网络设备的设备特征信息;向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;如此,本发明实施例根据获取的设备特征信息及netconf合并接口中每个字段携带的设备特征信息,来确定netconf接口报文中当前网络设备所支持的字段,不仅能适应多种网络设备的需求,以实现网络设备的兼容管理,还能根据当前网络设备支持的字段对所述netconf接口报文进行相应处理,并且,可进一步将netconf接口报文中当前网络设备不支持的字段删除后发送,进而使网络管理设备实现统一管理,降低维护管理的复杂度。
附图说明
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部 件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本发明实施例基于网络配置协议进行兼容管理的方法实现流程示意图;
图2为本发明实施例网络管理设备的组成结构示意图;
图3为本发明另一实施例网络管理设备的组成结构示意图;
图4为本发明另一实施例网络管理设备的组成结构示意图;
图5为本发明实施例网络管理设备的硬件组成结构图;
图6为本发明另一实施例网络管理设备的硬件组成结构图;
图7为本发明另一实施例网络管理设备的硬件组成结构图。
具体实施方式
本发明实施例中,与网络设备建立连接时,获取所述网络设备的设备特征信息;向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;然后,将处理后的netconf接口报文发送给所述网络设备。
在一个实施例中,本发明实施例的实现方案还包括:接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
下面结合附图对本发明具体实施方式作进一步说明。
本发明实施例提出了一种基于网络配置协议进行兼容管理的方法,如图1所示,该方法包括:
步骤S101:网络管理设备与网络设备建立连接时,获取所述网络设备的设备特征信息。
执行本步骤之前,该方法还包括:
步骤S100:网络管理设备接收各个网络设备发送来的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
这里,由每个netconf接口制定厂商根据netconf协议标准定义每个网络设备的netconf接口,并将定义的netconf接口发送给网络管理设备;具体的,在定义的netconf接口中的每个字段中添加设备特征信息;其中,所述设备特征信息包括设备类型、版本型号及版本更新时间等信息,所述版本更新时间可以用时间戳来表示,所述时间戳是一个用于表示先后顺序唯一识别的特征码,可以是年月日的特征码,例如,2014-01-15,也可以是递增的数字或其他可以表示出先后顺序的特征码;通常,定义的netconf接口以yang文件形式进行存储并发送。
具体的,所述网络管理设备接收到所有网络设备发送的netconf接口后,通过netconf接口合并工具Merge Yang Tool将所有网络设备的netconf接口按照兼容性合并规则进行合并,得到netconf合并接口并存储,具体实现方式如下:
预先定义第一网络设备(设备类型1,版本型号1,版本更新时间1)的netconf接口及第二网络设备(设备类型2,版本型号2,版本更新时间2)的netconf接口,作为待合并的netconf接口;其中,第一网络设备的netconf接口中的interface-name字段定义如下:
Figure PCTCN2015075109-appb-000001
Figure PCTCN2015075109-appb-000002
第二网络设备的netconf接口中的interface-name字段定义如下:
Figure PCTCN2015075109-appb-000003
然后,通过netconf接口合并工具Merge Yang Tool对输入的待合并的netconf接口按照兼容性合并规则进行合并,得到netconf合并接口;其中,netconf合并接口中的interface-name字段定义如下:
Figure PCTCN2015075109-appb-000004
上述netconf合并接口中的interface-name字段定义中,以添加字段属性的方式添加了支持该字段的所有网络设备的设备特征信息,该属性名称可以根据需求进行自定义,例如,上述字段中的属性名称定义为device-availabledate。
这里,netconf接口合并工具Merge Yang Tool首先读取多个网络设备的netconf接口,并对netconf接口进行语法分析,如果发现不符合语法规定的netconf接口定义,则将相应的netconf接口返回给netconf接口制定厂商,要求netconf接口制定厂商修改netconf接口定义,并给出相应的错误提示;如果未发现不符合语法规定的netconf接口定义,则按照兼容性合并规则进行合并。
需要说明的是,netconf接口合并工具Merge Yang Tool的输入是多个并列目录,目录名称为对应网络设备的名称,每个目录下对应一个网络设备定义的netconf接口的yang文件,合并后得到netconf合并接口存储在一个yang文件中。
通常,将兼容性合并规则设置为:将多个网络设备的netconf接口中定义相同的字段进行合并,并在合并后的字段中添加支持该字段的所有网络设备的设备特征信息。
在一个实施例中,如果netconf接口制定厂商更新了netconf接口定义,例如,在netconf接口中新增一个字段或对原有字段进行更新,并将相应的设备特征信息添加到该字段中;那么,会向所述网络管理设备发送更新后的netconf接口;所述网络管理设备接收到更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
步骤S102:向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
这里,netconf接口报文是根据netconf接口制定厂商定义的netconf接口设置。
这里,所述网络管理设备与网络设备建立连接时,在基于netconf的能力交换过程中,获取所述网络设备的设备特征信息,所述设备特征信息包括:设备类型、版本型号及版本更新时间等信息;
在向所述网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理,具体实现方式如下:
根据获取的设备类型、版本型号及版本更新时间,查询netconf合并接口中每个字段携带的设备特征信息;
如果在每个字段携带的设备特征信息中查询到获取的设备类型及版本类型,且获取的版本更新时间晚于或等于对应的版本更新时间,那么,对所述netconf接口报文中对应的字段不进行任何操作;
如果在每个字段携带的设备特征信息中未查询到获取的设备类型及版本类型,或获取的版本更新时间早于对应的版本更新时间,那么,将所述netconf接口报文中对应的字段删除。
例如,假设获取的设备特征信息为:设备类型1,版本型号1,版本更新时间3;相应的,在netconf合并接口中某个字段对应的设备特征信息列表为“设备类型1,版本型号1,版本更新时间1;设备类型2,版本型号2,版本更新时间2”;
首先,根据获取的设备类型1,版本型号1,查询该字段对应的设备特征信息列表“设备类型1,版本型号1,版本更新时间1;设备类型2,版本型号2,版本更新时间2”;此时,查询出一组匹配信息(设备类型1,版本型号1,版本更新时间1);然后,将版本更新时间3与匹配信息中对应的版本更新时间1进行比较,如果版本更新时间3晚于或等于对应的版本 更新时间1,那么,对所述netconf接口报文中该字段不进行任何操作;如果版本更新时间3早于对应的版本更新时间1,那么,将所述netconf接口报文中该字段删除。
需要说明的是,如果获取的版本更新时间晚于或等于对应的版本更新时间,则说明所述netconf接口报文中对应的字段是在网络设备的版本型号发布之前定义的,因此,所述网络设备支持该字段,不需要对所述netconf接口报文中对应的字段进行任何操作;如果获取的版本更新时间早于对应的版本更新时间,则说明所述netconf接口报文中对应的字段是在网络设备的版本型号发布之后定义的,因此,所述网络设备不支持该字段,需要对所述netconf接口报文中对应的字段进行删除操作。
在一个实施例中,该方法还包括:
步骤S103:将处理后的netconf接口报文发送给所述网络设备。
根据上述方法,本发明实施例提供了一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的操作。
为了更清楚地对本发明实施例进行说明,下面以具体实施例对本发明实施例中的数据交换流程进行详细描述。
实施例一
假设与网络设备连接时获取所述网络设备的设备特征信息包括:设备类型为15K,版本型号为1.00,版本更新时间为2014-01-15;相应的,在netconf合并接口中interface-name字段对应的设备特征信息列表为“15K,1.00,2014-01-12;15K,2.00,2014-03-21”;
根据获取的设备特征信息,以及netconf合并接口中interface-name字段对应的设备特征信息列表,对所述netconf接口报文进行处理过程如下:
根据设备类型15K及版本型号1.00,查询interface-name字段对应的设备特征信息列表“15K,1.00,2014-01-12;15K,2.00,2014-03-21”;
查询出一组匹配信息(15K,1.00,2014-01-12);然后,将版本更新时间2014-01-15与匹配信息中对应的版本更新时间2014-01-12进行比较,显然,版本更新时间2014-01-15晚于匹配信息中对应的版本更新时间2014-01-12,因此,所述网络设备支持interface-name字段,此时不需要对netconf接口报文中的interface-name字段进行任何操作。
为实现上述方法,本发明实施例还提供了一种网络管理设备,由于该网络管理设备解决问题的原理与方法相似,因此,网络管理设备的实施过程及实施原理均可以参见前述方法的实施过程及实施原理描述,重复之处不再赘述。
如图2所示,本发明实施例提供的网络管理设备,该网络管理设备包括:获取模块200、处理模块201;其中,
所述获取模块200,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
所述处理模块201,配置为向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;
其中,所述设备特征信息包括设备类型、版本型号及版本更新时间。
为了描述的方便,以上所述网络管理设备的各部分以功能分为各种模块或单元分别描述。以上功能单元或模块的划分方式仅为本发明实施例给出的一种优选实现方式,功能单元或模块的划分方式不构成对本发明的限制。
在一个实施中,如图3所示,所述网络管理设备还包括:合并存储模块202,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备 特征信息,每个网络设备的设备特征信息不同。
在一个实施中,如图4所示,所述网络管理设备还包括:更新模块203,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
在实际应用中,所述获取模块200、所述处理模块201、所述合并存储模块202、所述更新模块203可由位于网络管理设备的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。
基于相同的技术构思,下面举个具体例子说明本发明实施例网络管理设备的组成结构及功能,该网络管理设备解决问题的原理与方法与前面所述相似,重复之处不再赘述。
如图5所示,该移动终端包括:第一处理器300、第二处理器301;其中,
所述第一处理器300,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
所述第二处理器301,配置为向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
在一个实施中,如图6所示,所述网络管理设备还包括:第三处理器302,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同;
存储器303,配置为存储netconf合并接口。
在一个实施中,如图7所示,所述网络管理设备还包括:第四处理器 304,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。

Claims (12)

  1. 一种基于网络配置协议进行兼容管理的方法,所述方法包括:
    与网络设备建立连接时,获取所述网络设备的设备特征信息;
    向所述网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;
    所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
  3. 根据权利要求2所述的方法,其中,所述方法还包括:
    接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
  4. 根据权利要求1至3中任一项所述的方法,其中,所述设备特征信息包括:设备类型、版本型号及版本更新时间。
  5. 根据权利要求4所述的方法,其中,所述根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理,包括:
    根据获取的设备类型、版本型号及版本更新时间,查询netconf合并接口中每个字段携带的设备特征信息;
    若在每个字段携带的设备特征信息中查询到获取的设备类型及版本类型,且获取的版本更新时间晚于或等于对应的版本更新时间,则不对所述netconf接口报文中对应的字段进行任何操作;
    若在每个字段携带的设备特征信息中未查询到获取的设备类型及版本 类型,或获取的版本更新时间早于在对应的版本更新时间,则将所述netconf接口报文中对应的字段删除。
  6. 一种网络管理设备,所述网络管理设备包括:获取模块、处理模块;其中,
    所述获取模块,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
    所述处理模块,配置为向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
  7. 根据权利要求6所述的网络管理设备,其中,所述网络管理设备还包括:
    合并存储模块,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;
    所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。
  8. 根据权利要求6或7所述的网络管理设备,其中,所述网络管理设备还包括:
    更新模块,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
  9. 一种网络管理设备,所述网络管理设备包括:第一处理器、第二处理器;其中,
    所述第一处理器,配置为与网络设备建立连接时,获取所述网络设备的设备特征信息;
    所述第二处理器,配置为向网络设备发送netconf接口报文时,根据获 取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。
  10. 根据权利要求9所述的网络管理设备,其中,所述网络管理设备还包括:
    第三处理器,配置为接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同;
    存储器,配置为存储netconf合并接口。
  11. 根据权利要求9或10所述的网络管理设备,其中,所述网络管理设备还包括:
    第四处理器,配置为在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。
  12. 一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行权利要求1-5中任一项所述的操作。
PCT/CN2015/075109 2014-11-10 2015-03-26 基于网络配置协议进行兼容管理的方法、存储介质及设备 WO2016074412A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410627560.XA CN105656643B (zh) 2014-11-10 2014-11-10 一种基于网络配置协议进行兼容管理的方法及设备
CN201410627560.X 2014-11-10

Publications (1)

Publication Number Publication Date
WO2016074412A1 true WO2016074412A1 (zh) 2016-05-19

Family

ID=55953669

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075109 WO2016074412A1 (zh) 2014-11-10 2015-03-26 基于网络配置协议进行兼容管理的方法、存储介质及设备

Country Status (2)

Country Link
CN (1) CN105656643B (zh)
WO (1) WO2016074412A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391047B (zh) * 2017-08-02 2021-05-28 郑州云海信息技术有限公司 一种存储系统管理的方法及装置
CN113328896B (zh) * 2021-07-01 2022-05-27 中国建设银行股份有限公司 网络设备的配置方法及相关装置
CN115701042A (zh) * 2021-07-29 2023-02-07 华为技术有限公司 配置更新的方法、装置、系统及计算机可读存储介质
CN114500299A (zh) * 2022-02-14 2022-05-13 北京华环电子股份有限公司 光传送网设备的软件定义网络管控方法及系统
CN114205205A (zh) * 2022-02-15 2022-03-18 北京华环电子股份有限公司 一种兼容不同yang模型的南向接口实现方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296124A (zh) * 2008-06-27 2008-10-29 华为技术有限公司 获取设备信息的方法、设备和系统
CN101442469A (zh) * 2007-11-22 2009-05-27 中国移动通信集团公司 下发配置数据的方法、系统及装置
CN102223291A (zh) * 2010-04-14 2011-10-19 华为技术有限公司 实现设备访问方法和设备及通信系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110822B (zh) * 2007-07-06 2011-11-02 华为技术有限公司 基于网络配置协议的事件通知发送方法、系统及设备
CN101345653B (zh) * 2008-09-03 2011-02-09 烽火通信科技股份有限公司 一种图形网管与设备软件的兼容管理方法
US8335171B1 (en) * 2009-09-29 2012-12-18 Juniper Networks, Inc. NETCONF-enabled provisioning in rollback agnostic environment
CN102891768A (zh) * 2012-10-11 2013-01-23 华为技术有限公司 网络管理的方法和网元
CN104113443B (zh) * 2013-04-19 2018-10-02 南京中兴新软件有限责任公司 一种网络设备检测方法、装置及云检测系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442469A (zh) * 2007-11-22 2009-05-27 中国移动通信集团公司 下发配置数据的方法、系统及装置
CN101296124A (zh) * 2008-06-27 2008-10-29 华为技术有限公司 获取设备信息的方法、设备和系统
CN102223291A (zh) * 2010-04-14 2011-10-19 华为技术有限公司 实现设备访问方法和设备及通信系统

Also Published As

Publication number Publication date
CN105656643A (zh) 2016-06-08
CN105656643B (zh) 2020-08-14

Similar Documents

Publication Publication Date Title
US11374826B2 (en) Systems and methods for enhanced monitoring of a distributed computing system
US9672053B2 (en) Service request processing
CN108566290B (zh) 服务配置管理方法、系统、存储介质和服务器
WO2017092347A1 (zh) 一种分布式高速缓存系统中的客户端配置更新方法、设备及系统
US20170070582A1 (en) Network entity discovery and service stitching
WO2016074412A1 (zh) 基于网络配置协议进行兼容管理的方法、存储介质及设备
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
CN104199957B (zh) 一种Redis通用代理的实现方法
US10824372B2 (en) Data recovery method and device, and cloud storage system
JP6521402B2 (ja) KeyValueデータベースのデータテーブルを更新するための方法およびテーブルデータを更新するための装置
CA2896865C (en) Method and system for using a recursive event listener on a node in hierarchical data structure
US20200351190A1 (en) Virtual Probes
WO2020248375A1 (zh) 数据库间数据同步方法、系统、计算机设备及存储介质
CN105574109A (zh) 一种数据库同步方法、同步设备及系统
KR20110111317A (ko) 디바이스 관리 데이터 변경들을 추적하기 위한 방법 및 장치
US10382924B2 (en) M2M node management method and apparatus, and computer storage medium
WO2019223178A1 (zh) 跨平台任务调度方法、系统、计算机设备和存储介质
EP2993825A2 (en) Network entity discovery and service stitching
WO2016086612A1 (zh) 一种单板的软件管理方法、系统及计算机存储介质
CN105205060A (zh) 一种生成word文档的数据库字典的方法及装置
WO2016202030A1 (zh) 资源配置加载方法及装置
US20220256016A1 (en) Monitoring of communication
CN103346911A (zh) 一种唯一定位oam从设备的方法
JP2010191799A (ja) 情報検索システム、情報検索装置、情報検索プログラム及び情報検索方法
CN116594848B (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: 15859099

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

Country of ref document: EP

Kind code of ref document: A1