Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Case Generation for testing SNMP agents Diana Serbanescu (Fraunhofer FOKUS) & Theofanis Vassiliou-Gioles (Testing Technologies)

Similar presentations


Presentation on theme: "Test Case Generation for testing SNMP agents Diana Serbanescu (Fraunhofer FOKUS) & Theofanis Vassiliou-Gioles (Testing Technologies)"— Presentation transcript:

1 Test Case Generation for testing SNMP agents Diana Serbanescu (Fraunhofer FOKUS) & Theofanis Vassiliou-Gioles (Testing Technologies)

2 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Contact 2 Diana Serbanescu Fraunhofer FOKUS fokus.fraunhofer.de Theo Vassiliou Testing Technologies

3 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Agenda Why SNMP? An Introduction to SNMP Technical Solution 3

4 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Why bother for SNMP at all? First version has been defined in the late 1980s RFC 1067, 1098, 1157 A protocol to monitor and manage network elements Defines a message structure and communication flows Widely deployed and heavily used in the IT datacom industry Router, switches, servers, network printers,... One would think that SNMP is Well established Well deployed and there Well tested! 4

5 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © New Domains – New Applications 5

6 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Summary – Why SNMP SNMP is well established in the IT community Application to new domains require thorough testing of existing functionality in sometimes hazard environments by not native IT/datacom experts 6

7 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Introduction to SNMP (I) SNMP is a tool (protocol) that allows for remote and local management of items on the network including servers, workstations, routers, switches and other managed devices Comprised of agents and managers SNMP is a client pull model The management system (client) pulls data from the agent (server) SNMP is a server push model The agent (server) pushes out a trap message to a (client) management system 7

8 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Introduction to SNMP (II) SNMP management SNMP Protocol Definition of message format Operation specification Structure of Management Information (SMI) Rules specifying the format used to define objects managed Management Information Base (MIB) A map all managed objects Languages of SNMP Structure of Management Information (SMI) ASN.1 Used to define the MIBs Basic Encoding Rules (BER) For SNMP message encoding Three different versions of SNMP defined over the years v1, v2 and v3 V3 adds authorization and encryption 8

9 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © MIBs : Management Information Base MIB-I 9

10 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © 10 The Object Identifier (OID) A scheme that allows two vendors or products within a vendor to compare like items Object identifiers (OID) as the identification scheme An OID is an ordered sequence of non-negative integers written left to right, containing at least two elements Once a MIB module is published, OIDs are bound for all time to the objects defined Objects cannot be deleted Can only be made obsolete Even minor changes to an object are discouraged

11 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © SNMP Operations (v1, v2 & v3) Get Get-next Get-bulk (SNMPv2 and SNMPv3) Set Get-response Trap Inform (SNMPv2 and SNMPv3) Report (SNMP2 and SNMPv3) 11

12 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © SNMP PDU Sequences 12 Manager Agent GetRequest PDU GetResponse PDU Manager Agent SetRequest PDU GetResponse PDU Manager Agent GetNextRequest PDU GetResponse PDU Manager Agent Trap PDU (a) Get values (b) Get next values (c) Set values (d) Send trap

13 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © 13 SNMP Security Mechanisms - Summary

14 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Summary – What is SNMP? A protocol to manage network agents Communication is ASN.1/BER based MIBs define the managed objects Different versions of SNMP are available Security plays a major role in v3 but it is considered difficult to handle by users. 14

15 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Test Aspects Single and multiple (table) values for the objects defined in the given MIB file(s) should be verified for type and value conformance Test the main operations for each version of the SNMP protocol that is being used GET/GET-NEXT/GET-BULK/SET Negative and positive tests Positive: e.g. GET a read-write object Negative: e.g. SET a read-only object Test the main operations within different security levels 15

16 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Abstract Test Architecture for SNMP 16 TTCN-3 Test System SNMP Transmission SNMP Entity Act as a SMP Manager SNMP Agent MIB document SNMPv3 Testing: Basic Test Concept Configuration Convert MIB definitions to TTCN-3 and import them in TTCN-3 modules Compile MIB definitions SUT

17 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Abstract Architecture for Testing SNMP jointly with other Protocols/Test Access 17 SNMP TTCN-3 Test System SNMP Testing Module Generic Test Access SUT SNMP GET RESPONSE / TRAP SET (USM) GET / GETNEXT GET BULK WebServiceIPLPT

18 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Abstract Workflow 18 Process MIBs Create the test components Create a TTCN-3 type system for messages Create test case templates Create test cases to test generic SNMP compliance Per defined OID create the relevant test templates Adapt the templates Use additional test access to enforce predictable SNMP values Execute the generated tests

19 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © TTplugin-SNMP Generated Artefacts 19 MIB Type System Test Cases Pattern 1 Pattern 2 Pattern 3 Pattern 4 Pattern 5 Pattern 6 Pattern 7 SUT

20 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Patterns Testing for type conformance T1, T3 Testing for values T5, T6, T7 Testing for access rights T2, T4 Testing for values can be enhanced by value enforcement via additional test access Web Service, IP Packets, 20

21 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Complete Test System 21 Type System Test Cases SUT TTworkbench CodecPortExternal Functions

22 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © 22 Summary & Outlook Summary A test architecture as TTplugin-SNMP for testing SNMPv1,2,3 was developed Focus was on the seamless management of the different SNMP version and security mechanisms Test case templates that cover the main groups of tests for SNMP are defined and implemented in the framework A very powerful framework to quickly define test cases to SNMP agents and/or SNMP masters TTplugin –SNMP can also be used to manipulate SNMP manged system in non-SNMP testing context Outlook To generate more test cases based on generic patterns

23 Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Further information Fraunhofer FOKUS – MOTION Testing Technologies testingtech.com facebook.com -> Testing-Technologies TTplugin-SNMP testingtech.com/products/ttplugins_snmp.php testingtech.com/download/datasheets/PlugSNMP.pdf 23


Download ppt "Test Case Generation for testing SNMP agents Diana Serbanescu (Fraunhofer FOKUS) & Theofanis Vassiliou-Gioles (Testing Technologies)"

Similar presentations


Ads by Google