Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
A 30-minute Introduction to NETCONF and YANGCarl Moberg <calle@tail-f.com>twitter: @cmobergLast updated 2011-11-18
Document Introduction• This is a live documentation that I use to present the state  of NETCONF and YANG in various contex...
Some Background• NETCONF is an IETF configuration management protocol  and YANG is its data modeling language• In response...
NETCONF and YANG Brief TimelineNETCONF                       YANG• 2001                        • 2007  IETF Meeting with p...
So What is NETCONF?• NETCONF is an IETF network management protocol  designed to support management of  configuration, inc...
Ok, So What is YANG• YANG is a data modeling language designed to write data  models for the NETCONF protocol. It provides...
NETCONF Layering Model         Layer                NETCONF        Content            Configuration Data       Operations ...
Basic NETCONF Operations• Get configuration <get-config>   – Retrieve all or part of a specified configuration from a name...
YANG Feature Highlights• YANG definitions directly map to NETCONF (XML) content• YANG uses a compact C and Java-like synta...
YANG Feature Highlights (cont’d)• Organization   – Leaf, leaf-list, container, lists, grouping, choice• Data model structu...
YANG Examplemodule acme-system {    namespace "http://acme.example.com/system";    prefix "acme”;   organization "ACME Inc...
YANG Example (cont’d)        list interface {            key "name";            description "List of interfaces in the sys...
Known NETCONF Vendor Implementations  – Alaxala                                  – Juniper Networks      • Ethernet switch...
Available NETCONF ImplementationsCommercial Products                 Open Source Projects  – Applied Informatics     • POC...
Available YANG Implementations• Commercial Products       • Open Source Projects  –   MG Soft Corporation      –   jYang  ...
Standards Organizations Activities• IETF                                               – YANG models for Service  – NETCON...
Further Reading• IETF NETMOD and NETCONF WG pages:   – http://trac.tools.ietf.org/wg/netconf/trac/wiki   – http://trac.too...
18
Backup Slides                19
Why not use XSD?• XSD defines the syntax of XML instance documents,• YANG defines the semantics of a configuration data mo...
A Layered Comparison                  SNMP   NETCONF   SOAPData models       MIBs   ModulesData Modeling     SMI     YANGL...
Upcoming SlideShare
Loading in …5
×

A 30-minute Introduction to NETCONF and YANG

83,589 views

Published on

This is a live document that I use to present the state of NETCONF and YANG in various contexts. I use it to inform and get conversation going, not to provide complete and final documentation of NETCONF and YANG. I update this document almost monthly, mostly with regards to industry support and working group timelines, check back!

Published in: Technology
  • Hello! I can recommend a site that has helped me. It's called ⇒ www.HelpWriting.net ⇐ So make sure to check it out!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • panels searching for survey takers! ✤✤✤ https://dwz1.cc/v5Fcq3Qr
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Get access to 16,000 woodworking plans. ★★★ https://url.cn/ktFCrsHZ
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

A 30-minute Introduction to NETCONF and YANG

  1. 1. A 30-minute Introduction to NETCONF and YANGCarl Moberg <calle@tail-f.com>twitter: @cmobergLast updated 2011-11-18
  2. 2. Document Introduction• This is a live documentation that I use to present the state of NETCONF and YANG in various contexts• I use it to inform and get conversation going, not to provide complete and final documentation of NETCONF and YANG• I update this document roughly quarterly, mostly with regards to industry support and working group timelines, check back or get in touch! 2
  3. 3. Some Background• NETCONF is an IETF configuration management protocol and YANG is its data modeling language• In response to SNMP/SMI shortcomings for managing configuration e.g.: – Lack of support for simple things like backup-and-restore of element configuration – No concept of transactions (single- or multibox) – Many inherent limitations in SMI (e.g. label length)• Lots of background text in RFC 3535 Overview of the 2002 IAB Network Management Workshop 3
  4. 4. NETCONF and YANG Brief TimelineNETCONF YANG• 2001 • 2007 IETF Meeting with poll of YANG design team proposal SNMP SET usage • Apr 2008• June 2002 NETMOD WG established IAB Network Mgmt Workshop • Oct 2010• May 2003 YANG RFC 6020 published NETCONF WG established• Dec 2006 NETCONF core RFCs published 4
  5. 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 5
  6. 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 6
  7. 7. NETCONF Layering Model Layer NETCONF Content Configuration Data Operations <get> <get-config> <notification> <rpc> RPC <rpc-reply> Transport SSH, SSL, BEEP, etc Protocol 7
  8. 8. Basic NETCONF Operations• Get configuration <get-config> – Retrieve all or part of a specified configuration from a named data store• Get all information <get> – Retrieve running configuration and device state information• Edit configuration <edit-config> – Loads all or part of a specified configuration to the specified target configuration• Copy configuration <copy-config> – Create or replace an entire configuration datastore with the contents of another complete configuration datastore.• Delete configuration <delete-config> – Delete a configuration datastore (not applicable to running)• Lock and unlock <lock>, <unlock> – Short-lived lock and unlock of the configuration system of a device• Close and kill session <close-session>, <kill-session> – Graceful (close) or forced (kill) termination of a NETCONF session 8
  9. 9. YANG Feature Highlights• YANG definitions directly map to NETCONF (XML) content• YANG uses a compact C and Java-like syntax with readability is highest priority• Data type system leverages work done for next-generation SNMP type system accommodating XML and XSD requirements• YANG can be formally translated to DSDL (RelaxNG, Schematron and DSRL) as described in RFC 6110• There is also an informal translation to W3C XML Schema in the pyang tool 9
  10. 10. YANG Feature Highlights (cont’d)• Organization – Leaf, leaf-list, container, lists, grouping, choice• Data model structure – Module, submodule, augment, if-feature, when• Constraints – Must, unique, min-elements, max-elements, mandatory• Data types – Many built-in types, sub-typing, restrictions• Reusable groupings – Grouping, uses 10
  11. 11. YANG Examplemodule acme-system { namespace "http://acme.example.com/system"; prefix "acme”; organization "ACME Inc.”; contact "joe@acme.example.com"; description "The module for entities implementing the ACME system.”; revision 2007-11-05 { description "Initial revision.”; } container system { leaf host-name { type string; description "Hostname for this system”; } 11
  12. 12. YANG Example (cont’d) list interface { key "name"; description "List of interfaces in the system”; leaf name { type string; } leaf type { type string; } leaf mtu { type int32; } } }} 12
  13. 13. Known NETCONF Vendor Implementations – Alaxala – Juniper Networks • Ethernet switches • JUNOS 7.5 and later – BATM/Telco Systems – Nexor • T-Metro 7224 • Messaging Gateways – BigBand – RuggedCom • MSP2800 • RX5000 and MX5000 – Brocade – Sonus • NetIron XMR, CES, and CER • NBS5200 Session Border Controller • MLX Series – Taseon • VDX (Announced, not released) • TN 320 – Cisco – Verivue • IOS 12.4(9)T and later • MDX 9020 • IOS XE 2.1 and later – Edgeware • WTV-2X – Ericsson • SEA 20 Entries in italics is new in this version of the – H3C presentation • S9500E Series Routing Switches Please Note that this list is work in – Huawei • AR3200/2200 Enterprise Routers progress and feedback on accuracy and completeness is strongly encouraged 13
  14. 14. Available NETCONF ImplementationsCommercial Products Open Source Projects – Applied Informatics • POCO NETCONF (server) – Ncclient (client) – Centered Logic – NetconfX (client) • NetconfX (client) – Netconf4Android – Oracle/GoAhead • NETCONF MindAgent (server) (client) – SNMP Research – netconf4j (client) • EPIC NETCONF (server) – netopeer (client/server) – Tail-f Systems • ConfD (server) – YencaP (client/server) • NCS (client) – Yuma (client/server) – Velankani • NOCVue ConfigMan Please Note that this list is work in – WebNMS progress and feedback on accuracy and • WebNMS Framework (client) completeness is strongly encouraged 14
  15. 15. Available YANG Implementations• Commercial Products • Open Source Projects – MG Soft Corporation – jYang – Oracle/GoAhead – libsmi – SNMP Research – Pyang – Tail-f Systems – yang-mode for Emacs – Yuma Please Note that this list is work in progress and feedback on accuracy and completeness is strongly encouraged 15
  16. 16. Standards Organizations Activities• IETF – YANG models for Service – NETCONF working group OAM PM and FM focusing on: – To be published • Access Control • System Notifications – NETMOD (YANG) working group currently focusing on: – YANG module for CCAP: next • Interfaces, routing and system generation cable head-end systems data modules – Part of the Converged Cable • SMIv2-to-YANG translation Access Platform Support – Always updated: System Interface Specification • http://tools.ietf.org/wg/netconf/ • http://tools.ietf.org/wg/netconf/ Please Note that this list is work in progress and feedback on accuracy and completeness is strongly encouraged 16
  17. 17. Further Reading• IETF NETMOD and NETCONF WG pages: – http://trac.tools.ietf.org/wg/netconf/trac/wiki – http://trac.tools.ietf.org/wg/netmod/trac/wiki• NETCONF Central – http://www.netconfcentral.org/• YANG Central – http://www.yang-central.org/twiki/bin/view/Main/WebHome• Instant YANG – an Introduction – http://www.tail-f.com/instant-yang-primer• The NETCONF and YANG Users LinkedIn Group – http://www.linkedin.com/groups/NETCONF-YANG-Users-3301774 17
  18. 18. 18
  19. 19. Backup Slides 19
  20. 20. Why not use XSD?• XSD defines the syntax of XML instance documents,• YANG defines the semantics of a configuration data model and the syntax of XML• For more in-depth reading: – Why we need a NETCONF-Specific Modeling Language (draft- lengyel-why-yang-00.txt) – Comparing Approaches to NETCONF Modeling (CANMOD) BOF (http://tools.ietf.org/agenda/71/canmod.html) 20
  21. 21. A Layered Comparison SNMP NETCONF SOAPData models MIBs ModulesData Modeling SMI YANGLanguageManagement SNMP NETCONFOperationsRPC Protocol BER XML XMLTransport Stack UDP SSH SSL BEEP HTTP SOAP TCP TLS 21

×