Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 IETF69 BOF XSD for accessing SMIv2 data models Yan Li

Similar presentations


Presentation on theme: "1 IETF69 BOF XSD for accessing SMIv2 data models Yan Li"— Presentation transcript:

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

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

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

4 4 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

5 5 Mapping of Datatypes and Textual Conventions SMI / TCXSD TruthValueBoolean Enumerated INTEGERString (with an enumeration constrain) Numeric Integer (Integer32, Counter, Gauge) Integer and its derivant (int, unsignedInt, long, unsignedLong) Timeticks, TimeInterval, TimeStamp Duration DateAndTimedateTime String (OctetString, DisplayString) String and its derivant Address (IpAddress, MacAddress, InetAddress) String (with a specific pattern)

6 6 Mapping of Datatypes and Textual Conventions (cont.) SMI / TCXSD BITSA list of enumerated string OBJECT IDENTIFIER anyURI String representing an XPath expression

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

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

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

10 10 Mapping of Datatypes Used by Smidump SMI / TCXSD Integer32int OctetStringhexBinary (with restriction of length) Unsigned32, Counter32, Gauge32 unsignedInt Counter64unsignedLong Enumerated INTEGERNMTOKEN (with restriction of enumeration) TimeTicks, TimeStampunsignedInt TimeIntervalint DateAndTimeString (with a specific pattern)

11 11 Mapping of Datatyes Used by Smidump (cont.) SMI / TCXSD OBJECT IDENTIFIERstring (with restriction of length and pattern) BITSA list of enumerated NMTOKEN (The list is restricted by maxLength)

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

13 13 Example of IF-MIB … … … …

14 14 The Output XSD of Smidump read-only 1.3.6.1.2.1.2.2.1.2 current … 255a

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

16 16 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.

17 17 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 -, has a optional “max-repetitions” attribute for retrieving table entries. -, has a optional “operation” attribute for creating or deleting a table entry.

18 18 Example of <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"> <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">

19 19 Example of <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"> <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"/>

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

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


Download ppt "1 IETF69 BOF XSD for accessing SMIv2 data models Yan Li"

Similar presentations


Ads by Google