(19)
(11)EP 3 432 517 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
13.05.2020 Bulletin 2020/20

(21)Application number: 17781832.5

(22)Date of filing:  06.04.2017
(51)Int. Cl.: 
H04L 12/24  (2006.01)
H04L 12/781  (2013.01)
(86)International application number:
PCT/CN2017/079558
(87)International publication number:
WO 2017/177856 (19.10.2017 Gazette  2017/42)

(54)

DEVICE CONFIGURATION METHOD AND APPARATUS BASED ON NETWORK CONFIGURATION PROTOCOL

VORRICHTUNGSKONFIGURATIONSVERFAHREN UND -EINRICHTUNG AUF BASIS EINES NETZWERKKONFIGURATIONSPROTOKOLLS

PROCÉDÉ ET APPAREIL DE CONFIGURATION DE DISPOSITIF BASÉS SUR UN PROTOCOLE DE CONFIGURATION DE RÉSEAU


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(30)Priority: 15.04.2016 CN 201610234776

(43)Date of publication of application:
23.01.2019 Bulletin 2019/04

(73)Proprietor: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • ZHANG, Lin
    Shenzhen Guangdong 518129 (CN)
  • YANG, Jishang
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Pfenning, Meinig & Partner mbB 
Patent- und Rechtsanwälte Theresienhöhe 11a
80339 München
80339 München (DE)


(56)References cited: : 
CN-A- 102 223 291
CN-A- 103 701 653
CN-A- 104 243 198
US-A1- 2012 110 028
US-A1- 2015 019 991
CN-A- 103 281 197
CN-A- 104 065 514
CN-A- 104 883 266
US-A1- 2012 110 028
  
  • XU, HUI ET AL.: 'Data Modeling for NETCONF-Based Network Management: XML Schema or YANG' 2008 11 TH IEEE INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY (ICCT2008) PRECEDINGS 10 November 2008, XP031374835
  • CHANG, YA'NAN ET AL.: 'Research and Implementation of YANG-based NETCONF Data Modelling' CENTRAL CHINA NORMAL UNIVERSITY MASTER'S THESIS 01 May 2009, XP009509685
  
Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


Description

TECHNICAL FIELD



[0001] This application relates to the field of communications technologies, and in particular, to a device configuration method and apparatus that are based on Network Configuration Protocol.

BACKGROUND



[0002] Network Configuration Protocol (English: Network Configuration Protocol, NETCONF for short) is a network management protocol that is based on Extensible Markup Language (English: Extensible Markup Language, XML for short). NETCONF uses a four-layer architecture, including: a Secure Transport (English: Secure Transport) layer, a Messages (English: Messages) layer, an Operations (English: Operations) layer, and a Content (English: Content) layer. At present, the Secure Transport layer, the Messages layer, and the Operations layer of NETCONF have been defined in a standard, but the Content layer has no standard data modeling language or related data model. This is an important factor constraining actual popularization and application of NETCONF.

[0003] In recent years, the YANG (English: Yet Another Next Generation) data modeling language (English: data modeling language) is used as a standard NETCONF data modeling language by the Internet Engineering Task Force (English: The Internet Engineering Task Force, IETF for short). The YANG data modeling language can be used to not only establish a model of configuration data (English: model configuration data), but also establish models of various operations and notifications, and therefore has good readability and scalability. At present, the YANG language can be used to perform data modeling for the Content layer, the Operations layer, and the Messages layer of NETCONF.

[0004] NETCONF uses a client/server (English: Client/Server, C/S for short) architecture. As shown in FIG. 1, FIG. 1 is a schematic diagram of a relationship between NETCONF and YANG. A NETCONF client and a NETCONF server communicate with each other based on NETCONF. The NETCONF client uses the YANG language to establish a model of configuration data, and uses XML to encode configuration data obtained after modeling, to obtain an XML file. A NETCONF message delivered by the NETCONF client to the NETCONF server carries the XML file. After receiving the NETCONF message from the NETCONF client, the NETCONF server performs parsing processing on content of the message to obtain the configuration data.

[0005] As shown in FIG. 2, FIG. 2 is a schematic diagram of a device cascading scenario. A network management device 21 is connected to a managed device 22, and the managed device 22 is connected to several lower-level devices 23. The network management device 21 serves as a NETCONF client, and the managed device 22 serves as a NETCONF server. The network management device 21 and the managed device 22 communicate with each other based on NETCONF. The managed device 22 and the lower-level device 23 may communicate with each other based on any configuration management protocol. For example, the managed device 22 and the lower-level device 23 communicate with each other based on Control and Provisioning of Wireless Access Points (English: Control and Provisioning of Wireless Access Points, CAPWAP for short). The network management device 21 configures the managed device 22 and the lower-level device 23 by using NETCONF. The lower-level device 23 is not directly connected to the network management device 21, but receives, by using CAPWAP, configuration data sent by the managed device 22. The managed device 22 receives configuration data sent by the network management device 21, and the configuration data includes configuration data for the managed device 22 and configuration data for the lower-level device 23. For the configuration data sent by the network management device 21 for the lower-level device 23, the managed device 22 terminates a NETCONF message delivered by the network management device 21, performs parsing processing on content of the message to obtain the configuration data, and re-encapsulates the configuration data into a CAPWAP packet and sends the CAPWAP packet to the lower-level device 23.

[0006] In the device cascading scenario shown in FIG. 2, the following problem exists when NETCONF is used for configuration and management: In a standard NETCONF message, a relationship between configuration data and a configured device is not reflected. That is, the managed device 22 cannot know a lower-level device 23 or lower-level devices 23 to which configuration data carried in the NETCONF message is delivered. To resolve the foregoing problem, in the prior art, an extension field is added to a NETCONF message, and the extension field is used to transfer additional information. Specifically, the NETCONF message delivered by the network management device 21 to the managed device 22 includes a content field and an extension field. The content field carries configuration data according to a data model defined by using the YANG language. The extension field carries device information, and the device information is used to indicate a target lower-level device of the configuration data in the NETCONF message.

[0007] However, the prior art has at least the following technical disadvantages:
  1. 1. An extension field needs to be added to a NETCONF message to add private device information. As a result, a network management device and a managed device provided by a third party provider cannot interwork with each other, and solution universality is relatively poor.
  2. 2. One NETCONF message can carry only configuration data for a lower-level device or same configuration data for some lower-level devices. Different configuration data needs to be sent multiple times in multiple NETCONF messages. As a result, configuration processing efficiency is relatively low.
  3. 3. A managed device needs to generate multiple different databases for different lower-level devices according to extension fields, so as to store corresponding configuration data separately. As a result, a data storage processing procedure is relatively complex.
US 20150019991 A1 discloses a method for providing a customizable user interface capable of auto rendering data models of a data network, for monitoring and management purposes a data network so as to allow for management of boilerplate operations such as logon/logout, fetching and storing data, executing actions and transactions management. The method comprising the steps of : storing : a data model having a plurality of elements and sub-elements representative of the data network, a widget library, default registry data, customization registry data. The method further comprises the steps generating, a request for a portion of the data model representative for a part of the network of interest for display in the customizable user interface, selecting a graphical representations for each element and sub element based on the customization registry data and the default registry data and rendering the part of the data network using the selected graphical representations.

SUMMARY



[0008] Embodiments of this application provide a device configuration method and apparatus that are based on Network Configuration Protocol, to resolve prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex. The technical solution is defined by the attached claims.

[0009] According to a first aspect, a device configuration method based on NETCONF is provided, and the method is applied to a network management device. The network management device is connected to a managed device, the managed device is connected to one or more lower-level devices, and the network management device and the managed device support NETCONF. The method includes: establishing a model of configuration data by using a predefined YANG model, where the predefined YANG model includes n reference fields and one or more object fields separately corresponding to each reference field, the reference field is used to indicate a YANG model referenced in the predefined YANG model, an object field corresponding to an ith reference field is used to indicate a target lower-level device or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field, the target lower-level device group is a group including one or more lower-level devices, 1 ≤ i ≤ n, and i and n are positive integers; and sending the configuration data to the managed device based on NETCONF.
In a first possible implementation of the first aspect, the reference field is defined by using a first statement, and the first statement is used to reference, in one YANG model, a schema tree defined by another YANG model.

[0010] With reference to the first aspect or the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the object field is defined by using a leaf-list feature, and the leaf-list feature is used to describe a group of leaf nodes of a same type.

[0011] With reference to the first aspect, the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the one or more object fields corresponding to the ith reference field includes: one or more first object fields or one or more second object fields. Each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG reference field includes: several first object fields and/or several second object fields. Each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered. Each second object field is used to indicate a lower-level device group to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered.

[0012] According to a second aspect, a device configuration method based on NETCONF is provided, and the method is applied to a managed device. The managed device is connected to a network management device, the managed device is further connected to several lower-level devices, and the network management device and the managed device support NETCONF. The method includes: receiving configuration data that is sent by the network management device based on NETCONF, where the configuration data is modeled by the network management device by using a predefined YANG model; parsing the configuration data according to the predefined YANG model; and configuring a lower-level device according to the configuration data obtained from parsing.

[0013] In a first possible implementation of the second aspect, the configuring a lower-level device according to the configuration data obtained from parsing includes: for target configuration data modeled by using a YANG model referenced in an ith reference field, determining a target lower-level device of the target configuration data according to an object field corresponding to the ith reference field, where the target lower-level device is a lower-level device indicated by an object field corresponding to the ith reference field and/or a lower-level device in a lower-level device group indicated by an object field corresponding to the ith reference field; and sending the target configuration data to the target lower-level device based on a target configuration management protocol, where the target configuration management protocol is a configuration management protocol supported by the managed device and the target lower-level device.

[0014] With reference to the second aspect or the first possible implementation of the second aspect, in a second possible implementation of the second aspect, after the parsing the configuration data according to the predefined YANG model, the method further includes: storing the configuration data obtained from parsing in a same configuration database.

[0015] According to a third aspect, a device configuration apparatus based on NETCONF is provided, the apparatus includes at least one unit, and the at least one unit is configured to implement the device configuration method provided in the first aspect or any possible implementation of the first aspect.

[0016] According to a fourth aspect, a device configuration apparatus based on NETCONF is provided, the apparatus includes at least one unit, and the at least one unit is configured to implement the device configuration method provided in the second aspect or any possible implementation of the second aspect.

[0017] According to a fifth aspect, a device configuration system based on NETCONF is provided, and the system includes: a network management device, a managed device, and several lower-level devices. The network management device is connected to the managed device, the managed device is connected to the several lower-level devices, and the network management device and the managed device support NETCONF. The network management device includes the device configuration apparatus described in the third aspect. The managed device includes the device configuration apparatus described in the fourth aspect.

[0018] According to a sixth aspect, a network management device is provided. The network management device includes: a processor, a memory, and a transceiver. The memory is configured to store one or more instructions. The instruction is configured to be executed by the processor. The instruction is used to implement the device configuration method provided in the first aspect or any possible implementation of the first aspect.

[0019] According to a seventh aspect, a managed device is provided. The managed device includes: a processor, a memory, and a transceiver. The memory is configured to store one or more instructions. The instruction is configured to be executed by the processor. The instruction is used to implement the device configuration method provided in the second aspect or any possible implementation of the second aspect.

[0020] The technical solutions provided in the embodiments of this application bring the following beneficial effects:

[0021] The model of the configuration data is established by the network management device by using the predefined YANG model, the configuration data is sent to the managed device based on NETCONF, and the managed device parses the configuration data according to the predefined YANG model and configures the lower-level device according to the configuration data obtained from parsing. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex.

[0022] Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This achieves the following technical effects:

[0023] First, no extension field is added to the NETCONF message, and therefore, NETCONF does not need to be extended, so that the network management device and the managed device communicate with each other still based on standard NETCONF, and the solution universality is better.

[0024] Second, configuration data modeled by using multiple YANG models may be referenced in the predefined YANG model by using multiple reference fields, and a target lower-level device and/or a target lower-level device group of each piece of configuration data may be separately identified. Therefore, one NETCONF message can carry different configuration data delivered for different lower-level devices/lower-level device groups, thereby improving the configuration processing efficiency.

[0025] Third, the predefined YANG model is used to perform modeling for all configuration data carried in a NETCONF message delivered by the network management device, so that the managed device may maintain only a database corresponding to the predefined YANG model, without separately maintaining multiple different databases for different lower-level devices and lower-level device groups. This simplifies database configuration and management, and simplifies the data storage processing procedure.

BRIEF DESCRIPTION OF DRAWINGS



[0026] To describe the technical solutions in the embodiments of this application or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art.

FIG. 1 is a schematic diagram of a relationship between NETCONF and YANG;

FIG. 2 is a schematic diagram of a device cascading scenario;

FIG. 3A is a schematic diagram of an application scenario according to an embodiment of this application;

FIG. 3B is a schematic diagram of another application scenario according to an embodiment of this application;

FIG. 4 is a diagram of a network architecture of a device cascading scenario in a wireless local area network;

FIG. 5A and FIG. 5B are block diagrams of a network device according to an embodiment of this application;

FIG. 6 is a flowchart of a device configuration method based on NETCONF according to an embodiment of this application;

FIG. 7 is a flowchart of a device configuration method based on NETCONF according to another embodiment of this application;

FIG. 8 is a flowchart of a device configuration method based on NETCONF according to another embodiment of this application;

FIG. 9 is a block diagram of a device configuration apparatus based on NETCONF according to an embodiment of this application; and

FIG. 10 is a block diagram of a device configuration apparatus based on NETCONF according to another embodiment of this application.


DESCRIPTION OF EMBODIMENTS



[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following further describes the implementations of this application in detail with reference to the accompanying drawings.

[0028] A "module" mentioned in this specification is a program or an instruction that is stored in a memory and that can implement some functions. A "unit" mentioned in this specification is a functional structure divided according to logic. The "unit" may be implemented by only hardware, or implemented by a combination of software and hardware.

[0029] "Several" mentioned in this specification is one or more, and "multiple" is two or more. The term "and/or" describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. The character "/" generally indicates an "or" relationship between the associated objects.

[0030] The technical solutions provided in the embodiments of this application is applied to a device cascading scenario shown in FIG. 2. In a possible implementation, as shown in FIG. 3A, a network management device 21 serves as a NETCONF client, and a managed device 22 serves as a NETCONF server. The network management device 21 and the managed device 22 communicate with each other based on NETCONF, and the managed device 22 and a lower-level device 23 communicate with each other based on a non-NETCONF protocol. For example, when the device cascading scenario is applied to a wireless local area network (English: wireless local area network, WLAN for short), the non-NETCONF protocol may be CAPWAP.

[0031] In another possible implementation, as shown in FIG. 3B, a network management device 21 serves as a NETCONF client, a managed device 22 serves as a NETCONF proxy, and a lower-level device 23 serves as a NETCONF server. For the network management device 21, the NETCONF proxy implements a function of a NETCONF server. For the lower-level device 23, the NETCONF proxy implements a function of a NETCONF client. The network management device 21 and the managed device 22 communicate with each other based on NETCONF, and the managed device 22 and the lower-level device 23 communicate with each other also based on NETCONF.

[0032] It should be noted that all of the NETCONF client, the NETCONF server, and the NETCONF proxy are software processes running in a device, and are not hardware.

[0033] As shown in FIG. 4, a device cascading scenario in a WLAN is used as an example. A network architecture includes: a controller 41, a local controller (English: local access controller, LAC for short) 42, and several access points (English: access point, AP for short). The controller 41 and the LAC 42 communicate with each other based on NETCONF. The LAC 42 and the AP communicate with each other based on CAPWAP.

[0034] The controller 41 serves as a NETCONF client. The controller 41 is configured to configure the LAC 42 and each AP by using NETCONF. The controller 41 may also be referred to as a centralized controller or an agile controller, and is configured to manage all APs subordinated to the controller 41. A quantity of APs that are subordinated to and managed by the controller 41 can reach hundred thousands or even millions.

[0035] The LAC 42 serves as a NETCONF server. The LAC 42 is configured to receive configuration data sent by the controller 41, and the configuration data includes configuration data for the LAC 42 and configuration data for the AP managed by the LAC 42. For a NETCONF message delivered by the controller 41, the LAC 42 terminates the NETCONF message, parses content of the message to obtain the configuration data, and re-encapsulates the configuration data into a CAPWAP packet and sends the CAPWAP packet to a corresponding AP. The LAC 42 may also be referred to as a light access controller (English: light access controller). The LAC 42 and the AP establish a communication connection by using a local area network. For example, the LAC 42 may be connected to the AP by using one or more levels of switches. For another example, the LAC 42 may also be connected to the AP by using one or more levels of routers.

[0036] The AP is not directly connected to the controller 41, but receives, by using CAPWAP, configuration data sent by the LAC 42.

[0037] In addition, each LAC 42 may be configured to manage several APs and/or several AP groups. Each AP group includes at least one AP. For example, an LAC 42 on a left side in FIG. 4 is configured to manage an AP 3 and two AP groups (a group 1 and a group 2). The group 1 includes an AP 1 and an AP 2, and the group 2 includes an AP 4.

[0038] If a prior-art manner in which an extension field is added to a NETCONF message is used to configure features of an AP, such as Dynamic Host Configuration Protocol (English: Dynamic Host Configuration Protocol, DHCP for short) and a domain name system (Domain Name System, DNS for short), a specific procedure is as follows:
  1. 1. A controller establishes a model of configuration data by using a YANG model.
    In an example of configuring a DHCP feature of an AP, it is assumed that a corresponding YANG model is hw-dhcp.yang, and the controller uses a data model defined by hw-dhcp.yang to perform modeling on DHCP configuration data.
  2. 2. The controller generates a NETCONF message.
    The NETCONF message includes a content field and an extension field. The content field carries configuration data constructed by using the YANG model, for example, the DHCP configuration data modeled by using hw-dhcp.yang. The extension field carries device information. The device information is used to indicate an AP and/or AP group to which the configuration data in the NETCONF message is to be delivered. For example, when the DHCP configuration data is applicable to all of the AP 3 and the AP 1 and the AP 2 that are in the group 1, the extension field carries identification information corresponding to the AP 3 and the group 1.
    For example, the NETCONF message is as follows: <rpc message-id=" 101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <device-grouop> group 1 </device-grouop> <device-name> ap3 </device-name> <edit-config> <!-- method parameters here... --> </ edit-config > </rpc>
  3. 3. The controller sends the NETCONF message to an LAC.
    Correspondingly, the LAC receives the NETCONF message from the controller.
  4. 4. The LAC parses the NETCONF message to obtain device information carried in an extension field and configuration data carried in a content field.
  5. 5. The LAC stores the configuration data separately in a database corresponding to an AP and/or AP group indicated by the extension field.
    For example, the LAC stores the DHCP configuration data in a database DB 1 corresponding to the group 1, and stores the DHCP configuration data in a database DB 2 corresponding to the AP 3.
  6. 6. The LAC configures the AP according to the device information and the configuration data.


[0039] After detecting that configuration data in the database is changed, a functional module that is configured to configure and manage an AP and that is in the LAC reads the configuration data from the database, and sends the configuration data separately to a corresponding AP and/or AP group.

[0040] Therefore, when a prior-art manner in which an extension field is added to a NETCONF message is used to configure a lower-level device in a device cascading scenario, there are problems that solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex.

[0041] The following describes, by using several embodiments, the technical solutions provided in this application.

[0042] Referring to FIG. 5A and FIG. 5B, FIG. 5A and FIG. 5B are block diagrams of a network device according to an embodiment of this application. The network device 500 may be a network management device (for example, a controller in the network architecture shown in FIG. 4) in the embodiments of this application, or may be a managed device (for example, an LAC in the network architecture shown in FIG. 4) in the embodiments of this application.

[0043] The network device 500 may include: a processor 510, a memory 520, a transceiver 530, and a bus 540. The memory 520 and the transceiver 530 are connected to the processor 510 by using the bus 540.

[0044] The processor 510 includes one or more processing cores. The processor 510 performs various function applications and data processing by running a software program and module. The processor 510 includes a BizLet component, a register component, a control component, and the like. The processor 510 may be an independent central processing unit, or may be an embedded processor such as a microprocessor (English: micro processor unit, MPU for short), a micro controller (English: micro controller unit, MCU for short), or a digital signal processor (English: embedded digital signal processor, EDSP for short).

[0045] The memory 520 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (English: static random access memory, SRAM for short), an electrically erasable programmable read-only memory (English: electrically erasable programmable read-only memory, EEPROM for short), an erasable programmable read-only memory (English: erasable programmable read-only memory, EPROM for short), a programmable read-only memory (English: programmable read-only memory, PROM for short), a read-only memory (English: readonly memory, ROM for short), a magnetic memory, a flash memory, a disk, or an optical disc. The memory 520 may be configured to store an executable instruction such as a software program and module.

[0046] The processor 510 is configured to execute the instruction stored in the memory 520. When the network device 500 is a network management device, the processor 510 implements the following method by executing the instruction: establishing a model of configuration data by using a predefined YANG model; and controlling the transceiver 530 to send, based on NETCONF, the configuration data to a managed device. The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers. When the network device 500 is a managed device, the processor 510 implements the following method by executing the instruction: controlling the transceiver 530 to receive configuration data that is sent by a network management device based on NETCONF; parsing the configuration data according to a predefined YANG model; and configuring a lower-level device according to the configuration data obtained from parsing.

[0047] The transceiver 530 is configured to perform external communication, and the transceiver 530 may include multiple types of interfaces. For example, when the network device 500 is the network management device, the transceiver 530 is configured to send the configuration data to the managed device based on NETCONF. When the network device 500 is the managed device, the transceiver 530 is configured to receive the configuration data that is sent by the network management device based on NETCONF.

[0048] Optionally, the memory 520 may store an operating system 522 and an application program module 524 required by at least one function. The operating system 522 may be a real-time operating system or an operating system such as Linux, Unix, Windows, or OS X. When the network device 500 is the network management device, as shown in FIG. 5A, the application program module 524 may include a modeling module 524a and a sending module 524b. The modeling module 524a is configured to establish the model of the configuration data by using the predefined YANG model. The sending module 524b is configured to send the configuration data to the managed device based on NETCONF. When the network device 500 is the managed device, as shown in FIG. 5B, the application program module 524 may include a receiving module 524c, a parsing module 524d, and a configuration module 524e. The receiving module 524c is configured to receive the configuration data that is sent by the network management device based on NETCONF. The parsing module 524d is configured to parse the configuration data according to the predefined YANG model. The configuration module 524e is configured to configure the lower-level device according to the configuration data obtained from parsing.

[0049] Optionally, the network device 500 may further include an input/output component (not shown in the figure). The input/output component includes a display that is configured to display information and an input device that is configured to input information by a user, such as a mouse or a keyboard. Both the display and the input device are connected to the processor 510 by using the bus 540.

[0050] Referring to FIG. 6, FIG. 6 is a flowchart of a device configuration method based on NETCONF according to an embodiment of this application. The method provided in this embodiment is applied to a network management device. The network management device is connected to a managed device, the managed device is connected to several lower-level devices, and the network management device and the managed device support NETCONF. The method includes the following several steps.

[0051] Step 602: Establish a model of configuration data by using a predefined YANG model.

[0052] The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers.

[0053] Step 604: Send the configuration data to the managed device based on NETCONF.

[0054] In conclusion, according to the method provided in this embodiment, the model of the configuration data is established by the network management device by using the predefined YANG model, and the configuration data is sent to the managed device based on NETCONF. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex. Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This achieves the following technical effects:

[0055] First, no extension field is added to the NETCONF message, and therefore, NETCONF does not need to be extended, so that the network management device and the managed device communicate with each other still based on standard NETCONF, and the solution universality is better.

[0056] Second, configuration data modeled by using multiple YANG models may be referenced in the predefined YANG model by using multiple reference fields, and a target lower-level device and/or a target lower-level device group of each piece of configuration data may be separately identified. Therefore, one NETCONF message can carry different configuration data delivered for different lower-level devices/lower-level device groups, thereby improving the configuration processing efficiency.

[0057] Third, the predefined YANG model is used to perform modeling for all configuration data carried in a NETCONF message delivered by the network management device, so that the managed device may maintain only a database corresponding to the predefined YANG model, without separately maintaining multiple different databases for different lower-level devices and lower-level device groups. This simplifies database configuration and management, and simplifies the data storage processing procedure.

[0058] Referring to FIG. 7, FIG. 7 is a flowchart of a device configuration method based on NETCONF according to another embodiment of this application. The method provided in this embodiment is applied to a managed device. The managed device is connected to a network management device, the managed device is further connected to several lower-level devices, and the network management device and the managed device support NETCONF. The method includes the following several steps.

[0059] Step 702: Receive configuration data that is sent by the network management device based on NETCONF.

[0060] The configuration data is constructed by the network management device by using a predefined YANG model. The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers.

[0061] Step 704: Parse the configuration data according to a predefined YANG model.

[0062] Step 706: Configure a lower-level device according to the configuration data obtained from parsing.

[0063] In conclusion, according to the method provided in this embodiment, the configuration data sent by the network management device based on NETCONF is received by the managed device, the configuration data is constructed by the network management device by using the predefined YANG model, and the managed device parses the configuration data according to the predefined YANG model and configures the lower-level device according to the configuration data obtained from parsing. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex. Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This improves the solution universality, increases the configuration processing efficiency, and simplifies database configuration and management and the data storage processing procedure.

[0064] Referring to FIG. 8, FIG. 8 is a flowchart of a device configuration method based on NETCONF according to another embodiment of this application.

[0065] Step 801: A network management device establishes a model of configuration data by using a predefined YANG model.

[0066] The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers. The predefined YANG model is a YANG model pre-defined on peer devices (that is, the network management device and a managed device in this embodiment) that communicate with each other based on NETCONF, that is, a YANG model pre-defined on both a NETCONF client and a NETCONF server.

[0067] The reference field is defined by using a first statement, and the first statement is used to reference, in one YANG model, a schema tree (English: schema tree) defined by another YANG model.

[0068] In a possible implementation, with a YANG language syntax extended, the first statement is a newly-added refer statement. The reference field is defined by using the refer statement. The refer statement is used to reference, in one YANG model, a schema tree defined by another YANG model. A parameter of the refer statement is a name of the referenced YANG model. For example, it is assumed that a YANG model module y references a schema tree defined by another YANG model module x. In this case, a reference field in the module y may be represented as: refer x.

[0069] It is assumed that the predefined YANG model is the module y, and the referenced YANG model is the module x. A syntax structure of the module x is as follows:





[0070] A syntax structure of the module y is as follows:



[0071] The syntax structure of the module y is equivalent to:



[0072] Optionally, an object field is defined by using a leaf-list feature. The leaf-list feature is used to describe a group of leaf nodes of a same type, and a function of the leaf-list feature is similar to an array in C language. One or more lower-level devices or one or more lower-level device groups may be defined by using the leaf-list feature. For example, "leaf-list devices" is used to describe the target lower-level device of the configuration data, and "leaf-list device-groups" is used to describe the target lower-level device group of the configuration data.

[0073] In addition, the object field corresponding to the ith reference field includes: several first object fields and/or several second object fields. Each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered. For example, the first object field is represented by using "leaf-list devices". Each second object field is used to indicate a lower-level device group to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered. For example, the second object field is represented by using "leaf-list device-groups".

[0074] With reference to the network architecture shown in FIG. 4, a controller configures features such as DHCP and a DNS of an AP. Configuring the DHCP feature of the AP is used as an example herein, and configuration of another feature may be implemented in a similar manner. Based on different features of the AP, a series of YANG models are already defined, including a YANG model hw-dhcp.yang used to configure the DHCP feature of the AP. In hw-dhcp.yang, a data model corresponding to features such as a name of a DHCP server group used by the AP and an IP address corresponding to a DHCP server is defined. For example, a syntax structure of hw-dhcp.yang is as follows: module hw-dhcp { namespace "urn:hw:params:xml:ns:yang:hw-dhcp"; prefix hw-dhcp; /*config and state data*/ container dhcp { list dhcp-server-group { key name; leaf name { description "the name of the group"; type string { length "1..31"; } } leaf-list ip-address { description "ip addresses of dhcp servers in the group"; max-elements 8; type inet:ip-address; } ...... } ...... } /*end of container dhcp*/ ...... } /*end of module hw-dhcp*/

[0075] It is assumed that the predefined YANG model is master-device.yang, and a syntax structure of master-device.yang is as follows: module master-device { container master { list dhcp-config{ key dhcp-config-id; //Data of a list type needs a unique key value. leaf dhcp-config-id { type string { length "1..31"; } } refer hw-dhcp; //hw-dhcp.yang is referenced to describe DHCP configuration data of a device. leaf-list devices; //Describing a target device of the DHCP configuration data leaf-list device-groups; //Describing a target device group of the DHCP configuration data } list dns-config { key dns-config-id; //Data of a list type needs a unique key value. ...... //Description of the DNS feature } ...... } /*end of container master */ ...... } /* end of module master-device */

[0076] Configuration data modeled by using multiple YANG models may be referenced in the predefined YANG model by using multiple reference fields, and a target lower-level device and/or a target lower-level device group of each piece of configuration data may be separately identified. Therefore, one NETCONF message can carry different configuration data delivered for different lower-level devices/lower-level device groups, thereby improving configuration processing efficiency.

[0077] Step 802: The network management device sends the configuration data to a managed device based on NETCONF.

[0078] The network management device uses an XML language to encode the configuration data on which modeling has been completed, and then the network management device sends a NETCONF message to the managed device. The NETCONF message carries encoded configuration data.

[0079] Correspondingly, the managed device receives the configuration data that is sent by the network management device based on NETCONF.

[0080] Step 803: The managed device parses the configuration data according to the predefined YANG model.

[0081] After receiving the NETCONF message from the network management device, the managed device uses the predefined YANG model to parse content of the message, so as to obtain the configuration data.

[0082] Optionally, the managed device stores the configuration data obtained from parsing in a same configuration database. The predefined YANG model is used to perform modeling for all configuration data carried in the NETCONF message delivered by the network management device, so that the managed device may maintain only a database corresponding to the predefined YANG model, without separately maintaining multiple different databases for different lower-level devices and lower-level device groups. This simplifies database configuration and management, and simplifies a data storage processing procedure.

[0083] Step 804: The managed device configures a lower-level device according to the configuration data obtained from parsing.

[0084] For the target configuration data modeled by using the YANG model referenced in the ith reference field, the managed device determines, according to the object field corresponding to the ith reference field, a target lower-level device to which the target configuration data is to be delivered. The target lower-level device is a lower-level device indicated by an object field corresponding to the ith reference field and/or a lower-level device in a lower-level device group indicated by an object field corresponding to the ith reference field. The managed device sends the target configuration data to the target lower-level device based on a target configuration management protocol. The target configuration management protocol is a configuration management protocol supported by the managed device and the target lower-level device.

[0085] The configuration management protocol used between the managed device and the lower-level device is not limited in this embodiment of this application. In a possible implementation, with reference to FIG. 3A, the managed device and the target lower-level device communicate with each other based on a non-NETCONF protocol. For example, when the device cascading scenario shown in FIG. 3A is applied to a WLAN, the non-NETCONF protocol may be CAPWAP. For the target configuration data that needs to be delivered to the target lower-level device, the managed device encapsulates the target configuration data into a CAPWAP packet and sends the CAPWAP packet to the target lower-level device. In another possible implementation, with reference to FIG. 3B, the managed device serves as a NETCONF proxy. The managed device and the target lower-level device communicate with each other also based on NETCONF. For the target configuration data that needs to be delivered to the target lower-level device, the managed device encapsulates the target configuration data into a NETCONF message and sends the NETCONF message to the target lower-level device. Certainly, in addition to CAPWAP and NETCONF, the target configuration management protocol may further be another type of configuration management protocol. For the another type of configuration management protocol, processing performed by the managed device when configuring and managing the target lower-level device is basically similar. Details are not described herein again.

[0086] In addition, the managed device may feed back a response message to the network management device after configuring the lower-level device. A procedure of feeding back the response message may be implemented by using an existing mechanism specified in NETCONF.

[0087] In conclusion, according to the method provided in this embodiment, the model of the configuration data is established by the network management device by using the predefined YANG model, the configuration data is sent to the managed device based on NETCONF, and the managed device parses the configuration data according to the predefined YANG model and configures the lower-level device according to the configuration data obtained from parsing. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex.

[0088] Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This achieves the following technical effects:

[0089] First, no extension field is added to the NETCONF message, and therefore, NETCONF does not need to be extended, so that the network management device and the managed device communicate with each other still based on standard NETCONF, and the solution universality is better.

[0090] Second, configuration data modeled by using multiple YANG models may be referenced in the predefined YANG model by using multiple reference fields, and a target lower-level device and/or a target lower-level device group of each piece of configuration data may be separately identified. Therefore, one NETCONF message can carry different configuration data delivered for different lower-level devices/lower-level device groups, thereby improving the configuration processing efficiency.

[0091] Third, the predefined YANG model is used to perform modeling for all configuration data carried in the NETCONF message delivered by the network management device, so that the managed device may maintain only a database corresponding to the predefined YANG model, without separately maintaining multiple different databases for different lower-level devices and lower-level device groups. This simplifies database configuration and management, and simplifies the data storage processing procedure.

[0092] In addition, the first statement is added to extend the YANG language syntax, so as to conveniently reference, in one YANG model, a schema tree in any defined YANG model. This effectively resolves a YANG model reuse problem in the device cascading scenario, and implements lower-level device configuration in the device cascading scenario by using NETCONF and the YANG model.

[0093] In addition, one or more lower-level devices or one or more lower-level device groups can be defined by using the leaf-list feature, thereby conveniently and flexibly defining the target lower-level device and/or lower-level device group of the configuration data.

[0094] It should be additionally noted that there are two YANG model reuse mechanisms in an existing YANG language syntax: module-submodule and uses-grouping.

[0095] A YANG model reuse mechanism implemented in the module-submodule manner is as follows: First, a submodule is defined, stating that the submodule belongs to (belongs-to) a module, and a schema tree corresponding to the submodule is defined; and then a module is defined, where the module includes (include) the previously defined submodule. In this way, the schema tree defined by the submodule is referenced in the module. YANG model reuse implemented in the module-submodule manner has the following disadvantage: Rather than any submodule or module, only a defined submodule that belongs to the module can be referenced in the module. However, in a defined YANG model, an independent module generally is formed according to a function feature configured in the YANG model. Therefore, it is impossible to reference, in one module, a schema tree defined by another module.

[0096] In addition, YANG model reuse implemented in the uses-grouping manner has the following disadvantage: uses supports only reuse of a schema tree that is defined by using grouping and that is in the current model or in an introduced model. However, no YANG model in defined YANG models defines grouping that includes all fields of the YANG model. Therefore, it is also impossible to resolve the YANG model reuse problem in the device cascading scenario in the uses-grouping manner.

[0097] Based on the foregoing analysis, without modifying a defined YANG model, it is impossible to resolve the YANG model reuse problem in the device cascading scenario in either of the module-submodule manner or the uses-grouping manner. According to the technical solution provided in this embodiment of this application, by extending the YANG language syntax, the refer statement is added, to conveniently reference, in one YANG model, a schema tree in any defined YANG model. This effectively resolves the YANG model reuse problem in the device cascading scenario, and implements configuration and management of a lower-level device configuration in the device cascading scenario by using NETCONF and the YANG model.

[0098] It should be further noted that, in embodiments of this application, that a type of the statement added in the YANG language syntax is named "refer statement" is merely used as an example for description. In an actual application, a type of an added statement may be named another different name, such as a reference statement or a user-defined statement. This embodiment of this application sets no limitation thereto. Whatever the type of the added statement is named, a function of the added statement is the same as a function of the foregoing described "refer statement", that is, the added statement is used to reference, in one YANG module, a schema tree defined by another YANG module.

[0099] The following describes a configuration data instance by using a specific example.

[0100] A configuration data instance corresponding to the YANG model hw-dhcp.yang used to configure the DHCP feature of the AP is as follows: <dhcp xmlns="urn:hw:params:xml:hw-dhcp"> <dhcp-server-group> <name>dhcp-cfg1 <name> <ip-address> 10.163.18.1<ip-address> <ip-address> 10.163.23.6<ip-address> <dhcp-server-group> </dhcp>

[0101] It is assumed that the predefined YANG model is lac-device.yang. In lac-device.yang, hw-dhcp.yang is referenced by using a refer statement to configure the DHCP feature of the AP that is a lower-level device of an LAC. IP addresses 10.163.18.1 and 10.163.23.6 belong to one dhcp-server-group whose name is dhcp-cfg1. When the controller configures the lower-level device of the LAC, configuration data of dhcp-server-group is delivered to a lower-level device AP 3 and lower-level device groups group 1 and group 2 for application. A configuration data instance corresponding to lac-device.yang is as follows: <lac xmlns="urn:hw:params:xml:lac-dhcp"> <dhcp-config> <dhcp-config-id>dhcp-id 1 <dhcp-config-id> <hw-dhcp> <hw-dhcp:dhcp> <hw-dhcp: dhcp-server-group> <hw-dhcp :name>dhcp-cfg1 </hw-dhcp :name> <hw-dhcp :ip-address> 10.163.18.1</hw-dhcp :ip-address> <hw-dhcp :ip-address> 10.163.23.6</hw-dhcp:ip-address> </hw-dhcp: dhcp-server-group> </hw-dhcp:dhcp> </hw-dhcp> <aps>ap3</aps> <ap-groups>group 1</ap-groups> <ap-groups>group2 </ ap-groups> </ dhcp-config> </lac>

[0102] The following is an apparatus embodiment of this application, and the apparatus embodiment may be used to execute the method embodiment of this application. For details not disclosed in the apparatus embodiment of this application, refer to the method embodiment of this application.

[0103] Referring to FIG. 9, FIG. 9 is a block diagram of a device configuration apparatus based on NETCONF according to an embodiment of this application. The apparatus provided in this embodiment may be a part or a whole of a network management device. The network management device is connected to a managed device, the managed device is connected to several lower-level devices, and the network management device and the managed device support NETCONF. The apparatus may include: a modeling unit (English: modeling unit) 910 and a sending unit 920.

[0104] The modeling unit 910 is configured to establish a model of configuration data by using a predefined YANG model.

[0105] The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers.

[0106] The sending unit 920 is configured to send the configuration data modeled by the modeling unit 910 to the managed device based on NETCONF.

[0107] In conclusion, according to the apparatus provided in this embodiment, the model of the configuration data is established by the network management device by using the predefined YANG model, and the configuration data is sent to the managed device based on NETCONF. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex. Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This improves the solution universality, increases the configuration processing efficiency, and simplifies database configuration and management and the data storage processing procedure.

[0108] In an optional embodiment provided based on the embodiment shown in FIG. 9, a reference field is defined by using a first statement, and the first statement is used to reference, in one YANG model, a schema tree defined by another YANG model.

[0109] In another optional embodiment provided based on the embodiment shown in FIG. 9, an object field is defined by using a leaf-list feature, and the leaf-list feature is used to describe a group of leaf nodes of a same type.

[0110] In another optional embodiment provided based on the embodiment shown in FIG. 9, the object field corresponding to the ith reference field includes several first object fields and/or several second object fields. Each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered. Each second object field is used to indicate a lower-level device group to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered.

[0111] Referring to FIG. 10, FIG. 10 is a block diagram of a device configuration apparatus based on NETCONF according to another embodiment of this application. The apparatus provided in this embodiment may be a part or a whole of a managed device. The managed device is connected to a network management device, the managed device is further connected to several lower-level devices, and the network management device and the managed device support NETCONF. The apparatus may include: a receiving unit 1010, a parsing unit 1020, and a configuration unit 1030.

[0112] The receiving unit 1010 is configured to receive configuration data that is sent by the network management device based on NETCONF.

[0113] The configuration data is constructed by the network management device by using a predefined YANG model. The predefined YANG model includes n reference fields and several object fields separately corresponding to each reference field. The reference field is used to indicate a YANG model referenced in the predefined YANG model. An object field corresponding to an ith reference field is used to indicate a target lower-level device and/or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field. The lower-level device group is a group including several lower-level devices. 1 ≤ i ≤ n, and i and n are positive integers.

[0114] The parsing unit 1020 is configured to parse the configuration data according to the predefined YANG model.

[0115] The configuration unit 1030 is configured to configure a lower-level device according to the configuration data obtained from parsing.

[0116] In conclusion, according to the apparatus provided in this embodiment, the configuration data sent by the network management device based on NETCONF is received by the managed device, the configuration data is constructed by the network management device by using the predefined YANG model, and the managed device parses the configuration data according to the predefined YANG model and configures the lower-level device according to the configuration data obtained from parsing. This resolves prior-art problems that when an extension field is added to a NETCONF message to indicate a target lower-level device of configuration data in the NETCONF message in a device cascading scenario, solution universality is relatively poor, configuration processing efficiency is relatively low, and a data storage processing procedure is relatively complex. Without modifying a defined YANG model, the predefined YANG model is used by designing a reference field and an object field in the predefined YANG model, to reference configuration data and indicate a target lower-level device and/or a target lower-level device group of the configuration data. This improves the solution universality, increases the configuration processing efficiency, and simplifies database configuration and management and the data storage processing procedure.

[0117] In an optional embodiment provided based on the embodiment shown in FIG. 10, the configuration unit 1030 is specifically configured to:

for the target configuration data modeled by using the YANG model referenced in the ith reference field, determine, according to the object field corresponding to the ith reference field, a target lower-level device to which the target configuration data is to be delivered, where the target lower-level device is a lower-level device indicated by an object field corresponding to the ith reference field and/or a lower-level device in a lower-level device group indicated by an object field corresponding to the ith reference field; and

send the target configuration data to the target lower-level device based on a target configuration management protocol, where the target configuration management protocol is a configuration management protocol supported by the managed device and the target lower-level device.



[0118] In another optional embodiment provided based on the embodiment shown in FIG. 10, the apparatus further includes a storage unit, configured to store the configuration data obtained from parsing in a same configuration database.

[0119] An embodiment of this application further provides a device configuration system that is based on NETCONF. With reference to FIG. 2, the system includes: a network management device, a managed device, and several lower-level devices. The network management device is connected to the managed device, and the managed device is connected to the foregoing several lower-level devices. The network management device and the managed device support NETCONF. The network management device includes the device configuration apparatus provided in the embodiment shown in FIG. 9. The managed device includes the device configuration apparatus provided in the embodiment shown in FIG. 10.

[0120] It should be noted that, when the apparatuses provided in the foregoing embodiments implement their functions, division of the foregoing function units is merely used as an example for description. In an actual application, the foregoing functions may be allocated to different functional units for implementation as required. That is, an internal structure of the device is divided into different functional units to implement all or part of the functions described above. In addition, the apparatus embodiments and the method embodiments provided in the foregoing embodiments are based on a same concept. For specific implementation processes of the apparatus embodiments, refer to the method embodiments, and details are not described herein again.

[0121] A person of ordinary skill in the art may understand that all or some of the steps of the embodiments may be implemented by hardware or a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.


Claims

1. A device configuration method based on Network Configuration Protocol, NETCONF, wherein the method is applied to a network management device, the network management device is connected to a managed device, the managed device is connected to one or more lower-level devices, and the network management device and the managed device support NETCONF; and
the method comprises:

establishing (602, 801), by the network management device, a model of configuration data by using a predefined YANG model, wherein the predefined YANG model comprises n reference fields and one or more object fields separately corresponding to each reference field, the reference field is used to indicate a YANG model referenced in the predefined YANG model, an object field corresponding to an ith reference field is used to indicate a target lower-level device or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field, the target lower-level device group is a group comprising one or more lower-level devices, 1 ≤ i ≤ n, and i and n are positive integers; and

sending (604, 802), by the network management device, the configuration data to the managed device based on NETCONF.


 
2. The method according to claim 1, wherein the reference field is defined by using a first statement, and the first statement is used to reference, in one YANG model, a schema tree defined by another YANG model.
 
3. The method according to claim 1 or 2, wherein the object field is defined by using a leaf-list feature, and the leaf-list feature is used to describe a group of leaf nodes of a same type.
 
4. The method according to any one of claims 1 to 3, wherein the one or more object fields corresponding to the ith reference field comprises: one or more first object fields or one or more second object fields;
each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered; and
each second object field is used to indicate a lower-level device group to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered.
 
5. A device configuration method based on Network Configuration Protocol, NETCONF, wherein the method is applied to a managed device, the managed device is connected to a network management device, the managed device is further connected to one or more lower-level devices, and the network management device and the managed device support NETCONF; and
the method comprises:

receiving (702, 802), by the managed device, configuration data that is sent by the network management device based on NETCONF, wherein the configuration data is modeled by the network management device by using a predefined YANG model, the predefined YANG model comprises n reference fields and one or more object fields separately corresponding to each reference field, the reference field is used to indicate a YANG model referenced in the predefined YANG model, an object field corresponding to an ith reference field is used to indicate a target lower-level device or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field, the target lower-level device group is a group comprising one or more lower-level devices, 1 ≤ i ≤ n, and i and n are positive integers;

parsing (704, 803), by the managed device, the configuration data according to the predefined YANG model; and

configuring (706, 804), by the managed device, a lower-level device according to the configuration data obtained from parsing.


 
6. The method according to claim 5, wherein the configuring a lower-level device according to the configuration data obtained from parsing comprises:

for the target configuration data modeled by using the YANG model referenced in the ith reference field, determining a target lower-level device of the target configuration data according to the object field corresponding to the ith reference field, wherein the target lower-level device is a lower-level device indicated by an object field corresponding to the ith reference field or a lower-level device in a lower-level device group indicated by an object field corresponding to the ith reference field; and

sending the target configuration data to the target lower-level device based on a target configuration management protocol, wherein the target configuration management protocol is a configuration management protocol supported by the managed device and the target lower-level device.


 
7. The method according to claim 5 or 6, wherein after the parsing the configuration data according to the predefined YANG model, the method further comprises:
storing the configuration data obtained from parsing in a configuration database corresponding to the predefined YANG model.
 
8. A device configuration apparatus based on Network Configuration Protocol, NETCONF, wherein the apparatus is applied to a network management device, the network management device is connected to a managed device, the managed device is connected to one or more lower-level devices, and the network management device and the managed device support NETCONF; and
the apparatus comprises:

a modeling unit (910), configured to establish a model of configuration data by using a predefined YANG model, wherein the predefined YANG model comprises n reference fields and one or more object fields separately corresponding to each reference field, the reference field is used to indicate a YANG model referenced in the predefined YANG model, an object field corresponding to an ith reference field is used to indicate a target lower-level device or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field, the lower-level device group is a group comprising one or more lower-level devices, 1 ≤ i ≤ n, and i and n are positive integers; and

a sending unit (920), configured to send the configuration data to the managed device based on NETCONF.


 
9. The apparatus according to claim 8, wherein a reference field is defined by using a first statement, and the first statement is used to reference, in one YANG model, a schema tree defined by another YANG model.
 
10. The apparatus according to claim 8 or 9, wherein an object field is defined by using a leaf-list feature, and the leaf-list feature is used to describe a group of leaf nodes of a same type.
 
11. The apparatus according to any one of claims 8 to 10, wherein the one or more object fields corresponding to the ith reference field comprise: one or more first object fields or one or more second object fields;
each first object field is used to indicate a lower-level device to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered; and
each second object field is used to indicate a lower-level device group to which the target configuration data modeled by using the YANG model referenced in the ith reference field is to be delivered.
 
12. A device configuration apparatus based on Network Configuration Protocol, NETCONF, wherein the apparatus is applied to a managed device, the managed device is connected to a network management device, the managed device is further connected to one or more lower-level devices, and the network management device and the managed device support NETCONF; and
the apparatus comprises:

a receiving unit (1010), configured to receive configuration data that is sent by the network management device based on NETCONF, wherein the configuration data is modeled by the network management device by using a predefined YANG model, the predefined YANG model comprises n reference fields and one or more object fields separately corresponding to each reference field, the reference field is used to indicate a YANG model referenced in the predefined YANG model, an object field corresponding to an ith reference field is used to indicate a target lower-level device or a target lower-level device group of target configuration data modeled by using a YANG model referenced in the ith reference field, the lower-level device group is a group comprising one or more lower-level devices, 1 ≤ i ≤ n, and i and n are positive integers;

a parsing unit (1020), configured to parse the configuration data according to the predefined YANG model; and

a configuration unit (1030), configured to configure a lower-level device according to the configuration data obtained from parsing.


 
13. The apparatus according to claim 12, wherein the configuration unit (1030) is specifically configured to:

for the target configuration data modeled by using the YANG model referenced in the ith reference field, determine a target lower-level device of the target configuration data according to the object field corresponding to the ith reference field, wherein the target lower-level device is an lower-level device indicated by an object field corresponding to the ith reference field or a lower-level device in a lower-level device group indicated by an object field corresponding to the ith reference field; and

. send the target configuration data to the target lower-level device based on a target configuration management protocol, wherein the target configuration management protocol is a configuration management protocol supported by the managed device and the target lower-level device.


 
14. The apparatus according to claim 12 or 13, wherein the apparatus further comprises:
a storage unit, configured to store the configuration data obtained from parsing in a configuration database corresponding to the predefined YANG model.
 


Ansprüche

1. Gerätekonfigurationsverfahren, basierend auf dem Netzwerkkonfigurationsprotokoll (NETCONF),
wobei das Verfahren auf ein Netzwerkverwaltungsgerät angewandt wird, das mit einem verwalteten Gerät verbunden ist,
das verwaltete Gerät mit ein oder mehreren untergeordneten Geräten verbunden ist, und
das Netzwerkverwaltungsgerät und das verwaltete Gerät NETCONF unterstützen; und
das Verfahren Folgendes umfasst:

Einrichten (602, 801), durch das Netzwerkverwaltungsgerät, eines Modells von Konfigurationsdaten unter Verwendung eines vordefinierten YANG-Modells,

wobei das vordefinierte YANG-Modell n Referenzfelder und ein oder mehrere Objektfelder umfasst, die getrennt dem jeweiligen Referenzfeld entsprechen,

das Referenzfeld verwendet wird, um ein in dem vordefinierten YANG-Modell referenziertes YANG-Modell anzugeben,

ein Objektfeld, das einem Referenzfeld eines i-ten Modells entspricht, verwendet wird, um ein untergeordnetes Zielgerät oder eine untergeordnete Zielgerätegruppe von Zielkonfigurationsdaten anzugeben, die unter Verwendung eines in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

die untergeordnete Zielgerätegruppe eine Gruppe ist, die ein oder mehrere untergeordnete Geräte umfasst,

1 ≤ i ≤ n, und i und n positive Ganzzahlen sind; und

Senden (604, 802), durch das Netzwerkverwaltungsgerät, der Konfigurationsdaten zu dem verwalteten Gerät, basierend auf NETCONF.


 
2. Verfahren gemäß Anspruch 1,
wobei das Referenzfeld durch Verwenden einer ersten Erklärung definiert wird, und die erste Erklärung verwendet wird, um in einem YANG-Modell eine durch ein weiteres YANG-Modell definierte Schemastruktur zu referenzieren.
 
3. Verfahren gemäß Anspruch 1 oder 2,
wobei das Objektfeld durch Verwenden einer Blattlistenfunktion definiert wird, und die Blattlistenfunktion verwendet wird, um eine Gruppe von Blattknoten eines gleichen Typs zu beschreiben.
 
4. Verfahren gemäß einem der Ansprüche 1 bis 3,
wobei die dem i-ten Referenzfeld entsprechenden ein oder mehreren Objektfelder Folgendes umfassen:

ein oder mehrere erste Objektfelder, oder

ein oder mehrere zweite Objektfelder;

wobei jedes erste Objektfeld verwendet wird, um ein untergeordnetes Gerät anzugeben, zu dem die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert wurden, zu liefern sind; und

wobei jedes zweite Objektfeld verwendet wird, um eine untergeordnete Gerätegruppe anzugeben, zu der die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert wurden, zu liefern sind.


 
5. Gerätekonfigurationsverfahren, basierend auf dem Netzwerkkonfigurationsprotokoll (NETCONF),
wobei das Verfahren auf ein verwaltetes Gerät angewandt wird,
das verwaltete Gerät mit einem Netzwerkverwaltungsgerät verbunden ist,
das verwaltete Gerät ferner mit ein oder mehreren untergeordneten Geräten verbunden ist, und
das Netzwerkverwaltungsgerät und das verwaltete Gerät NETCONF unterstützen; und
das Verfahren Folgendes umfasst:

Empfangen (702, 802), durch das verwaltete Gerät, von Konfigurationsdaten, die durch das Netzwerkverwaltungsgerät, basierend auf NETCONF, gesendet werden,

wobei die Konfigurationsdaten durch das Netzwerkverwaltungsgerät unter Verwendung eines vordefinierten YANG-Modells modelliert werden,

das vordefinierte YANG-Modell n Referenzfelder und ein oder mehrere Objektfelder umfasst, die getrennt dem jeweiligen Referenzfeld entsprechen,

das Referenzfeld verwendet wird, um ein in dem vordefinierten YANG-Modell referenziertes YANG-Modell anzugeben,

ein Objektfeld, das einem i-ten Referenzfeld entspricht, verwendet wird, um ein untergeordnetes Zielgerät oder eine untergeordnete Zielgerätegruppe von Zielkonfigurationsdaten anzugeben, die unter Verwendung eines in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

die untergeordnete Zielgerätegruppe eine Gruppe ist, die ein oder mehrere untergeordnete Geräte umfasst,

1 ≤ i ≤ n, und i und n positive Ganzzahlen sind;

Parsen (704, 803), durch das verwaltete Gerät, der Konfigurationsdaten gemäß dem vordefinierten YANG-Modell; und

Konfigurieren (706, 804), durch das verwaltete Gerät, eines untergeordneten Gerätes gemäß den durch Parsen erhaltenen Konfigurationsdaten.


 
6. Verfahren gemäß Anspruch 5,
wobei das Konfigurieren eines untergeordneten Gerätes gemäß den durch Parsen erhaltenen Konfigurationsdaten Folgendes umfasst:

für die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

Bestimmen eines untergeordneten Zielgerätes der Zielkonfigurationsdaten gemäß dem Objektfeld, das dem i-ten Referenzfeld entspricht,

wobei das untergeordnete Zielgerät ein untergeordnetes Gerät ist, das durch ein Objektfeld angegeben wird, das dem i-ten Referenzfeld entspricht, oder ein untergeordnetes Gerät in einer untergeordneten Gerätegruppe, die durch ein Objektfeld angegeben wird, das dem i-ten Referenzfeld entspricht; und

Senden der Zielkonfigurationsdaten zu dem untergeordneten Zielgerät, basierend auf einem Zielkonfigurations-Verwaltungsprotokoll,

wobei das Zielkonfigurations-Verwaltungsprotokoll ein Konfigurations-Verwaltungsprotokoll ist, das von dem verwalteten Gerät und dem untergeordneten Zielgerät unterstützt wird.


 
7. Verfahren gemäß Anspruch 5 oder 6,
wobei, nach dem Parsen der Konfigurationsdaten gemäß dem vordefinierten YANG-Modell, das Verfahren ferner Folgendes umfasst:
Speichern der durch Parsen erhaltenen Konfigurationsdaten in einer Konfigurationsdatenbank, die dem vordefinierten YANG-Modell entspricht.
 
8. Gerätekonfigurationsvorrichtung, basierend auf dem Netzwerkkonfigurationsprotokoll (NETCONF),
wobei die Vorrichtung auf ein Netzwerkverwaltungsgerät angewandt wird,
das Netzwerkverwaltungsgerät mit einem verwalteten Gerät verbunden ist,
das verwaltete Gerät mit ein oder mehreren untergeordneten Geräten verbunden ist, und
das Netzwerkverwaltungsgerät und das verwaltete Gerät NETCONF unterstützen; und
die Vorrichtung Folgendes umfasst:

eine Modellierungseinheit (910), die dazu ausgelegt ist, ein Modell von Konfigurationsdaten unter Verwendung eines vordefinierten YANG-Modells einzurichten,

wobei das vordefinierte YANG-Modell n Referenzfelder und ein oder mehrere Objektfelder umfasst, die getrennt dem jeweiligen Referenzfeld entsprechen,

das Referenzfeld verwendet wird, um ein in dem vordefinierten YANG-Modell referenziertes YANG-Modell anzugeben,

ein Objektfeld, das einem i-ten Referenzfeld entspricht, verwendet wird, um ein untergeordnetes Zielgerät oder eine untergeordnete Zielgerätegruppe von Zielkonfigurationsdaten anzugeben, die unter Verwendung eines in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

die untergeordnete Gerätegruppe eine Gruppe ist, die ein oder mehrere untergeordnete Geräte umfasst,

1 ≤ i ≤ n, und i und n positive Ganzzahlen sind; und

eine Sendeeinheit (920), die dazu ausgelegt ist, die Konfigurationsdaten zu dem verwalteten Gerät, basierend auf NETCONF, zu senden.


 
9. Vorrichtung gemäß Anspruch 8,
wobei ein Referenzfeld durch Verwenden einer ersten Erklärung definiert wird, und die erste Erklärung verwendet wird, um in einem YANG-Modell eine durch ein weiteres YANG-Modell definierte Schemastruktur zu referenzieren.
 
10. Vorrichtung gemäß Anspruch 8 oder 9,
wobei ein Objektfeld durch Verwenden einer Blattlistenfunktion definiert wird, und die Blattlistenfunktion verwendet wird, um eine Gruppe von Blattknoten eines gleichen Typs zu beschreiben.
 
11. Vorrichtung gemäß einem der Ansprüche 8 bis 10,
wobei die dem i-ten Referenzfeld entsprechenden ein oder mehreren Objektfelder Folgendes umfassen:

ein oder mehrere erste Objektfelder, oder

ein oder mehrere zweite Objektfelder;

wobei jedes erste Objektfeld verwendet wird, um ein untergeordnetes Gerät anzugeben, zu dem die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert wurden, zu liefern sind; und

wobei jedes zweite Objektfeld verwendet wird, um eine untergeordnete Gerätegruppe anzugeben, zu der die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert wurden, zu liefern sind.


 
12. Gerätekonfigurationsvorrichtung, basierend auf dem Netzwerkkonfigurationsprotokoll (NETCONF),
wobei die Vorrichtung auf ein verwaltetes Gerät angewandt wird,
das verwaltete Gerät mit einem Netzwerkverwaltungsgerät verbunden ist,
das verwaltete Gerät ferner mit ein oder mehreren untergeordneten Geräten verbunden ist, und
das Netzwerkverwaltungsgerät und das verwaltete Gerät NETCONF unterstützen; und
die Vorrichtung Folgendes umfasst:

eine Empfangseinheit (1010), die dazu ausgelegt ist, Konfigurationsdaten zu empfangen, die durch das Netzwerkverwaltungsgerät, basierend auf NETCONF, gesendet werden,

wobei die Konfigurationsdaten durch das Netzwerkverwaltungsgerät unter Verwendung eines vordefinierten YANG-Modells modelliert werden,

das vordefinierte YANG-Modell n Referenzfelder und ein oder mehrere Objektfelder umfasst, die getrennt dem jeweiligen Referenzfeld entsprechen,

das Referenzfeld verwendet wird, um ein in dem vordefinierten YANG-Modell referenziertes YANG-Modell anzugeben,

ein Objektfeld, das einem i-ten Referenzfeld entspricht, verwendet wird, um ein untergeordnetes Zielgerät oder eine untergeordnete Zielgerätegruppe von Zielkonfigurationsdaten anzugeben, die unter Verwendung eines in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

die untergeordnete Gerätegruppe eine Gruppe ist, die ein oder mehrere untergeordnete Geräte umfasst,

1 ≤ i ≤ n, und i und n positive Ganzzahlen sind;

eine Parsing-Einheit (1020), die dazu ausgelegt ist, die Konfigurationsdaten gemäß dem vordefinierten YANG-Modell zu parsen; und

eine Konfigurationseinheit (1030), die dazu ausgelegt ist, ein untergeordnetes Gerät gemäß den durch Parsen erhaltenen Konfigurationsdaten zu konfigurieren.


 
13. Vorrichtung gemäß Anspruch 12,
wobei die Konfigurationseinheit (1030) insbesondere für Folgendes ausgelegt ist:

für die Zielkonfigurationsdaten, die unter Verwendung des in dem i-ten Referenzfeld referenzierten YANG-Modells modelliert werden,

Bestimmen eines untergeordneten Zielgerätes der Zielkonfigurationsdaten gemäß dem Objektfeld, das dem i-ten Referenzfeld entspricht,

wobei das untergeordnete Zielgerät ein untergeordnetes Gerät ist, das durch ein Objektfeld angegeben wird, das dem i-ten Referenzfeld entspricht, oder ein untergeordnetes Gerät in einer untergeordneten Gerätegruppe, die durch ein Objektfeld angegeben wird, das dem i-ten Referenzfeld entspricht; und

Senden der Zielkonfigurationsdaten zu dem untergeordneten Zielgerät, basierend auf einem Zielkonfigurations-Verwaltungsprotokoll,

wobei das Zielkonfigurations-Verwaltungsprotokoll ein Konfigurations-Verwaltungsprotokoll ist, das von dem verwalteten Gerät und dem untergeordneten Zielgerät unterstützt wird.


 
14. Vorrichtung gemäß Anspruch 12 oder 13,
wobei die Vorrichtung ferner Folgendes umfasst:
eine Speichereinheit, die dazu ausgelegt ist, die durch Parsen erhaltenen Konfigurationsdaten in einer Konfigurationsdatenbank zu speichern, die dem vordefinierten YANG-Modell entspricht.
 


Revendications

1. Procédé de configuration de dispositif basé sur un protocole de configuration de réseau, NETCONF, le procédé étant appliqué à un dispositif de gestion de réseau, le dispositif de gestion de réseau étant connecté à un dispositif géré, le dispositif géré étant connecté à un ou plusieurs dispositifs de niveau inférieur et le dispositif de gestion de réseau et le dispositif géré prenant en charge le protocole NETCONF ; et le procédé consistant :

à établir (602, 801), au moyen du dispositif de gestion de réseau, un modèle de données de configuration en utilisant un modèle YANG prédéfini, dans lequel le modèle YANG prédéfini comprend n champs de référence et un ou plusieurs champs d'objet correspondant séparément à chaque champ de référence, le champ de référence est utilisé pour indiquer un modèle YANG référencé dans le modèle YANG prédéfini, un champ d'objet correspondant à un ième champ de référence est utilisé pour indiquer un dispositif de niveau inférieur cible ou un groupe de dispositifs de niveau inférieur cibles de données de configuration cibles modélisées en utilisant un modèle YANG référencé dans le ième champ de référence, le groupe de dispositifs de niveau inférieur cibles est un groupe comprenant un ou plusieurs dispositifs de niveau inférieur, 1 ≤ i ≤ n et i et n sont des nombres entiers positifs ; et

à envoyer (604, 802), au moyen du dispositif de gestion de réseau, les données de configuration au dispositif géré en se basant sur le protocole NETCONF.


 
2. Procédé selon la revendication 1, dans lequel le champ de référence est défini en utilisant une première instruction et la première instruction est utilisée pour référencer, dans un modèle YANG, un arbre de schéma défini par un autre modèle YANG.
 
3. Procédé selon la revendication 1 ou 2, dans lequel le champ d'objet est défini en utilisant une caractéristique de liste de feuilles et la caractéristique de liste de feuilles est utilisée pour décrire un groupe de nœuds feuilles d'un même type.
 
4. Procédé selon l'une quelconque des revendications 1 à 3, dans lequel le ou les champs d'objet correspondant au ième champ de référence comprennent : un ou plusieurs premiers champs d'objet ou un ou plusieurs seconds champs d'objet ;
chaque premier champ d'objet est utilisé pour indiquer un dispositif de niveau inférieur auquel les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence doivent être délivrées ; et
chaque second champ d'objet est utilisé pour indiquer un groupe de dispositifs de niveau inférieur auquel les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence doivent être délivrées.
 
5. Procédé de configuration de dispositif basé sur un protocole de configuration de réseau, NETCONF, le procédé étant appliqué à un dispositif géré, le dispositif géré étant connecté à un dispositif de gestion de réseau, le dispositif géré étant en outre connecté à un ou plusieurs dispositifs de niveau inférieur et le dispositif de gestion de réseau et le dispositif géré prenant en charge le protocole NETCONF ; et
le procédé consistant :

à recevoir (702, 802), au moyen du dispositif géré, des données de configuration qui sont envoyées par le dispositif de gestion de réseau en se basant sur un protocole NETCONF, dans lequel les données de configuration sont modélisées par le dispositif de gestion de réseau en utilisant un modèle YANG prédéfini, le modèle YANG prédéfini comprend n champs de référence et un ou plusieurs champs d'objet correspondant séparément à chaque champ de référence, le champ de référence est utilisé pour indiquer un modèle YANG référencé dans le modèle YANG prédéfini, un champ d'objet correspondant à un ième champ de référence est utilisé pour indiquer un dispositif de niveau inférieur cible ou un groupe de dispositifs de niveau inférieur cibles de données de configuration cibles modélisées en utilisant un modèle YANG référencé dans le ième champ de référence, le groupe de dispositifs de niveau inférieur cibles est un groupe comprenant un ou plusieurs dispositifs de niveau inférieur, 1 ≤ i ≤ n et i et n sont des nombres entiers positifs ;

à analyser (704, 803), au moyen du dispositif géré, les données de configuration en fonction du modèle YANG prédéfini ; et

à configurer (706, 804), au moyen du dispositif géré, un dispositif de niveau inférieur en fonction des données de configuration obtenues à partir d'une analyse.


 
6. Procédé selon la revendication 5, dans lequel la configuration d'un dispositif de niveau inférieur en fonction des données de configuration obtenues à partir d'une analyse consiste :

pour les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence, à déterminer un dispositif de niveau inférieur cible des données de configuration cibles en fonction du champ d'objet correspondant au ième champ de référence, dans lequel le dispositif de niveau inférieur cible est un dispositif de niveau inférieur indiqué par un champ d'objet correspondant au ième champ de référence ou un dispositif de niveau inférieur dans un groupe de dispositifs de niveau inférieur indiqué par un champ d'objet correspondant au ième champ de référence ; et

à envoyer les données de configuration cibles au dispositif de niveau inférieur cible en se basant sur un protocole de gestion de configuration cible, dans lequel le protocole de gestion de configuration cible est un protocole de gestion de configuration pris en charge par le dispositif géré et le dispositif de niveau inférieur cible.


 
7. Procédé selon la revendication 5 ou 6, après l'analyse des données de configuration en fonction du modèle YANG prédéfini, le procédé consistant en outre :
à stocker les données de configuration obtenues à partir d'une analyse dans une base de données de configuration correspondant au modèle YANG prédéfini.
 
8. Appareil de configuration de dispositif basé sur un protocole de configuration de réseau, NETCONF, l'appareil étant appliqué à un dispositif de gestion de réseau, le dispositif de gestion de réseau étant connecté à un dispositif géré, le dispositif géré étant connecté à un ou plusieurs dispositifs de niveau inférieur et le dispositif de gestion de réseau et le dispositif géré prenant en charge le protocole NETCONF ; et l'appareil comprenant :

une unité de modélisation (910), configurée pour établir un modèle de données de configuration en utilisant un modèle YANG prédéfini, dans lequel le modèle YANG prédéfini comprend n champs de référence et un ou plusieurs champs d'objet correspondant séparément à chaque champ de référence, le champ de référence est utilisé pour indiquer un modèle YANG référencé dans le modèle YANG prédéfini, un champ d'objet correspondant à un ième champ de référence est utilisé pour indiquer un dispositif de niveau inférieur cible ou un groupe de dispositifs de niveau inférieur cibles de données de configuration cibles modélisées en utilisant un modèle YANG référencé dans le ième champ de référence, le groupe de dispositifs de niveau inférieur est un groupe comprenant un ou plusieurs dispositifs de niveau inférieur, 1 ≤ i ≤ n et i et n sont des nombres entiers positifs ; et

une unité d'envoi (920), configurée pour envoyer les données de configuration au dispositif géré en se basant sur le protocole NETCONF.


 
9. Appareil selon la revendication 8, dans lequel un champ de référence est défini en utilisant une première instruction et la première instruction est utilisée pour référencer, dans un modèle YANG, un arbre de schéma défini par un autre modèle YANG.
 
10. Appareil selon la revendication 8 ou 9, dans lequel un champ d'objet est défini en utilisant une caractéristique de liste de feuilles et la caractéristique de liste de feuilles est utilisée pour décrire un groupe de nœuds feuilles d'un même type.
 
11. Appareil selon l'une quelconque des revendications 8 à 10, dans lequel le ou les champs d'objet correspondant au ième champ de référence comprennent : un ou plusieurs premiers champs d'objet ou un ou plusieurs seconds champs d'objet ;
chaque premier champ d'objet est utilisé pour indiquer un dispositif de niveau inférieur auquel les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence doivent être délivrées ; et
chaque second champ d'objet est utilisé pour indiquer un groupe de dispositifs de niveau inférieur auquel les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence doivent être délivrées.
 
12. Appareil de configuration de dispositif basé sur un protocole de configuration de réseau, NETCONF, l'appareil étant appliqué à un dispositif géré, le dispositif géré étant connecté à un dispositif de gestion de réseau, le dispositif géré étant en outre connecté à un ou plusieurs dispositifs de niveau inférieur et le dispositif de gestion de réseau et le dispositif géré prenant en charge le protocole NETCONF ; et
l'appareil comprenant :

une unité de réception (1010), configurée pour recevoir des données de configuration qui sont envoyées par le dispositif de gestion de réseau en se basant sur un protocole NETCONF, dans lequel les données de configuration sont modélisées par le dispositif de gestion de réseau en utilisant un modèle YANG prédéfini, le modèle YANG prédéfini comprend n champs de référence et un ou plusieurs champs d'objet correspondant séparément à chaque champ de référence, le champ de référence est utilisé pour indiquer un modèle YANG référencé dans le modèle YANG prédéfini, un champ d'objet correspondant à un ième champ de référence est utilisé pour indiquer un dispositif de niveau inférieur cible ou un groupe de dispositifs de niveau inférieur cibles de données de configuration cibles modélisées en utilisant un modèle YANG référencé dans le ième champ de référence, le groupe de dispositifs de niveau inférieur est un groupe comprenant un ou plusieurs dispositifs de niveau inférieur, 1 ≤ i ≤ n et i et n sont des nombres entiers positifs ;

une unité d'analyse (1020), configurée pour analyser les données de configuration en fonction du modèle YANG prédéfini ; et

une unité de configuration (1030), configurée pour configurer un dispositif de niveau inférieur en fonction des données de configuration obtenues à partir d'une analyse.


 
13. Appareil selon la revendication 12, dans lequel l'unité de configuration (1030) est spécifiquement configurée pour :

pour les données de configuration cibles modélisées en utilisant le modèle YANG référencé dans le ième champ de référence, déterminer un dispositif de niveau inférieur cible des données de configuration cibles en fonction du champ d'objet correspondant au ième champ de référence, dans lequel le dispositif de niveau inférieur cible est un dispositif de niveau inférieur indiqué par un champ d'objet correspondant au ième champ de référence ou un dispositif de niveau inférieur dans un groupe de dispositifs de niveau inférieur indiqué par un champ d'objet correspondant au ième champ de référence ; et

envoyer les données de configuration cibles au dispositif de niveau inférieur cible en se basant sur un protocole de gestion de configuration cible, dans lequel le protocole de gestion de configuration cible est un protocole de gestion de configuration pris en charge par le dispositif géré et le dispositif de niveau inférieur cible.


 
14. Appareil selon la revendication 12 ou 13, l'appareil comprenant en outre :
une unité de stockage, configurée pour stocker les données de configuration obtenues à partir d'une analyse dans une base de données de configuration correspondant au modèle YANG prédéfini.
 




Drawing





















REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description