SlideShare a Scribd company logo
1 of 24
MIB Testing

     Dr. K. Arvind
    Networks Engineering
Digital Equipment Corporation



     Session:     NE016
     Date:       June 9, 1993
     Time:       12:00 - 1:00 PM




                                   Slide No. 1
PLAN

1. Management Information Base
   (MIB) Framework
2. MIB Testing.
3. MIB Test Engine (MTE).
4. Current Status.




                                 Slide No. 2
Management
      Information Base


1. Internet-standard Network
   Management Framework
2. SMI: Structure of Management
   Information.
   RFC 1155.
3. MIB: Management Information Base
   RFC 1213, ...
4. Mechanism: Simple Network
   Management Protocol (SNMP).
   RFC1157.




                                  Slide No. 3
SMI
1. Structure of management
   information:
  A. Tree structured.
  B. Descendants of the internet
     node (1.3.6.1) in the ASN.1
     naming tree.
2. Components of management
   information:
  A. Example
  B. Object types and instances
  C. New data types:
     DisplayString, IpAddress, Counter,
     Gauge, TimeTicks, Opaque




                                          Slide No. 4
OBJECT-TYPE
          EXAMPLE
sysDescr OBJECT-TYPE
  SYNTAX DisplayString (SIZE (0..255))
  ACCESS read-only
  STATUS mandatory
  DESCRIPTION
       quot;A textual description of the entity.
        This value should include the full
        name and version identification of
        the system’s hardware and
        software operating-system, and
        networking software.It is
        mandatory that this only contain
        printable ASCII characters.quot;
   ::= {system 1}

1.   Object-type:       sysDescr
     Object identifier: system.1 = 1.3.6.1.2.1.1.1

2.   Attributes:
     Syntax, Access, Status

3.   Description




                                                Slide No. 5
MIB
1. Management Information Base:
  A. Collection of Managed
     Objects.
  B. Documents defining the
     collection.
2. MIB-II: Core set of objects to be
   implemented by all TCP/IP
   nodes.
3. Other MIBs
   A. Extensions to MIB-II
   B. Experimental subtree
   C. Enterprises subtree




                                   Slide No. 6
What is MTE?
1. MIB Test Engine
   MIB Test Environment
2. Quality Assurance support for
   management firmware.
3. Integrated test engine for
   a posteriori testing of MIB
   implementations.
4. Collection of tools to support
   testing and debugging.of
   management firmware.




                                    Slide No. 7
MTE Features
1. Regression testing
2. High degree of automation
3. Test Information Management
4. Composite tool set
  A. Translation tools
  B. Generation tools
  C. Interrogation tools
  D. Management tools
5. PERL !!!
6. Standard Style




                                 Slide No. 8
MTE Paradigm

Product         QA
               System          Pass/Fail
Specs           eq(p,s)?




 Product: Management firmware,
          e.g., repeater, bridge, hub
 Specs:   Relevant MIBs
          e.g., MIB-II, rfc1368, etc.




                                           Slide No. 9
MTE Organization



                                  Product
                         Test
                         Script
Specs       Translate             Execute    Pass/Fail
             Translate             Execute




        Not as simple as it appears !!!
 1. Specification notation
 2. Composite object
 3. Manual intervention




                                                  Slide No. 10
OTE Organization

MIB           MIBC
              MIBC

                         TGEN
                          TGEN
Aux           AUXC
              AUXC




                         a
      TIBTOOLS
        TIBTOOLS
                         TIB
                         TIB
                         T
                         TIB


CMW     LCE        NMS
                             MODULE
                             UNDER
                              TEST




                                      Slide No. 11
MIBC
         MIB         MIBC
                     MIBC




1. Applications
     A. Input for TGEN

     B. ASN.1 conformance

     C. Online reference

     D. Name/OID maps

2.   Limitations:
     Not a generalized ASN.1 compiler.
     Understands only the subset of ASN.1
     used in MIB specifications.

3.   Example:
     mibc -f rfc1213.mib
     mibc -m -f rfc1213.mib >rfc1213.map
     mibc oid sysDescr




                                            Slide No. 12
AUXC

          AUX              MIBC
                           AUXC




1. Generates input for TGEN
2.   AUX: Notation for specifying auxiliary
     information not deducible from MIBs.

3.   Auxiliary information:
     A. Overide SYNTAX/ACCESS fields
     B. Dependencies
     C. Traps
     D. Volatility
     E. Configurability
     F. Table bounds

4. Example:
     portControlObject:nt:trunkControlObject{(1 2)}




                                                      Slide No. 13
TGEN

                              PERL scripts
    from MIBC          MIBC
    from AUXC          TGEN
                              English specs




1. Test generator
2. Test scripts and specifications
3. Test types
  A. existense
  B. modifiability
  C. configurability
  D. traps
  E. dependency
  F. volatility




                                              Slide No. 14
SCRIPT EXAMPLE
#!/usr/local/bin/perl -s
#######################################################
# die quot;TIBTOOLS directory undefinedquot; unless $ENV{’TIBTOOLS’}
# require quot;$ENV{’TIBTOOLS’}/mib_script.plquot;;
#######################################################

&test(quot;generic-rfc9999.10.1.1.3.6.1.4.1.999.2.2.0.1quot;);

&step (quot;get moduleIpAddressquot;);
&getmib(quot;moduleIpAddressquot;);
&fail unless (!$err &&
              ($value =~ /^[0-9]+(.[0-9]+){3}$/));
$save = $value;

&step(quot;compare with extIpAddressquot;);
&getmib(quot;extIpAddressquot;);
&fail unless (!$err &&
              ($value eq $save));

#################### #
# PASS DECLARATION #
#####################
 &pass;




                                                               Slide No. 15
SPEC EXAMPLE
Test generic-rfc9999.10.1.1.3.6.1.4.1.999.2.2.0.1

SUMMARY
Make sure that the mandatory mib object:
      1.3.6.1.4.1.999.2.2.0.1 (moduleIpAddress)
is readable and has a permissible value. Also
verify that any other mib object that should
track the value of this object does so.

DESCRIPTION
(1) Do a get on:
    1.3.6.1.4.1.999.2.2.0.1 (moduleIpAddress).
    -- The get must be successful and the value
       must match:
         pattern(/^[0-9]+(.[0-9]+){3}$/).

(2) Do a get on:
         extIpAddress.
    -- The get must be successful and the value
       must be equal to the value obtained in
       Step(1)




                                             Slide No. 16
TIB

    TIBTOOLS
                      TIB
                      TIB
                      TIB


1. Test Information Management
2. Modeled after the SNMP MIB
   framework
3. Components
   A. STI: Structure of test
           information
   B. TIB: Test Information Base
   C. MTI: Management of test
            information




                                   Slide No. 17
STI
                               root
          0             1       2              3
          misc         int     ext       ...
    0     1        2
  misc                    3         4
         com     tr      rep      fddi
    0      1    2
 commisc comp1 comp2
      0      1




1. Structure of test information
2. Classification is important for
   management
3. Tree structured space
4. Nomenclature: tib identifiers
5. Batteries: Interior nodes
6. Tests: Leaves



                                                   Slide No. 18
TIB

1. Test: Abstract entity
2. Test Information Base
3. TIB files:
   a. Script file
   b. Initialization script file (.init)
   c. Specification file (.spec)
   d. Synopsis file (.synopsis)
   e. Command file (.com)
   f. Reference file (.ok)
   g. Result file (.res)
   h. Time file (.time)
   i. Special instructions file (.ins)




                                      Slide No. 19
MTI
1. Management of Test Information

2. Operations:

   A. Information creation and structuring

   B. Information retrieval

   C. Running tests

3. TIBTOOLS: Toolkit
   A. Information creation and structuring
      a. mktree, rmtree, rmbat
      b. mktest, rmtest
      c. mvnode, cpnode
      d. tibedit
   B. Information retrieval
      a. battery
      b. tibfiles, tibspecs, tibres, tibstat
   C. Running tests
      a. tibrun, cmptest
      b. bugmail
   D. Miscellaneous operations
      a. deftest, defbat, deftree
      b. tibnext




                                               Slide No. 20
Interrogation Tools
1. NMS
2. CMW
3. LCE




                   Slide No. 21
NMS
1. Network Management Station.
2. Interactive MIB tool
3. MIB operations:
   (a) get, getnext, set
   (b) MIB walk
   (c) encode, decode protocol
       frames
   (d) map names/OIDs
   (e) Online MIB reference
   (f) Simple scripts
4. On-line help




                                 Slide No. 22
Current Status

1. In active use for testing various
   products.
2. Enormous savings in testing time and
   effort.




                                       Slide No. 23
Summary
1. Alphabet Soup:
   aux, auxc, cmw, lce, mib, mibc, mte, mti, oid, qa,
   sti, tgen, tib, ...

2. MIB framework
3. What is MTE?
4. MTE organization.
5. Current status.




                                                  Slide No. 24

More Related Content

Similar to MIB Test Environment

Cray XT Porting, Scaling, and Optimization Best Practices
Cray XT Porting, Scaling, and Optimization Best PracticesCray XT Porting, Scaling, and Optimization Best Practices
Cray XT Porting, Scaling, and Optimization Best PracticesJeff Larkin
 
Simple Network Management Protocole
Simple Network Management ProtocoleSimple Network Management Protocole
Simple Network Management ProtocoleAmin Komeili
 
DO-178C OOT supplement: A user's perspective
DO-178C OOT supplement: A user's perspectiveDO-178C OOT supplement: A user's perspective
DO-178C OOT supplement: A user's perspectiveAdaCore
 
Circonus: Design failures - A Case Study
Circonus: Design failures - A Case StudyCirconus: Design failures - A Case Study
Circonus: Design failures - A Case StudyHeinrich Hartmann
 
Computernetworkingkurosech9 091011003335-phpapp01
Computernetworkingkurosech9 091011003335-phpapp01Computernetworkingkurosech9 091011003335-phpapp01
Computernetworkingkurosech9 091011003335-phpapp01AislanSoares
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparationpratik mohite
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA   New Questions 29Tuts.Com New CCNA 200-120 New CCNA   New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2Lori Head
 
Machine Learning Based Botnet Detection
Machine Learning Based Botnet DetectionMachine Learning Based Botnet Detection
Machine Learning Based Botnet Detectionbutest
 
Yogesh kumar kushwah represent’s
Yogesh kumar kushwah represent’sYogesh kumar kushwah represent’s
Yogesh kumar kushwah represent’sYogesh Kushwah
 
Ecet 375 Education Redefined - snaptutorial.com
Ecet 375     Education Redefined - snaptutorial.comEcet 375     Education Redefined - snaptutorial.com
Ecet 375 Education Redefined - snaptutorial.comDavisMurphyC86
 
Ecet 375 Education Specialist-snaptutorial.com
Ecet 375 Education Specialist-snaptutorial.comEcet 375 Education Specialist-snaptutorial.com
Ecet 375 Education Specialist-snaptutorial.comrobertlesew62
 

Similar to MIB Test Environment (20)

Snmpv3
Snmpv3Snmpv3
Snmpv3
 
Cray XT Porting, Scaling, and Optimization Best Practices
Cray XT Porting, Scaling, and Optimization Best PracticesCray XT Porting, Scaling, and Optimization Best Practices
Cray XT Porting, Scaling, and Optimization Best Practices
 
Simple Network Management Protocole
Simple Network Management ProtocoleSimple Network Management Protocole
Simple Network Management Protocole
 
007 nms smi, oid, snmp method
007 nms smi, oid, snmp method007 nms smi, oid, snmp method
007 nms smi, oid, snmp method
 
DO-178C OOT supplement: A user's perspective
DO-178C OOT supplement: A user's perspectiveDO-178C OOT supplement: A user's perspective
DO-178C OOT supplement: A user's perspective
 
Circonus: Design failures - A Case Study
Circonus: Design failures - A Case StudyCirconus: Design failures - A Case Study
Circonus: Design failures - A Case Study
 
Computernetworkingkurosech9 091011003335-phpapp01
Computernetworkingkurosech9 091011003335-phpapp01Computernetworkingkurosech9 091011003335-phpapp01
Computernetworkingkurosech9 091011003335-phpapp01
 
8th Semester Computer Science (2013-June) Question Papers
8th Semester Computer Science (2013-June) Question Papers8th Semester Computer Science (2013-June) Question Papers
8th Semester Computer Science (2013-June) Question Papers
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparation
 
An Introduction to OMNeT++ 5.1
An Introduction to OMNeT++ 5.1An Introduction to OMNeT++ 5.1
An Introduction to OMNeT++ 5.1
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA   New Questions 29Tuts.Com New CCNA 200-120 New CCNA   New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
 
Mscit spring assignments
Mscit spring assignmentsMscit spring assignments
Mscit spring assignments
 
Machine Learning Based Botnet Detection
Machine Learning Based Botnet DetectionMachine Learning Based Botnet Detection
Machine Learning Based Botnet Detection
 
Yogesh kumar kushwah represent’s
Yogesh kumar kushwah represent’sYogesh kumar kushwah represent’s
Yogesh kumar kushwah represent’s
 
Ecet 375 Education Redefined - snaptutorial.com
Ecet 375     Education Redefined - snaptutorial.comEcet 375     Education Redefined - snaptutorial.com
Ecet 375 Education Redefined - snaptutorial.com
 
7th Semester (June-2016) Computer Science and Information Science Engineering...
7th Semester (June-2016) Computer Science and Information Science Engineering...7th Semester (June-2016) Computer Science and Information Science Engineering...
7th Semester (June-2016) Computer Science and Information Science Engineering...
 
7th Semester (June-2016) Computer Science and Information Science Engineering...
7th Semester (June-2016) Computer Science and Information Science Engineering...7th Semester (June-2016) Computer Science and Information Science Engineering...
7th Semester (June-2016) Computer Science and Information Science Engineering...
 
Ecet 375 Education Specialist-snaptutorial.com
Ecet 375 Education Specialist-snaptutorial.comEcet 375 Education Specialist-snaptutorial.com
Ecet 375 Education Specialist-snaptutorial.com
 
Cs6004 cyber fofrensics_qb
Cs6004 cyber fofrensics_qbCs6004 cyber fofrensics_qb
Cs6004 cyber fofrensics_qb
 

More from Krishnamoorthy Arvind

More from Krishnamoorthy Arvind (6)

Network Function Virtualization Orchestration LI
Network Function Virtualization Orchestration LINetwork Function Virtualization Orchestration LI
Network Function Virtualization Orchestration LI
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
IIR Geneva 2001 Final
IIR Geneva 2001 FinalIIR Geneva 2001 Final
IIR Geneva 2001 Final
 
IIR VPN London
IIR VPN LondonIIR VPN London
IIR VPN London
 
ODSI Talk
ODSI TalkODSI Talk
ODSI Talk
 
IIR London
IIR LondonIIR London
IIR London
 

MIB Test Environment

  • 1. MIB Testing Dr. K. Arvind Networks Engineering Digital Equipment Corporation Session: NE016 Date: June 9, 1993 Time: 12:00 - 1:00 PM Slide No. 1
  • 2. PLAN 1. Management Information Base (MIB) Framework 2. MIB Testing. 3. MIB Test Engine (MTE). 4. Current Status. Slide No. 2
  • 3. Management Information Base 1. Internet-standard Network Management Framework 2. SMI: Structure of Management Information. RFC 1155. 3. MIB: Management Information Base RFC 1213, ... 4. Mechanism: Simple Network Management Protocol (SNMP). RFC1157. Slide No. 3
  • 4. SMI 1. Structure of management information: A. Tree structured. B. Descendants of the internet node (1.3.6.1) in the ASN.1 naming tree. 2. Components of management information: A. Example B. Object types and instances C. New data types: DisplayString, IpAddress, Counter, Gauge, TimeTicks, Opaque Slide No. 4
  • 5. OBJECT-TYPE EXAMPLE sysDescr OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) ACCESS read-only STATUS mandatory DESCRIPTION quot;A textual description of the entity. This value should include the full name and version identification of the system’s hardware and software operating-system, and networking software.It is mandatory that this only contain printable ASCII characters.quot; ::= {system 1} 1. Object-type: sysDescr Object identifier: system.1 = 1.3.6.1.2.1.1.1 2. Attributes: Syntax, Access, Status 3. Description Slide No. 5
  • 6. MIB 1. Management Information Base: A. Collection of Managed Objects. B. Documents defining the collection. 2. MIB-II: Core set of objects to be implemented by all TCP/IP nodes. 3. Other MIBs A. Extensions to MIB-II B. Experimental subtree C. Enterprises subtree Slide No. 6
  • 7. What is MTE? 1. MIB Test Engine MIB Test Environment 2. Quality Assurance support for management firmware. 3. Integrated test engine for a posteriori testing of MIB implementations. 4. Collection of tools to support testing and debugging.of management firmware. Slide No. 7
  • 8. MTE Features 1. Regression testing 2. High degree of automation 3. Test Information Management 4. Composite tool set A. Translation tools B. Generation tools C. Interrogation tools D. Management tools 5. PERL !!! 6. Standard Style Slide No. 8
  • 9. MTE Paradigm Product QA System Pass/Fail Specs eq(p,s)? Product: Management firmware, e.g., repeater, bridge, hub Specs: Relevant MIBs e.g., MIB-II, rfc1368, etc. Slide No. 9
  • 10. MTE Organization Product Test Script Specs Translate Execute Pass/Fail Translate Execute Not as simple as it appears !!! 1. Specification notation 2. Composite object 3. Manual intervention Slide No. 10
  • 11. OTE Organization MIB MIBC MIBC TGEN TGEN Aux AUXC AUXC a TIBTOOLS TIBTOOLS TIB TIB T TIB CMW LCE NMS MODULE UNDER TEST Slide No. 11
  • 12. MIBC MIB MIBC MIBC 1. Applications A. Input for TGEN B. ASN.1 conformance C. Online reference D. Name/OID maps 2. Limitations: Not a generalized ASN.1 compiler. Understands only the subset of ASN.1 used in MIB specifications. 3. Example: mibc -f rfc1213.mib mibc -m -f rfc1213.mib >rfc1213.map mibc oid sysDescr Slide No. 12
  • 13. AUXC AUX MIBC AUXC 1. Generates input for TGEN 2. AUX: Notation for specifying auxiliary information not deducible from MIBs. 3. Auxiliary information: A. Overide SYNTAX/ACCESS fields B. Dependencies C. Traps D. Volatility E. Configurability F. Table bounds 4. Example: portControlObject:nt:trunkControlObject{(1 2)} Slide No. 13
  • 14. TGEN PERL scripts from MIBC MIBC from AUXC TGEN English specs 1. Test generator 2. Test scripts and specifications 3. Test types A. existense B. modifiability C. configurability D. traps E. dependency F. volatility Slide No. 14
  • 15. SCRIPT EXAMPLE #!/usr/local/bin/perl -s ####################################################### # die quot;TIBTOOLS directory undefinedquot; unless $ENV{’TIBTOOLS’} # require quot;$ENV{’TIBTOOLS’}/mib_script.plquot;; ####################################################### &test(quot;generic-rfc9999.10.1.1.3.6.1.4.1.999.2.2.0.1quot;); &step (quot;get moduleIpAddressquot;); &getmib(quot;moduleIpAddressquot;); &fail unless (!$err && ($value =~ /^[0-9]+(.[0-9]+){3}$/)); $save = $value; &step(quot;compare with extIpAddressquot;); &getmib(quot;extIpAddressquot;); &fail unless (!$err && ($value eq $save)); #################### # # PASS DECLARATION # ##################### &pass; Slide No. 15
  • 16. SPEC EXAMPLE Test generic-rfc9999.10.1.1.3.6.1.4.1.999.2.2.0.1 SUMMARY Make sure that the mandatory mib object: 1.3.6.1.4.1.999.2.2.0.1 (moduleIpAddress) is readable and has a permissible value. Also verify that any other mib object that should track the value of this object does so. DESCRIPTION (1) Do a get on: 1.3.6.1.4.1.999.2.2.0.1 (moduleIpAddress). -- The get must be successful and the value must match: pattern(/^[0-9]+(.[0-9]+){3}$/). (2) Do a get on: extIpAddress. -- The get must be successful and the value must be equal to the value obtained in Step(1) Slide No. 16
  • 17. TIB TIBTOOLS TIB TIB TIB 1. Test Information Management 2. Modeled after the SNMP MIB framework 3. Components A. STI: Structure of test information B. TIB: Test Information Base C. MTI: Management of test information Slide No. 17
  • 18. STI root 0 1 2 3 misc int ext ... 0 1 2 misc 3 4 com tr rep fddi 0 1 2 commisc comp1 comp2 0 1 1. Structure of test information 2. Classification is important for management 3. Tree structured space 4. Nomenclature: tib identifiers 5. Batteries: Interior nodes 6. Tests: Leaves Slide No. 18
  • 19. TIB 1. Test: Abstract entity 2. Test Information Base 3. TIB files: a. Script file b. Initialization script file (.init) c. Specification file (.spec) d. Synopsis file (.synopsis) e. Command file (.com) f. Reference file (.ok) g. Result file (.res) h. Time file (.time) i. Special instructions file (.ins) Slide No. 19
  • 20. MTI 1. Management of Test Information 2. Operations: A. Information creation and structuring B. Information retrieval C. Running tests 3. TIBTOOLS: Toolkit A. Information creation and structuring a. mktree, rmtree, rmbat b. mktest, rmtest c. mvnode, cpnode d. tibedit B. Information retrieval a. battery b. tibfiles, tibspecs, tibres, tibstat C. Running tests a. tibrun, cmptest b. bugmail D. Miscellaneous operations a. deftest, defbat, deftree b. tibnext Slide No. 20
  • 21. Interrogation Tools 1. NMS 2. CMW 3. LCE Slide No. 21
  • 22. NMS 1. Network Management Station. 2. Interactive MIB tool 3. MIB operations: (a) get, getnext, set (b) MIB walk (c) encode, decode protocol frames (d) map names/OIDs (e) Online MIB reference (f) Simple scripts 4. On-line help Slide No. 22
  • 23. Current Status 1. In active use for testing various products. 2. Enormous savings in testing time and effort. Slide No. 23
  • 24. Summary 1. Alphabet Soup: aux, auxc, cmw, lce, mib, mibc, mte, mti, oid, qa, sti, tgen, tib, ... 2. MIB framework 3. What is MTE? 4. MTE organization. 5. Current status. Slide No. 24