CN105656643A - Method and equipment for performing compatible management based on network configuration protocol - Google Patents
Method and equipment for performing compatible management based on network configuration protocol Download PDFInfo
- Publication number
- CN105656643A CN105656643A CN201410627560.XA CN201410627560A CN105656643A CN 105656643 A CN105656643 A CN 105656643A CN 201410627560 A CN201410627560 A CN 201410627560A CN 105656643 A CN105656643 A CN 105656643A
- Authority
- CN
- China
- Prior art keywords
- netconf
- interface
- network
- characteristic information
- merging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000008569 process Effects 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 13
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
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接口报文进行处理。本发明还同时公开了一种网络管理设备。
The invention discloses a method for compatible management based on a network configuration protocol (netconf). The method includes: when establishing a connection with a network device, obtaining device characteristic information of the network device; when sending a netconf interface message to the network device, Process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merged interface. The invention also discloses a network management device at the same time.
Description
技术领域technical field
本发明涉及通信技术领域中的网络管理技术,尤其涉及一种基于网络配置协议进行兼容管理的方法及设备。The invention relates to network management technology in the field of communication technology, in particular to a method and equipment for compatible management based on network configuration protocols.
背景技术Background technique
随着软件定义网络(SoftwareDefinedNetwork,SDN)的快速发展,越来越多的网络设备向SDN网络架构演进。在SDN网络架构下,网络设备的控制平面从设备层面迁移到网络管理服务器层面,且通过网络配置协议(netconf)定义网络管理服务器和网络设备之间的接口;这里,网络管理服务器也可称为SDN服务器。With the rapid development of Software Defined Network (Software Defined Network, SDN), more and more network devices are evolving to the SDN network architecture. Under the SDN network architecture, the control plane of the network equipment is migrated from the equipment level to the network management server level, and the interface between the network management server and the network equipment is defined through the network configuration protocol (netconf); here, the network management server can also be called SDN server.
Netconf协议具有一系列的优点,例如,扩展性强、通讯机制简单、使用分层结构等,但Netconf协议在多设备多版本的兼容性管理方面存在缺陷。按照Netconf协议的标准要求,Netconf协议的接收方(设备主机)会对接收到的报文进行严格校验,如果接收方(设备主机)接收到的报文中含有接收方(设备主机)不支持的字段,那么,接收方(设备主机)就会报错,因此,报文发起方(SDN服务器)需要识别出接收方(设备主机)所支持的netconf接口定义,并按照接收方(设备主机)所支持的接口定义下发报文,这就需要SDN服务器针对不同设备类型及不同版本型号的网络设备设置相应的接口报文;但是,如果SDN服务器需要管理大量的不同设备类型及不同版本型号的网络设备,势必会增加SDN服务器的管理复杂度、开发工作量以及维护工作量。The Netconf protocol has a series of advantages, such as strong scalability, simple communication mechanism, and layered structure, etc. However, the Netconf protocol has defects in the compatibility management of multiple devices and multiple versions. According to the standard requirements of the Netconf protocol, the receiver (device host) of the Netconf protocol will strictly verify the received message. If the message received by the receiver (device host) contains field, then the receiver (device host) will report an error. Therefore, the packet originator (SDN server) needs to identify the netconf interface definition supported by the receiver (device host) and follow the The supported interface definition sends messages, which requires the SDN server to set corresponding interface messages for network devices of different device types and different versions; however, if the SDN server needs to manage a large number of networks of different device types and different versions Devices will inevitably increase the management complexity, development workload, and maintenance workload of the SDN server.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种基于网络配置协议进行兼容管理的方法及设备,能够实现网络设备的兼容管理,并降低维护管理的复杂度。In view of this, the embodiments of the present invention expect to provide a method and device for compatible management based on a network configuration protocol, which can realize compatible management of network devices and reduce the complexity of maintenance and management.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明实施例提供了一种基于netconf进行兼容管理的方法,该方法包括:The embodiment of the present invention provides a method for compatible management based on netconf, the method includes:
与网络设备建立连接时,获取所述网络设备的设备特征信息;When establishing a connection with a network device, acquiring device feature information of the network device;
向所述网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。When sending the netconf interface message to the network device, process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merged interface.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。Receive the netconf interfaces of each network device, merge the netconf interfaces of each network device according to the compatibility merging rules, and obtain and store the netconf merging interfaces in advance; each field in the netconf merging interface carries all network devices that support this field The device characteristic information of each network device is different.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。When the updated netconf interface of the network device is received, the netconf merged interface is updated according to the updated netconf interface.
上述方案中,所述设备特征信息包括设备类型、版本型号及版本更新时间。In the above solution, the device feature information includes device type, version model and version update time.
上述方案中,所述根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理,包括:In the above solution, the netconf interface message is processed according to the acquired device feature information and the device feature information carried in each field in the netconf merge interface, including:
根据获取的设备类型、版本型号及版本更新时间,查询netconf合并接口中每个字段携带的设备特征信息;According to the obtained device type, version model and version update time, query the device feature information carried in each field in the netconf merge interface;
若在每个字段携带的设备特征信息中查询到获取的设备类型及版本类型,且获取的版本更新时间晚于或等于对应的版本更新时间,则不对所述netconf接口报文中对应的字段进行任何操作;If the obtained device type and version type are queried in the device characteristic information carried in each field, and the obtained version update time is later than or equal to the corresponding version update time, then the corresponding field in the netconf interface message will not be updated. any operation;
若在每个字段携带的设备特征信息中未查询到获取的设备类型及版本类型,或获取的版本更新时间早于在对应的版本更新时间,则将所述netconf接口报文中对应的字段删除。If the obtained device type and version type are not found in the device characteristic information carried in each field, or the obtained version update time is earlier than the corresponding version update time, delete the corresponding field in the netconf interface message .
根据上述方法,本发明实施例提供了一种网络管理设备,该网络管理设备包括:获取模块、处理模块;其中,According to the above method, an embodiment of the present invention provides a network management device, the network management device includes: an acquisition module and a processing module; wherein,
所述获取模块,用于与网络设备建立连接时,获取所述网络设备的设备特征信息;The obtaining module is configured to obtain device characteristic information of the network device when establishing a connection with the network device;
所述处理模块,用于向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。The processing module is configured to process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merge interface when sending the netconf interface message to the network device.
上述方案中,所述网络管理设备还包括合并存储模块,用于接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。In the above solution, the network management device also includes a merge storage module, which is used to receive the netconf interfaces of each network device, merge the netconf interfaces of each network device according to the compatibility merge rules, and obtain and store the netconf merge interfaces in advance; Each field in the netconf merge interface carries the device characteristic information of all network devices that support this field, and the device characteristic information of each network device is different.
上述方案中,所述网络管理设备还包括更新模块,用于在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。In the above solution, 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 netconf interface of the network device.
根据上述方法,本发明实施例还提供了一种网络管理设备,该网络管理设备包括:第一处理器、第二处理器;其中,According to the above method, an embodiment of the present invention further provides a network management device, where the network management device includes: a first processor and a second processor; wherein,
所述第一处理器,用于与网络设备建立连接时,获取所述网络设备的设备特征信息;The first processor is configured to acquire device feature information of the network device when establishing a connection with the network device;
所述第二处理器,用于向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。The second processor is configured to process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merge interface when sending the netconf interface message to the network device.
上述方案中,所述网络管理设备还包括:In the above solution, the network management device further includes:
第三处理器,用于接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同;The third processor is used to receive the netconf interfaces of each network device, merge the netconf interfaces of each network device according to the compatibility merging rules, and obtain the netconf merging interface in advance; each field in the netconf merging interface carries information supporting the The device characteristic information of all network devices in the field, and the device characteristic information of each network device is different;
存储器,用于存储netconf合并接口。Storage for storing netconf merged interfaces.
上述方案中,所述网络管理设备还包括:In the above solution, the network management device further includes:
第四处理器,用于在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。The fourth processor is configured to update the netconf merge interface according to the updated netconf interface when receiving the updated netconf interface of the network device.
本发明实施例所提供的基于网络配置协议进行兼容管理的方法及设备,与网络设备建立连接时,获取所述网络设备的设备特征信息;向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;如此,本发明实施例根据获取的设备特征信息及netconf合并接口中每个字段携带的设备特征信息,来确定netconf接口报文中当前网络设备所支持的字段,不仅能适应多种网络设备的需求,以实现网络设备的兼容管理,还能根据当前网络设备支持的字段对所述netconf接口报文进行相应处理,并且,可进一步将netconf接口报文中当前网络设备不支持的字段删除后发送,进而使网络管理设备实现统一管理,降低维护管理的复杂度。The method and device for compatible management based on the network configuration protocol provided by the embodiments of the present invention obtain the device feature information of the network device when establishing a connection with the network device; when sending a netconf interface message to the network device, according to the obtained device The feature information and the device feature information carried by each field in the netconf merge interface are used to process the netconf interface message; in this way, the embodiment of the present invention is based on the obtained device feature information and the device feature carried by each field in the netconf merge interface information to determine the fields supported by the current network device in the netconf interface message, which can not only meet the needs of various network devices to achieve compatible management of network devices, but also report the netconf interface according to the fields supported by the current network device The text is processed accordingly, and the fields in the netconf interface message that are not supported by the current network device can be further deleted and sent, so that the network management device can realize unified management and reduce the complexity of maintenance and management.
附图说明Description of drawings
图1为本发明实施例基于网络配置协议进行兼容管理的方法实现流程示意图;FIG. 1 is a schematic diagram of an implementation process of a method for compatible management based on a network configuration protocol according to an embodiment of the present invention;
图2为本发明实施例网络管理设备的组成结构示意图;FIG. 2 is a schematic diagram of the composition and structure of a network management device according to an embodiment of the present invention;
图3为本发明实施例网络管理设备的硬件组成结构图。FIG. 3 is a structural diagram of hardware components of a network management device according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例中,与网络设备建立连接时,获取所述网络设备的设备特征信息;向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;然后,将处理后的netconf接口报文发送给所述网络设备。In the embodiment of the present invention, when establishing a connection with a network device, obtain the device feature information of the network device; feature information, processing the netconf interface message; and then sending the processed netconf interface message to the network device.
进一步地,本发明实施例的实现方案还包括:接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。Further, the implementation scheme of the embodiment of the present invention also includes: receiving the netconf interfaces of each network device, merging the netconf interfaces of each network device according to the compatibility merging rules, and obtaining and storing the netconf merging interface in advance; the netconf merging interface Each field carries device characteristic information of all network devices supporting this field, and the device characteristic information of each network device is different.
下面结合附图对本发明具体实施方式作进一步说明。The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
本发明实施例提出了一种基于网络配置协议进行兼容管理的方法,如图1所示,该方法包括:The embodiment of the present invention proposes a method for compatible management based on a network configuration protocol, as shown in FIG. 1 , the method includes:
步骤S101:网络管理设备与网络设备建立连接时,获取所述网络设备的设备特征信息。Step S101: When establishing a connection with a network device, the network management device acquires device characteristic information of the network device.
执行本步骤之前,该方法还包括:Before performing this step, the method also includes:
步骤S100:网络管理设备接收各个网络设备发送来的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。Step S100: The network management device receives the netconf interface sent by each network device, merges the netconf interfaces of each network device according to the compatibility merging rules, and obtains and stores the netconf merging interface in advance; each field in the netconf merging interface carries There are device characteristic information of all network devices that support this field, and the device characteristic information of each network device is different.
这里,由每个netconf接口制定厂商根据netconf协议标准定义每个网络设备的netconf接口,并将定义的netconf接口发送给网络管理设备;具体的,在定义的netconf接口中的每个字段中添加设备特征信息;其中,所述设备特征信息包括设备类型、版本型号及版本更新时间等信息,所述版本更新时间可以用时间戳来表示,所述时间戳是一个用于表示先后顺序唯一识别的特征码,可以是年月日的特征码,例如,2014-01-15,也可以是递增的数字或其他可以表示出先后顺序的特征码;通常,定义的netconf接口以yang文件形式进行存储并发送。Here, each netconf interface manufacturer defines the netconf interface of each network device according to the netconf protocol standard, and sends the defined netconf interface to the network management device; specifically, add the device to each field in the defined netconf interface Feature information; wherein, the device feature information includes information such as device type, version model, and version update time, and the version update time can be represented by a timestamp, which is a unique identification feature used to represent the sequence Code, which can be the feature code of year, month, day, for example, 2014-01-15, or it can also be an increasing number or other feature codes that can indicate the sequence; usually, the defined netconf interface is stored and sent in the form of a yang file .
具体的,所述网络管理设备接收到所有网络设备发送的netconf接口后,通过netconf接口合并工具MergeYangTool将所有网络设备的netconf接口按照兼容性合并规则进行合并,得到netconf合并接口并存储,具体实现方式如下:Specifically, after the network management device receives the netconf interfaces sent by all network devices, it uses the netconf interface merging tool MergeYangTool to merge the netconf interfaces of all network devices according to the compatibility merging rules to obtain and store the netconf merging interfaces. The specific implementation method as follows:
具体的,预先定义第一网络设备(设备类型1,版本型号1,版本更新时间1)的netconf接口及第二网络设备(设备类型2,版本型号2,版本更新时间2)的netconf接口,作为待合并的netconf接口;其中,第一网络设备的netconf接口中的interface-name字段定义如下:Specifically, 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) are predefined, as The netconf interface to be merged; wherein, the interface-name field in the netconf interface of the first network device is defined as follows:
然后,通过netconf接口合并工具MergeYangTool对输入的待合并的netconf接口按照兼容性合并规则进行合并,得到netconf合并接口;其中,netconf合并接口中的interface-name字段定义如下:Then, use the netconf interface merging tool MergeYangTool to merge the input netconf interfaces to be merged according to the compatibility merging rules to obtain the netconf merging interface; the interface-name field in the netconf merging interface is defined as follows:
上述netconf合并接口中的interface-name字段定义中,以添加字段属性的方式添加了支持该字段的所有网络设备的设备特征信息,该属性名称可以根据需求进行自定义,例如,上述字段中的属性名称定义为device-availabledate。In the definition of the interface-name field in the above-mentioned netconf merged interface, the device feature information of all network devices that support this field is added by adding field attributes. The attribute name can be customized according to requirements, for example, the attributes in the above fields The name is defined as device-availabledate.
这里,netconf接口合并工具MergeYangTool首先读取多个网络设备的netconf接口,并对netconf接口进行语法分析,如果发现不符合语法规定的netconf接口定义,则将相应的netconf接口返回给netconf接口制定厂商,要求netconf接口制定厂商修改netconf接口定义,并给出相应的错误提示;如果未发现不符合语法规定的netconf接口定义,则按照兼容性合并规则进行合并。Here, the netconf interface merging tool MergeYangTool first reads the netconf interfaces of multiple network devices, and performs grammatical analysis on the netconf interfaces. If a netconf interface definition that does not conform to the grammatical requirements is found, the corresponding netconf interface is returned to the netconf interface manufacturer. Require the netconf interface manufacturer to modify the netconf interface definition, and give a corresponding error message; if no netconf interface definition that does not conform to the grammatical requirements is found, it will be merged according to the compatibility merge rules.
需要说明的是,netconf接口合并工具MergeYangTool的输入是多个并列目录,目录名称为对应网络设备的名称,每个目录下对应一个网络设备定义的netconf接口的yang文件,合并后得到netconf合并接口存储在一个yang文件中。It should be noted that the input of the netconf interface merging tool MergeYangTool is multiple parallel directories. The directory name is the name of the corresponding network device. Each directory corresponds to a yang file of the netconf interface defined by the network device. After merging, the netconf merged interface storage is obtained. in a yang file.
通常,将兼容性合并规则设置为:将多个网络设备的netconf接口中定义相同的字段进行合并,并在合并后的字段中添加支持该字段的所有网络设备的设备特征信息。Usually, the compatibility merging rule is set as: merging the same fields defined in the netconf interfaces of multiple network devices, and adding device characteristic information of all network devices supporting the field to the merged field.
进一步地,如果netconf接口制定厂商更新了netconf接口定义,例如,在netconf接口中新增一个字段或对原有字段进行更新,并将相应的设备特征信息添加到该字段中;那么,会向所述网络管理设备发送更新后的netconf接口;所述网络管理设备接收到更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。Furthermore, if the netconf interface manufacturer updates the definition of the netconf interface, for example, adding a new field or updating the original field in the netconf interface, and adding the corresponding device characteristic information to this field; then, all The network management device sends the updated netconf interface; when the network management device receives the updated netconf interface, it updates the netconf merge interface according to the updated netconf interface.
步骤S102:向网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。Step S102: When sending a netconf interface message to a network device, process the netconf interface message according to the obtained device feature information and the device feature information carried in each field in the netconf combined interface.
这里,netconf接口报文是根据netconf接口制定厂商定义的netconf接口设置。Here, the netconf interface message is the netconf interface setting defined by the netconf interface formulation manufacturer.
这里,所述网络管理设备与网络设备建立连接时,在基于netconf的能力交换过程中,获取所述网络设备的设备特征信息,所述设备特征信息包括设备类型、版本型号及版本更新时间等信息;Here, when the network management device establishes a connection with the network device, it obtains the device feature information of the network device during the netconf-based capability exchange process, and the device feature information includes information such as device type, version model, and version update time. ;
在向所述网络设备发送netconf接口报文时,根据获取的设备特征信息以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理,具体实现方式如下:When sending the netconf interface message to the network device, the netconf interface message is processed according to the obtained device feature information and the device feature information carried in each field in the netconf merged interface. The specific implementation is as follows:
根据获取的设备类型、版本型号及版本更新时间,查询netconf合并接口中每个字段携带的设备特征信息;According to the obtained device type, version model and version update time, query the device feature information carried in each field in the netconf merge interface;
如果在每个字段携带的设备特征信息中查询到获取的设备类型及版本类型,且获取的版本更新时间晚于或等于对应的版本更新时间,那么,对所述netconf接口报文中对应的字段不进行任何操作;If the obtained device type and version type are queried in the device characteristic information carried in each field, and the obtained version update time is later than or equal to the corresponding version update time, then the corresponding field in the netconf interface message Do nothing;
如果在每个字段携带的设备特征信息中未查询到获取的设备类型及版本类型,或获取的版本更新时间早于对应的版本更新时间,那么,将所述netconf接口报文中对应的字段删除。If the obtained device type and version type are not found in the device characteristic information carried in each field, or the obtained version update time is earlier than the corresponding version update time, then delete the corresponding field in the netconf interface message .
具体的,假设获取的设备特征信息为:设备类型1,版本型号1,版本更新时间3;相应的,在netconf合并接口中某个字段对应的设备特征信息列表为“设备类型1,版本型号1,版本更新时间1;设备类型2,版本型号2,版本更新时间2”;Specifically, assume that the obtained device feature information is: device type 1, version model 1, version update time 3; correspondingly, the list of device feature information 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";
首先,根据获取的设备类型1,版本型号1,查询该字段对应的设备特征信息列表“设备类型1,版本型号1,版本更新时间1;设备类型2,版本型号2,版本更新时间2”;此时,查询出一组匹配信息(设备类型1,版本型号1,版本更新时间1);然后,将版本更新时间3与匹配信息中对应的版本更新时间1进行比较,如果版本更新时间3晚于或等于对应的版本更新时间1,那么,对所述netconf接口报文中该字段不进行任何操作;如果版本更新时间3早于对应的版本更新时间1,那么,将所述netconf接口报文中该字段删除。First, according to the obtained device type 1 and version model 1, query the device feature information list corresponding to this field "device type 1, version model 1, version update time 1; device type 2, version model 2, version update time 2"; At this point, 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 3 is late is equal to or equal to the corresponding version update time 1, then no operation is performed on this field in the netconf interface message; if the version update time 3 is earlier than the corresponding version update time 1, then the netconf interface message is This field is deleted.
需要说明的是,如果获取的版本更新时间晚于或等于对应的版本更新时间,则说明所述netconf接口报文中对应的字段是在网络设备的版本型号发布之前定义的,因此,所述网络设备支持该字段,不需要对所述netconf接口报文中对应的字段进行任何操作;如果获取的版本更新时间早于对应的版本更新时间,则说明所述netconf接口报文中对应的字段是在网络设备的版本型号发布之后定义的,因此,所述网络设备不支持该字段,需要对所述netconf接口报文中对应的字段进行删除操作。It should be noted that if the obtained version update time is later than or equal to the corresponding version update time, it means that the corresponding field in the netconf interface message is defined before the version model of the network device is released. Therefore, the network The device supports this field, and there is no need to perform any operations on the corresponding field in the netconf interface message; if the obtained version update time is earlier than the corresponding version update time, it means that the corresponding field in the netconf interface message is in the The version model of the network device is defined after release, therefore, the network device does not support this field, and the corresponding field in the netconf interface message needs to be deleted.
进一步地,该方法还包括:Further, the method also includes:
步骤S103:将处理后的netconf接口报文发送给所述网络设备。Step S103: Send the processed netconf interface packet to the network device.
为了更清楚地对本发明实施例进行说明,下面以具体实施例对本发明实施例中的数据交换流程进行详细描述。In order to describe the embodiment of the present invention more clearly, the data exchange process in the embodiment of the present invention will be described in detail below using specific embodiments.
实施例一Embodiment one
假设与网络设备连接时获取所述网络设备的设备特征信息包括:设备类型为15K,版本型号为1.00,版本更新时间为2014-01-15;相应的,在netconf合并接口中interface-name字段对应的设备特征信息列表为“15K,1.00,2014-01-12;15K,2.00,2014-03-21”;Assume that when connecting to a network device, the device feature information of the network device obtained includes: the device type is 15K, the version model is 1.00, and the version update time is 2014-01-15; correspondingly, the interface-name field in the netconf merged interface corresponds to The device feature information list is "15K, 1.00, 2014-01-12; 15K, 2.00, 2014-03-21";
根据获取的设备特征信息,以及netconf合并接口中interface-name字段对应的设备特征信息列表,对所述netconf接口报文进行处理过程如下:According to the obtained device feature information and the list of device feature information corresponding to the interface-name field in the netconf merged interface, the process of processing the netconf interface message is as follows:
根据设备类型15K及版本型号1.00,查询interface-name字段对应的设备特征信息列表“15K,1.00,2014-01-12;15K,2.00,2014-03-21”;According to the device type 15K and version model 1.00, query the device feature information list corresponding to the interface-name field "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字段进行任何操作。Query a set of matching information (15K, 1.00, 2014-01-12); then, compare the version update time 2014-01-15 with the corresponding version update time 2014-01-12 in the matching information, obviously, the version update The time 2014-01-15 is later than the corresponding version update time 2014-01-12 in the matching information. Therefore, the network device supports the interface-name field. any operation.
为实现上述方法,本发明实施例还提供了一种网络管理设备,由于该网络管理设备解决问题的原理与方法相似,因此,网络管理设备的实施过程及实施原理均可以参见前述方法的实施过程及实施原理描述,重复之处不再赘述。In order to implement the above method, the embodiment of the present invention also provides a network management device. Since the principle and method of solving the problem of the network management device are similar, the implementation process and implementation principle of the network management device can refer to the implementation process of the aforementioned method And the description of the implementation principle, the repetition will not be repeated.
如图2所示,本发明实施例提供的网络管理设备,该网络管理设备包括:获取模块200、处理模块201;其中,As shown in FIG. 2, the network management device provided by the embodiment of the present invention includes: an acquisition module 200 and a processing module 201; wherein,
所述获取模块200,用于与网络设备建立连接时,获取所述网络设备的设备特征信息;The obtaining module 200 is configured to obtain device feature information of the network device when establishing a connection with the network device;
所述处理模块201,用于向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理;The processing module 201 is configured to process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merge interface when sending the netconf interface message to the network device;
其中,所述设备特征信息包括设备类型、版本型号及版本更新时间。Wherein, the device feature information includes device type, version model and version update time.
为了描述的方便,以上所述网络管理设备的各部分以功能分为各种模块或单元分别描述。以上功能单元或模块的划分方式仅为本发明实施例给出的一种优选实现方式,功能单元或模块的划分方式不构成对本发明的限制。For the convenience of description, each part of the above-mentioned network management device is divided into various modules or units by function and described separately. The above division manner of functional units or modules is only a preferred implementation manner given by the embodiment of the present invention, and the division manner of functional units or modules does not constitute a limitation of the present invention.
具体实施中,所述网络管理设备还包括合并存储模块202,用于接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口并存储;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同。In a specific implementation, the network management device also includes a merge storage module 202, which is used to receive the netconf interfaces of each network device, merge the netconf interfaces of each network device according to the compatibility merge rules, and obtain and store the netconf merge interfaces in advance; Each field in the above-mentioned netconf merge interface carries device characteristic information of all network devices supporting this field, and the device characteristic information of each network device is different.
具体实施中,所述网络管理设备还包括更新模块203,用于在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。In a specific implementation, the network management device further includes an update module 203, configured to update the netconf merge interface according to the updated netconf interface when receiving the updated netconf interface of the network device.
在实际应用中,所述获取模块200、所述处理模块201、所述合并存储模块202、所述更新模块203可由位于网络管理设备的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。In practical applications, the acquisition module 200, the processing module 201, the combined storage module 202, and the update module 203 can be composed of a central processing unit (CPU), a microprocessor (MPU), a digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) Implementation.
基于相同的技术构思,下面举个具体例子说明本发明实施例网络管理设备的组成结构及功能,该网络管理设备解决问题的原理与方法与前面所述相似,重复之处不再赘述。Based on the same technical concept, a specific example is given below to illustrate the composition and function of the network management device in the embodiment of the present invention. The principle and method of solving the problem of the network management device are similar to those described above, and repeated descriptions will not be repeated.
如图3所示,该移动终端包括:第一处理器300、第二处理器301;其中,As shown in FIG. 3, the mobile terminal includes: a first processor 300 and a second processor 301; wherein,
所述第一处理器300,用于与网络设备建立连接时,获取所述网络设备的设备特征信息;The first processor 300 is configured to acquire device feature information of the network device when establishing a connection with the network device;
所述第二处理器301,用于向网络设备发送netconf接口报文时,根据获取的设备特征信息,以及netconf合并接口中每个字段携带的设备特征信息,对所述netconf接口报文进行处理。The second processor 301 is configured to process the netconf interface message according to the acquired device feature information and the device feature information carried in each field in the netconf merge interface when sending the netconf interface message to the network device .
具体实施中,所述网络管理设备还包括第三处理器302,用于接收各个网络设备的netconf接口,将各个网络设备的netconf接口按照兼容性合并规则进行合并,预先得到netconf合并接口;所述netconf合并接口中每个字段均携带有支持该字段的所有网络设备的设备特征信息,每个网络设备的设备特征信息不同;In a specific implementation, the network management device further includes a third processor 302, configured to receive the netconf interfaces of each network device, and merge the netconf interfaces of each network device according to compatibility merging rules to obtain the netconf merging interface in advance; Each field in the netconf merge interface carries the device feature information of all network devices that support this field, and the device feature information of each network device is different;
存储器303,用于存储netconf合并接口。The memory 303 is used for storing netconf merged interfaces.
具体实施中,所述网络管理设备还包括第四处理器304,用于在接收到网络设备更新后的netconf接口时,根据更新后的netconf接口更新netconf合并接口。In a specific implementation, 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 updated netconf interface of the network device.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410627560.XA CN105656643B (en) | 2014-11-10 | 2014-11-10 | A method and device for compatible management based on network configuration protocol |
PCT/CN2015/075109 WO2016074412A1 (en) | 2014-11-10 | 2015-03-26 | Compatibility administration method based on network configuration protocol, storage medium and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410627560.XA CN105656643B (en) | 2014-11-10 | 2014-11-10 | A method and device for compatible management based on network configuration protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105656643A true CN105656643A (en) | 2016-06-08 |
CN105656643B CN105656643B (en) | 2020-08-14 |
Family
ID=55953669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410627560.XA Active CN105656643B (en) | 2014-11-10 | 2014-11-10 | A method and device for compatible management based on network configuration protocol |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105656643B (en) |
WO (1) | WO2016074412A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391047A (en) * | 2017-08-02 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method and device of system management memory |
CN113328896A (en) * | 2021-07-01 | 2021-08-31 | 中国建设银行股份有限公司 | Configuration method of network equipment and related device |
CN114205205A (en) * | 2022-02-15 | 2022-03-18 | 北京华环电子股份有限公司 | Southbound interface implementation method and device compatible with different YANG models |
CN114500299A (en) * | 2022-02-14 | 2022-05-13 | 北京华环电子股份有限公司 | Software defined network control method and system for optical transport network equipment |
WO2023005858A1 (en) * | 2021-07-29 | 2023-02-02 | 华为技术有限公司 | Configuration updating method and apparatus, and system and computer-readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110822A (en) * | 2007-07-06 | 2008-01-23 | 华为技术有限公司 | Event notification sending method, system and device based on network configuration protocol |
CN101345653A (en) * | 2008-09-03 | 2009-01-14 | 烽火通信科技股份有限公司 | Compatible management method for graphic network manager and equipment software |
CN101442469A (en) * | 2007-11-22 | 2009-05-27 | 中国移动通信集团公司 | Method, system and apparatus for down distributing configuration data |
CN102223291A (en) * | 2010-04-14 | 2011-10-19 | 华为技术有限公司 | Method, device and communication system for realizing device access |
US8335171B1 (en) * | 2009-09-29 | 2012-12-18 | Juniper Networks, Inc. | NETCONF-enabled provisioning in rollback agnostic environment |
CN102891768A (en) * | 2012-10-11 | 2013-01-23 | 华为技术有限公司 | Method and network element for network management |
CN104113443A (en) * | 2013-04-19 | 2014-10-22 | 中兴通讯股份有限公司 | Network equipment detection method, device and cloud detection system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296124B (en) * | 2008-06-27 | 2012-04-04 | 华为技术有限公司 | Method for acquiring equipment information |
-
2014
- 2014-11-10 CN CN201410627560.XA patent/CN105656643B/en active Active
-
2015
- 2015-03-26 WO PCT/CN2015/075109 patent/WO2016074412A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110822A (en) * | 2007-07-06 | 2008-01-23 | 华为技术有限公司 | Event notification sending method, system and device based on network configuration protocol |
EP2166699A4 (en) * | 2007-07-06 | 2010-09-22 | Huawei Tech Co Ltd | METHOD AND SYSTEM FOR SENDING EVENT NOTIFICATIONS BASED ON THE NETCONF PROTOCOL |
CN101442469A (en) * | 2007-11-22 | 2009-05-27 | 中国移动通信集团公司 | Method, system and apparatus for down distributing configuration data |
CN101345653A (en) * | 2008-09-03 | 2009-01-14 | 烽火通信科技股份有限公司 | Compatible management method for graphic network manager and equipment software |
US8335171B1 (en) * | 2009-09-29 | 2012-12-18 | Juniper Networks, Inc. | NETCONF-enabled provisioning in rollback agnostic environment |
CN102223291A (en) * | 2010-04-14 | 2011-10-19 | 华为技术有限公司 | Method, device and communication system for realizing device access |
CN102891768A (en) * | 2012-10-11 | 2013-01-23 | 华为技术有限公司 | Method and network element for network management |
CN104113443A (en) * | 2013-04-19 | 2014-10-22 | 中兴通讯股份有限公司 | Network equipment detection method, device and cloud detection system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391047A (en) * | 2017-08-02 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method and device of system management memory |
CN113328896A (en) * | 2021-07-01 | 2021-08-31 | 中国建设银行股份有限公司 | Configuration method of network equipment and related device |
CN113328896B (en) * | 2021-07-01 | 2022-05-27 | 中国建设银行股份有限公司 | Configuration method of network equipment and related device |
WO2023005858A1 (en) * | 2021-07-29 | 2023-02-02 | 华为技术有限公司 | Configuration updating method and apparatus, and system and computer-readable storage medium |
CN114500299A (en) * | 2022-02-14 | 2022-05-13 | 北京华环电子股份有限公司 | Software defined network control method and system for optical transport network equipment |
CN114205205A (en) * | 2022-02-15 | 2022-03-18 | 北京华环电子股份有限公司 | Southbound interface implementation method and device compatible with different YANG models |
Also Published As
Publication number | Publication date |
---|---|
WO2016074412A1 (en) | 2016-05-19 |
CN105656643B (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763129B (en) | A kind of PCIe equipment management method and device | |
CN107800565B (en) | Inspection method, inspection device, inspection system, computer equipment and storage medium | |
JP6521402B2 (en) | Method for updating data table of KeyValue database and apparatus for updating table data | |
KR101389101B1 (en) | Method and apparatus for tracking device management data changes | |
CN105656643B (en) | A method and device for compatible management based on network configuration protocol | |
CN105991720A (en) | Configuration change method and device | |
CN102917057A (en) | Individualized application pushing system and method | |
CN110460668B (en) | File uploading method and device, computer equipment and storage medium | |
US10382924B2 (en) | M2M node management method and apparatus, and computer storage medium | |
CN113467832A (en) | Equipment control processing method, device, storage medium and electronic device | |
CN111061745A (en) | Data synchronization system and method | |
CN111008220A (en) | Method and device for dynamic identification of data source, storage medium and electronic device | |
CN104205730B (en) | Network element data access method, Virtual NE, network management server and NMS | |
CN104022896B (en) | A kind of configuring management method, device and the network equipment | |
CN107800738B (en) | Data updating method and device | |
CN109905260A (en) | Device configuration method, management device and service processing device | |
CN109391658B (en) | Account data synchronization method and equipment, storage medium and terminal thereof | |
CN105516372A (en) | Filename processing method and device and server | |
CN111352993B (en) | Cross-platform data synchronization method and device, and electronic device | |
CN110598072B (en) | Feature data aggregation method and device | |
CN112738019A (en) | Method and device for displaying device information, storage medium and electronic device | |
EP3174322A1 (en) | Method for deleting notification resource, and common service entity | |
WO2015131714A1 (en) | Method for data source restoration, packet transport platform and storage medium | |
CN106462421A (en) | Telecommunication device and method for updating software in a telecommunication device | |
CN103970860B (en) | Method, device and system for processing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |