IETF69 BOF XSD for accessing SMIv2 data models

Slides:



Advertisements
Similar presentations
Management Information Base for Version 2 of the Simple Network Management Protocol Presented by Zhou Ji (MIB for SNMPv2) By SNMPv2 Working Group.
Advertisements

YANG Boot Camp The YANG Gang IETF 71. YANG Boot Camp The YANG Gang IETF 71.
Managing XML and Semistructured Data Lecture 12: XML Schema Prof. Dan Suciu Spring 2001.
4 XML Schema.
1 Web Data Management XML Schema. 2 In this lecture XML Schemas Elements v. Types Regular expressions Expressive power Resources W3C Draft:
CSE 636 Data Integration XML Schema. 2 XML Schemas W3C Recommendation: Generalizes DTDs Uses XML syntax Two documents: structure.
XML Simple Types CSPP51038 shortcourse. Simple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements.
SNMP Plugin TSC Update December,
SMI MANAGEMENT INFORMATION WITHIN MANAGED SYSTEMS MUST BE REPRESENTED AS: SCALARS TABLES (= TWO DIMENSIONAL ARRAYS OF SCALARS) THE SNMP PROTOCOL CAN ONLY.
COMP4690, by Dr Xiaowen Chu, HKBU
 Existing and future SNMP MIBs represent a tremendous source of network management value, both as data models and – when realized via SNMP agents -- as.
SNMP Management Information
SNMP (Simple Network Management Protocol)
IS432 Semi-Structured Data Lecture 3: XSchema Dr. Gamal Al-Shorbagy.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Dr. Azeddine Chikh IS446: Internet Software Development.
SMI to XSD Translations IETF70 David Harrington. Agenda The Need The Approaches Comparisons.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation XML Schema 2 Lecturer.
CS 453 Computer Networks Lecture 22 Network Management.
Abierman-nanog-30may03 1 XML Router Configs BOF Operator Involvement Andy Bierman
NetConf Data Model draft-adwankar-netconf-datamodel-01.txt Sandeep Adwankar.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
Abierman-netconf-mar03 1 NETCONF BOF 56th IETF San Francisco, California March 17, 2003 Discussion: Admin:
68th IETF – OPS area – XML MIB Modules XML MIB Modules draft-stephan-ops-xml-mib-module-template-00 draft-stephan-ops-xml-mib-module-template-00.
Internet Standard Management Framework
YANG in a Nutshell The YANG Gang IETF 71. YANG has... A reasonable self-contained specification A focus on readers and reviewers Text-based , patch,
SNMP 1. SNMP is an Internet protocol developed by the IETF. It is designed to facilitate the exchange of management information between network elements.
XML Schema for Accessing SMIv2 Data Models IETF69 Chicago BOF David Harrington.
Kalua – A DML for NETCONF
Summary of the SMIng WG The Next Generation Structure of Management Information.
Primer on XML Schema CSE 544 April, XML Schemas Generalizes DTDs Uses XML syntax Two parts: structure and datatypes Very complex –criticized –alternative.
Introduction to XML Schema John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
 Introduction  Structure of Management Information  Practical Issues  Summary 2.
SMI STRUCTURE OF MANAGEMENT INFORMATION RFC 1155: SMIv1
Agenda 1.WSDL & XML Schema Astronomicko-geofyzikálne observatórium, Modra An Order.
IPFIX Information Model Paul Callato, Jeff Meyer, Juergen Quittek 59th IETF meeting, IPFIX session.
111 © 2006, Cisco Systems, Inc. All rights reserved. OSPF-MTR-MIB-IETF OSPFv2 MIB for Multi Topology Routing (MTR) Namita Rawat Rashmi Shrivastava David.
Lecture 2 Recap.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
PG 1 Framework for Netconf Data Models Netmod BOF – IETF 60 Sharon Chisholm –
IP Over InfiniBand Working Group Management Information Bases 55th IETF Atlanta Sean Harnedy InfiniSwitch Corporation
Kalua DML Examples
IPFIX MIB Status Managed Object for IP Flow Export A Status Report Thomas Dietz Atsushi Kobayashi
Netconf Schema Query Mark Scott IETF 70 Vancouver December 2007
1 IETF69 BOF XSD for accessing SMIv2 data models Yan Li
YANG Background and Discussion: Why we need a new language for NETCONF configuration modeling The YANG Gang IETF 70 Vancouver, Canada.
Manajemen Jaringan, Sukiswo ST, MT 1 SNMP Management Information Sukiswo
The Structure of Management Information (SMI) Naming OIDs, Defining OIDs SNMP Operations Hamdamboy Urunov, a Ph.D. Researcher student. Special Communication.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
YANG Modelling and NETCONF Protocol Discussion
YANG Roque Gagliano.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
Simple Network Management Protocol
Using DSDL plus annotations for Netconf (+) data modeling
IP Over InfiniBand Working Group Management Information Bases
SNMP.
Lec7: SNMP Management Information
Karl Quinn 23rd November 2004 NDS M.Sc.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Dept. of Computer Science and Engineering
NETCONF Configuration I/F Advertisement by WSDL and XSD
Chapter 6 SNMPv2 6-1 Network Management: Principles and Practice
Chapter 8: Monitoring the Network
2. SNMP Protocol Objectives Languages: ASN.1, SMI, BER
THE DATATYPES OF XML SCHEMA A Practical Introduction
Henning Schulzrinne Dept. of Computer Science Columbia University
NMRG Report Improving/Enhancing SNMP and SMI
Getting to Know Model-Driven Management With the YANG Catalog
Standards, Models and Language
Presentation transcript:

IETF69 BOF XSD for accessing SMIv2 data models Yan Li liyan_77@huawei.com

Outline Datatypes for Netconf Data Models Using Smidump to Convert MIB to XSD Accessing MIBs using NETCONF

Datatypes for Netconf Data Models Using Smidump to Convert MIB to XSD Accessing MIBs using NETCONF

Background RFC 4181 “Guidelines for Authors and Reviewers of MIB Documents” lists an initial set of commonly used Textual Conventions. Their semantics and syntax could be reused by NETCONF and other XML-based management protocols

Mapping of Datatypes and Textual Conventions SMI / TC XSD TruthValue Boolean Enumerated INTEGER String (with an enumeration constrain) Numeric Integer (Integer32, Counter, Gauge) Integer and its derivant (int, unsignedInt, long, unsignedLong) Timeticks, TimeInterval, TimeStamp Duration DateAndTime dateTime String (OctetString, DisplayString) String and its derivant Address (IpAddress, MacAddress, InetAddress) String (with a specific pattern)

Mapping of Datatypes and Textual Conventions (cont.) SMI / TC XSD BITS A list of enumerated string OBJECT IDENTIFIER anyURI String representing an XPath expression

Open Issues Is the EnabledStatus (P-BRIDGE-MIB) needed? SNMP-Specific TCs - TestAndIncr - RowStatus - StorageType

Next Step Discuss case by case to identify which TCs are needed.

Datatypes for Netconf Data Models Using Smidump to Convert MIB to XSD Accessing MIBs using NETCONF

Mapping of Datatypes Used by Smidump SMI / TC XSD Integer32 int OctetString hexBinary (with restriction of length) Unsigned32, Counter32, Gauge32 unsignedInt Counter64 unsignedLong Enumerated INTEGER NMTOKEN (with restriction of enumeration) TimeTicks, TimeStamp TimeInterval DateAndTime String (with a specific pattern)

Mapping of Datatyes Used by Smidump (cont.) SMI / TC XSD OBJECT IDENTIFIER string (with restriction of length and pattern) BITS A list of enumerated NMTOKEN (The list is restricted by maxLength)

Structure of the XML Instance Documents invented by Smidump Smidump invents a "flattened" structure of the XML instance documents <snmp-data> | +--<context> +--A container of scalar elements (one or more) | | | +--scalar objects +--An instance of table entry (one or more) +--columnar objects

Example of IF-MIB <snmp-data xmlns="http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/IF-MIB"> <context ipaddr=“…” hostname=“…” port=“…” community=“…” time=“…”> <interfaces> <ifNumber>…</ifNumber> </interfaces> <ifMIBObjects> <ifTableLastChange>…</ifTableLastChange> <ifStackLastChange>…</ifStackLastChange> </ifMIBObjects> <ifEntry ifIndex="1"> <ifType>…</ifType> … </ifEntry> <ifXEntry>…</ifXEntry> <ifStackEntry>…</ifStackEntry> <ifTestEntry>…</ifTestEntry> <ifRcvAddressEntry>…</ifRcvAddressEntry> </context> </snmp-data>

The Output XSD of Smidump <xsd:element name="ifDescr" minOccurs="0"> <xsd:annotation> <xsd:appinfo> <maxAccess>read-only</maxAccess> <oid>1.3.6.1.2.1.2.2.1.2</oid> <status>current</status> </xsd:appinfo> <xsd:documentation>…</xsd:documentation> </xsd:annotation> <xsd:simpleType> <displayHint>255a</displayHint> <xsd:restriction base="xsd:string"> <xsd:pattern value="((((\p{IsBasicLatin})){0,255})){0,1}"/> </xsd:restriction> </xsd:simpleType> </xsd:element>

Datatypes for Netconf Data Models Using Smidump to Convert MIB to XSD Accessing MIBs using NETCONF

Motivation There is no data model for NETCONF, even a data modeling language at this time. But operators expect device vendors support NETCONF right now. What data models should device vendors provide? The proprietary data models impair interoperability between devices and applications from different vendors. Actually it is another version of CLI. The standard data models for NETCONF are destined to replace the proprietary data models in the near future. So device vendors will gain little return from developing proprietary data models There is a need for standard data models for transiting toward NETCONF, the SMI MIB is an alternative - SMI MIB is widely used for a long time, there are over 200 standard MIB modules -There is an open source tool, libsmi, which can convert SMI MIB into XSD conveniently A standard approach for accessing MIB may be used by not only NETCONF, but other XML-based NM protocols as well.

Approach for Accessing MIB Use the XSD converted by smidump as data model Add a capability for NETCONF The capability contains two SNMP-specific operations - <mib-get>, has a optional “max-repetitions” attribute for retrieving table entries. - <mib-set>, has a optional “operation” attribute for creating or deleting a table entry.

Example of <mib-get> <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:mib="urn:ietf:params:xml:ns:netconf:mib:1.0"> <mib:mib-get> <filter type="subtree"> <snmp-data xmlns="http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/IF-MIB"> <context ipaddr="192.0.2.1" port="830" community="public" time="2006-12-05T08:08:08Z"> <ifEntry ifIndex="1"> <ifType/> <ifMtu/> </ifEntry> </context> </snmp-data> </filter> </mib:mib-get> </rpc>

Example of <mib-set> <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:mib="urn:ietf:params:xml:ns:netconf:mib:1.0"> <mib:mib-set> <snmp-data xmlns="http://www.ibr.cs.tu-bs.de/projects/libsmi/xsd/IF-MIB"> <context ipaddr="192.0.2.1" port="830" community="public" time="2006-12-05T08:08:08Z"> <ifStackEntry ifStackHigherLayer="1" ifStackLowerLayer="2" mib:operation="create"/> </context> </snmp-data> </mib:mib-set> </rpc>

Open Issues <mib-get> vs. <get> Should the “max-repetitions” attribute be inherited from SNMP? Is the set functionality needed?

Thank You Questions? Contact info Yan Li – liyan_77@huawei.com