SlideShare a Scribd company logo
1 of 16
Learning Netconf/Yang
from Scratch
25 April 2018
NETCONF?
YANG?
Some Background
01
02
NETCONF is an IETF configuration management
protocol and YANG is its data modeling language
SNMP
– Lack of support
– No concept of transactions
NETCONF and YANG Brief Timeline
IETF Meeting with poll of
SNMP SET usage
2001
IAB Network Mgmt Workshop
June 2012
NETCONF WG established
May 2003
YANG design team proposal
2007
NETMOD WG established
April 2008
YANG RFC 6020 published
Oct 2010
01
02
03
01
02
03
NETCONF YANG
NETCONF core RFCs
published
Dec 2006
04
So What is NETCONF?
NETCONF is an IETF network management protocol designed to support management of configuration,
including:
– Distinction between configuration and state data
– Multiple configuration data stores (candidate, running, startup)
– Configuration change validations
– Configuration change transactions
– Selective data retrieval with filtering
– Streaming and playback of event notifications
– Extensible remote procedure call mechanism
Ok, So What is YANG
YANG is a data modeling language designed to write data models for the NETCONF protocol.
It provides the following features:
– Human readable, and easy to learn representation
– Hierarchical configuration data models
– Reusable types and groupings (structured types)
– Extensibility through augmentation mechanisms
– Supports definition of operations (RPCs)
– Formal constraints for configuration validation
– Data modularity through modules and sub-modules
– Well defined versioning rules
NETCONF Layering Model
Basic NETCONF Operations
1. Get configuration <get-config>
Retrieve all or part of a specified configuration from a named data store
2. Get all information <get>
Retrieve running configuration and device state information
3. Edit configuration <edit-config>
Loads all or part of a specified configuration to the specified target
configuration
4. Copy configuration <copy-config>
Create or replace an entire configuration datastore with the contents of
another complete configuration datastore.
Basic NETCONF Operations
6. Delete configuration <delete-config>
Delete a configuration datastore (not applicable to running)
7. Lock and unlock <lock>, <unlock>
Short-lived lock and unlock of the configuration system of a device
8. Close and kill session <close-session>, <kill-session>
Graceful (close) or forced (kill) termination of a NETCONF session
YANG Feature Highlights
Leaf, leaf-list, container, lists, grouping, choice
Organization
Module, submodule, augment, if-feature, when
Data model structure
Must, unique, min-elements, max-elements,
mandatory
Constraints
01
02
03
Many built-in types, sub-typing, restrictions
Data types
04
Grouping, uses
Reusable groupings
05
YANG Example
YANG Example
Known NETCONF Vendor Implementations
Brocade
• NetIron XMR, CES, and CER
• MLX Series
• VDX (Announced, not released)
Cisco
• IOS 12.4(9)T and later
• IOS XE 2.1 and later
Juniper Networks
• JUNOS 7.5 and later
Huawei
• AR3200/2200 Enterprise Routers
Available NETCONF Implementations
– Applied Informatics
POCO NETCONF (server)
– Centered Logic
NetconfX (client)
– Oracle/GoAhead
NETCONF MindAgent (server)
– SNMP Research
EPIC NETCONF (server)
– Tail-f Systems
ConfD (server)
NCS (client)
Open Source Projects Open Source Projects
– Ncclient (client)
– NetconfX (client)
– Netconf4Android (client)
– netconf4j (client)
– netopeer (client/server)
– YencaP (client/server)
Overview
YANG RFC Overview
• RFC 6020 YANG Base Specification
• RFC 6021 YANG Types
• RFC 6087 Guidelines for YANG
Authors and Reviewers
• RFC 6110 Mapping and Validating
YANG
• RFC 6244 NETCONF+Yang
Architectural Overview
• RFC 6643 Translation of SMIv2 MIBs to
YANG
NETCONF RFC Overview
• RFC 3535 Informational: Background
• RFC 6244 NETCONF+YANG
Architectural Overview
• RFC 6241 Base NETCONF Protocol
• RFC 6242, 4743-4744, 5539 Transport
Mappings
• RFC 5277 Notifications
• RFC 5717 Partial Locking
• RFC 6243 With defaults
• RFC 6470 Base Notifications
• RFC 6536 NETCONF Access Control
Model
Thank you

More Related Content

What's hot

What's hot (20)

Application Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centreApplication Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centre
 
Advanced: 5G Service Based Architecture (SBA)
Advanced: 5G Service Based Architecture (SBA)Advanced: 5G Service Based Architecture (SBA)
Advanced: 5G Service Based Architecture (SBA)
 
Tutorial: Using GoBGP as an IXP connecting router
Tutorial: Using GoBGP as an IXP connecting routerTutorial: Using GoBGP as an IXP connecting router
Tutorial: Using GoBGP as an IXP connecting router
 
ConfD で Linux にNetconfを喋らせてみた
ConfD で Linux にNetconfを喋らせてみたConfD で Linux にNetconfを喋らせてみた
ConfD で Linux にNetconfを喋らせてみた
 
Nwdafまとめ
NwdafまとめNwdafまとめ
Nwdafまとめ
 
スイッチ・ルータのしくみ
スイッチ・ルータのしくみスイッチ・ルータのしくみ
スイッチ・ルータのしくみ
 
ネットワーク構築訓練 入門
ネットワーク構築訓練 入門ネットワーク構築訓練 入門
ネットワーク構築訓練 入門
 
Module 2: Why NETCONF and YANG
Module 2: Why NETCONF and YANGModule 2: Why NETCONF and YANG
Module 2: Why NETCONF and YANG
 
Getting started with YANG
Getting started with YANGGetting started with YANG
Getting started with YANG
 
ACI MultiPod 구성
ACI MultiPod 구성ACI MultiPod 구성
ACI MultiPod 구성
 
SRv6 study
SRv6 studySRv6 study
SRv6 study
 
30分でわかる! コンピュータネットワーク
30分でわかる! コンピュータネットワーク30分でわかる! コンピュータネットワーク
30分でわかる! コンピュータネットワーク
 
Introduction to 5G by Doug Hohulin
Introduction to 5G by Doug HohulinIntroduction to 5G by Doug Hohulin
Introduction to 5G by Doug Hohulin
 
Обзор протокола Netconf/YANG и его применение для управления услугами
Обзор протокола Netconf/YANG и его применение для управления услугамиОбзор протокола Netconf/YANG и его применение для управления услугами
Обзор протокола Netconf/YANG и его применение для управления услугами
 
ONIC2017 プログラマブル・データプレーン時代に向けた ネットワーク・オペレーションスタック
ONIC2017 プログラマブル・データプレーン時代に向けた ネットワーク・オペレーションスタックONIC2017 プログラマブル・データプレーン時代に向けた ネットワーク・オペレーションスタック
ONIC2017 プログラマブル・データプレーン時代に向けた ネットワーク・オペレーションスタック
 
5 g network white paper
5 g network white paper 5 g network white paper
5 g network white paper
 
NFV foundation/NFV For Dummies
NFV foundation/NFV For DummiesNFV foundation/NFV For Dummies
NFV foundation/NFV For Dummies
 
ネットワークの自動化・監視の取り組みについて #netopscoding #npstudy
ネットワークの自動化・監視の取り組みについて #netopscoding #npstudyネットワークの自動化・監視の取り組みについて #netopscoding #npstudy
ネットワークの自動化・監視の取り組みについて #netopscoding #npstudy
 
OpenShift Kubernetes Native Infrastructure for 5GC and Telco Edge Cloud
OpenShift  Kubernetes Native Infrastructure for 5GC and Telco Edge Cloud OpenShift  Kubernetes Native Infrastructure for 5GC and Telco Edge Cloud
OpenShift Kubernetes Native Infrastructure for 5GC and Telco Edge Cloud
 
Telemetry事始め
Telemetry事始めTelemetry事始め
Telemetry事始め
 

Similar to Learning netconf yang from scratch

3. od hw x86_clusters-v1.2-fb
3. od hw x86_clusters-v1.2-fb3. od hw x86_clusters-v1.2-fb
3. od hw x86_clusters-v1.2-fb
Doina Draganescu
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
Hideyuki Kawashima
 
What is new in .NET 4.5
What is new in .NET 4.5What is new in .NET 4.5
What is new in .NET 4.5
Robert MacLean
 
Net app course content
Net app course contentNet app course content
Net app course content
syed m
 
SDN_and_NFV_technologies_in_IoT_Networks
SDN_and_NFV_technologies_in_IoT_NetworksSDN_and_NFV_technologies_in_IoT_Networks
SDN_and_NFV_technologies_in_IoT_Networks
Srinivasa Addepalli
 

Similar to Learning netconf yang from scratch (20)

DEVNET-1152 OpenDaylight YANG Model Overview and Tools
DEVNET-1152	OpenDaylight YANG Model Overview and ToolsDEVNET-1152	OpenDaylight YANG Model Overview and Tools
DEVNET-1152 OpenDaylight YANG Model Overview and Tools
 
Introduction to YANG data models and their use in OpenDaylight: an overview
Introduction to YANG data models and their use in OpenDaylight: an overviewIntroduction to YANG data models and their use in OpenDaylight: an overview
Introduction to YANG data models and their use in OpenDaylight: an overview
 
YANG (哪)
YANG (哪)YANG (哪)
YANG (哪)
 
Data models-and-automation-jp
Data models-and-automation-jpData models-and-automation-jp
Data models-and-automation-jp
 
Cisco Connect Toronto 2018 model-driven programmability for cisco ios xr-v1
Cisco Connect Toronto 2018   model-driven programmability for cisco ios xr-v1Cisco Connect Toronto 2018   model-driven programmability for cisco ios xr-v1
Cisco Connect Toronto 2018 model-driven programmability for cisco ios xr-v1
 
3. od hw x86_clusters-v1.2-fb
3. od hw x86_clusters-v1.2-fb3. od hw x86_clusters-v1.2-fb
3. od hw x86_clusters-v1.2-fb
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
 
Lenovo Servers and Microsoft Azure: the future of the stack
Lenovo Servers and Microsoft Azure: the future of the stackLenovo Servers and Microsoft Azure: the future of the stack
Lenovo Servers and Microsoft Azure: the future of the stack
 
What is new in .NET 4.5
What is new in .NET 4.5What is new in .NET 4.5
What is new in .NET 4.5
 
SDN and metrics from the SDOs
SDN and metrics from the SDOsSDN and metrics from the SDOs
SDN and metrics from the SDOs
 
Using Netconf/Yang with OpenDalight
Using Netconf/Yang with OpenDalightUsing Netconf/Yang with OpenDalight
Using Netconf/Yang with OpenDalight
 
SCAP and NETCONF
SCAP and NETCONFSCAP and NETCONF
SCAP and NETCONF
 
ION Santiago: What's Happening at the IETF? Internet Standards and How to Get...
ION Santiago: What's Happening at the IETF? Internet Standards and How to Get...ION Santiago: What's Happening at the IETF? Internet Standards and How to Get...
ION Santiago: What's Happening at the IETF? Internet Standards and How to Get...
 
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentConfiguration of IoT devices - Systems managament
Configuration of IoT devices - Systems managament
 
PLNOG19 - Krzysztof Mazepa - Yang Development Kit – stwórz swój pierwszy prog...
PLNOG19 - Krzysztof Mazepa - Yang Development Kit – stwórz swój pierwszy prog...PLNOG19 - Krzysztof Mazepa - Yang Development Kit – stwórz swój pierwszy prog...
PLNOG19 - Krzysztof Mazepa - Yang Development Kit – stwórz swój pierwszy prog...
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptx
 
Net app course content
Net app course contentNet app course content
Net app course content
 
OpenStack with OpenDaylight
OpenStack with OpenDaylightOpenStack with OpenDaylight
OpenStack with OpenDaylight
 
SDN_and_NFV_technologies_in_IoT_Networks
SDN_and_NFV_technologies_in_IoT_NetworksSDN_and_NFV_technologies_in_IoT_Networks
SDN_and_NFV_technologies_in_IoT_Networks
 
Linux Assignment 3
Linux Assignment 3Linux Assignment 3
Linux Assignment 3
 

More from Telematika Open Session (9)

Netconf yang
Netconf yangNetconf yang
Netconf yang
 
ceph software defined storage
ceph software defined storageceph software defined storage
ceph software defined storage
 
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylightSDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
 
Learning OpenFlow with OVS on BPI R1 and Zodiac FX
Learning OpenFlow with OVS on BPI R1 and Zodiac FXLearning OpenFlow with OVS on BPI R1 and Zodiac FX
Learning OpenFlow with OVS on BPI R1 and Zodiac FX
 
Network security
Network securityNetwork security
Network security
 
DevOps Introduction - Why Network Engineer Should Learn Programming
DevOps Introduction - Why Network Engineer Should Learn ProgrammingDevOps Introduction - Why Network Engineer Should Learn Programming
DevOps Introduction - Why Network Engineer Should Learn Programming
 
From network beginner to network programmer.v2
From network beginner to network programmer.v2From network beginner to network programmer.v2
From network beginner to network programmer.v2
 
Cloud managed networking
Cloud managed networkingCloud managed networking
Cloud managed networking
 
Paving your way to become a network engineer
Paving your way to become a network engineerPaving your way to become a network engineer
Paving your way to become a network engineer
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Learning netconf yang from scratch

  • 3. Some Background 01 02 NETCONF is an IETF configuration management protocol and YANG is its data modeling language SNMP – Lack of support – No concept of transactions
  • 4. NETCONF and YANG Brief Timeline IETF Meeting with poll of SNMP SET usage 2001 IAB Network Mgmt Workshop June 2012 NETCONF WG established May 2003 YANG design team proposal 2007 NETMOD WG established April 2008 YANG RFC 6020 published Oct 2010 01 02 03 01 02 03 NETCONF YANG NETCONF core RFCs published Dec 2006 04
  • 5. So What is NETCONF? NETCONF is an IETF network management protocol designed to support management of configuration, including: – Distinction between configuration and state data – Multiple configuration data stores (candidate, running, startup) – Configuration change validations – Configuration change transactions – Selective data retrieval with filtering – Streaming and playback of event notifications – Extensible remote procedure call mechanism
  • 6. Ok, So What is YANG YANG is a data modeling language designed to write data models for the NETCONF protocol. It provides the following features: – Human readable, and easy to learn representation – Hierarchical configuration data models – Reusable types and groupings (structured types) – Extensibility through augmentation mechanisms – Supports definition of operations (RPCs) – Formal constraints for configuration validation – Data modularity through modules and sub-modules – Well defined versioning rules
  • 8. Basic NETCONF Operations 1. Get configuration <get-config> Retrieve all or part of a specified configuration from a named data store 2. Get all information <get> Retrieve running configuration and device state information 3. Edit configuration <edit-config> Loads all or part of a specified configuration to the specified target configuration 4. Copy configuration <copy-config> Create or replace an entire configuration datastore with the contents of another complete configuration datastore.
  • 9. Basic NETCONF Operations 6. Delete configuration <delete-config> Delete a configuration datastore (not applicable to running) 7. Lock and unlock <lock>, <unlock> Short-lived lock and unlock of the configuration system of a device 8. Close and kill session <close-session>, <kill-session> Graceful (close) or forced (kill) termination of a NETCONF session
  • 10. YANG Feature Highlights Leaf, leaf-list, container, lists, grouping, choice Organization Module, submodule, augment, if-feature, when Data model structure Must, unique, min-elements, max-elements, mandatory Constraints 01 02 03 Many built-in types, sub-typing, restrictions Data types 04 Grouping, uses Reusable groupings 05
  • 13. Known NETCONF Vendor Implementations Brocade • NetIron XMR, CES, and CER • MLX Series • VDX (Announced, not released) Cisco • IOS 12.4(9)T and later • IOS XE 2.1 and later Juniper Networks • JUNOS 7.5 and later Huawei • AR3200/2200 Enterprise Routers
  • 14. Available NETCONF Implementations – Applied Informatics POCO NETCONF (server) – Centered Logic NetconfX (client) – Oracle/GoAhead NETCONF MindAgent (server) – SNMP Research EPIC NETCONF (server) – Tail-f Systems ConfD (server) NCS (client) Open Source Projects Open Source Projects – Ncclient (client) – NetconfX (client) – Netconf4Android (client) – netconf4j (client) – netopeer (client/server) – YencaP (client/server)
  • 15. Overview YANG RFC Overview • RFC 6020 YANG Base Specification • RFC 6021 YANG Types • RFC 6087 Guidelines for YANG Authors and Reviewers • RFC 6110 Mapping and Validating YANG • RFC 6244 NETCONF+Yang Architectural Overview • RFC 6643 Translation of SMIv2 MIBs to YANG NETCONF RFC Overview • RFC 3535 Informational: Background • RFC 6244 NETCONF+YANG Architectural Overview • RFC 6241 Base NETCONF Protocol • RFC 6242, 4743-4744, 5539 Transport Mappings • RFC 5277 Notifications • RFC 5717 Partial Locking • RFC 6243 With defaults • RFC 6470 Base Notifications • RFC 6536 NETCONF Access Control Model