Cisco NETCONF and NETCONF-YANG may seem to be the same. They aren’t the same in any way, but they are used at the same level. Both these together help in networking and are part of modern networking systems. The need for both Cisco NETCONF and NETCONF-YANG has arrived due to the limitation of traditional CLI modes and SNMP in a cloud-based network.
Cisco NETCONF vs NETCONF-YANG
The main difference between Cisco NETCONF and NETCONF-YANG is that Cisco NETCONF is a network protocol, whereas NETCONF-YANG is a data model. The Cisco NETCONF is a protocol responsible for managing definition differences between devices of different vendors. Whereas the NETCONF-YANG is responsible for pushing configuration to different devices and pulling configuration from different devices.
Cisco NETCONF is responsible for configuring network devices. It can be one to many or many to one networking device. In simple words, it helps to automate the configuration of devices. Cisco NETCONF works to solve the problem of definition differences of different vendors. Cisco NETCONF uses a C/S communication mode that makes the work of engineers very easy.
NETCONF-YANG is an important part of Cisco NETCONF as it helps the client and server communicate with each other forming a data model. It helps in pulling and pushing configuration. NETCONF-YANG is the reason why management applications and routers or switches identify XML packages sent by each other.
Comparison Table Between Cisco NETCONF and NETCONF-YANG
Parameters of Comparison | Cisco NETCONF | NETCONF-YANG |
Definition | It is a network management protocol. | NETCONF-YANG is a data model of NETCONF. |
Function | It is responsible for managing definition differences between devices. | It is responsible for pushing and pulling those configurations. |
Formation | It has several hierarchical protocol frameworks. | It is a part of the hierarchical protocol framework of Cisco NETCOF. |
Replacement to | It is a replacement for traditional CLI modes and SNMP. | It is a new type of data model. |
Providers | It is only provided by Cisco. | It has several providers like Cisco, Juniper, and Ericsson |
What is Cisco NETCONF?
Cisco NETCONF is a protocol for the management of network devices. It works for acquiring the network configuration and status. It is a protocol similar to SNMP. SNMP uses MIB files to model data in the same way Cisco NETCONF uses YANG to describe data models so as to facilitate communication.
The demand for Cisco NETCONF arrived because of several disadvantages of traditional CLI modes and SNMP in a cloud-based network. In a traditional SNMP, there is a man and machine interface. Its configuration is complex, and the cost of manual learning, configuration, and maintenance is high.
In SNMP, the configuration varies with vendors, which makes the device interworking difficult. This increases engineers’ work as they need to break down the client requirement into specific functions. Moreover, an engineer focuses less on client requests and more on the device, which leads to a wastage of time.
All these limitations are satisfied by Cisco NETCONF as it focuses on the definition differences between different devices of different vendors. Cisco NETCONF has high efficiency than SNMP. NETCONF uses the C/S communication mode. Generally, NMS functions as a client, and a router or switch functions as a server. NETCONF uses a hierarchical protocol framework including the content layer, operations layer, messages layer, and secure transport layer.
What is NETCONF-YANG?
NETCONF-YANG is a data model of NETCONF. It is responsible for the content layer of the NETCONF hierarchical protocol framework. A YANG model helps in receiving and delivering the configuration between a client and a server.
Since the same YANG model exists on the client and the server, the XML packets generated by the client that complies with network communication requirements are delivered to the server, which is hence able to identify the XML packets. The server further performs operations that are needed to achieve communication.
In simple words, the NETCONF-YANG is responsible for configuration, status, and statistics isolation. The speed of this configuration is far faster than that of a traditional SNMP. A NETCONF-YANG is also responsible for modeling the state of key layers in NETCONF. NETCONF-YANG facilitates communication in all different types of different devices. Hence the device type is not an issue when NETCONF-YANG is present for configuration.
Overall NETCONF-YANG is an important part of NETCONF. Without NETCONF-YANG, there could be no possibility of communication between the client and the server. It is the same as two people not having a common language to communicate, and NETCONF-YANG hence comes to the rescue.
Main Differences Between Cisco NETCONF and NETCONF-YANG
- Cisco NETCONF is responsible for managing definition differences between devices, whereas NETCONF-YANG is responsible for pushing and pulling those configurations.
- Cisco NETCONF is a network management protocol, whereas NETCONF-YANG is a data model of NETCONF.
- Cisco NETCONF has several hierarchical protocol frameworks that include the content layer, operations layer, messages layer, and secure transport layer. The NETCONF-YANG is a part of the content layer of the cisco NETCONF.
- Cisco NETCONF is a network management protocol of its own, whereas NETCONF-YANG is just a small part of the protocol.
- NETCONF-YANG is a data model which is supported in all the providers like Cisco, Juniper, and Ericsson, whereas Cisco NETCONF is only supported in Cisco.
Conclusion
NETCOF is a network protocol that was invented or formed as traditional CLI modes, and SNMP was not able to provide all requirements of traditional CLI modes and SNMP. Cisco also does provide this facility which is called Cisco NETCONF. NETCONF-YANG is a part of NETCOF and hence becomes a part of Cisco NETCONF as well. It helps in pulling and pushing configurations that are deleted, created, and manipulated by Cisco NETCOF. Hence it can be concluded that both Cisco NETCONF and NETCONF-YANG work together to provide better automated network management.
References
- https://www.tail-f.com/wordpress/wp-content/uploads/2015/02/HR-Cisco-ALU-TOSCA-YANG-WP-2-17-15.pdf
- https://ieeexplore.ieee.org/abstract/document/5560601/