Automatic Testing of Neighbor Discovery Protocol Based on FSM and TTCN Zhiliang Wang, Xia Yin, Haibin Wang, Jianping Wu Department of Computer Science.

Slides:



Advertisements
Similar presentations
INTERVAL Next Previous 13/02/ Timed extensions to SDL Analysis requirements –Assumptions on moments and duration Semantics with controllable time.
Advertisements

Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.
1 Introduction to Mobile IPv6 IIS5711: Mobile Computing Mobile Computing and Broadband Networking Laboratory CIS, NCTU.
Neighbor Discovery for IPv6 Mangesh Kaushikkar. Overview Introduction Terminology Protocol Overview Message Formats Conceptual Model of a Host.
Mahadevan Subramaniam and Bo Guo University of Nebraska at Omaha An Approach for Selecting Tests with Provable Guarantees.
Using TTCN-3 in Interoperability Testing for Real-time Communication Systems Zhiliang Wang, Jianping Wu, Xia Yin, Xingang Shi and Beihang Tian Department.
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Presenter: PCLee VLSI Design, Automatic and Test, (VLSI-TSA-DAT).
Timed Automata.
6/14/991 Symbolic verification of systems with state machines David L. Dill Jeffrey Su Jens Skakkebaek Computer System Laboratory Stanford University.
CSI5118 W2001 Outline –Review Verification & Validation –Introduction to EFSM Models –Introduction to SDL e.g. EggTimer –Principles of Validation & Verification.
Automated creation of verification models for C-programs Yury Yusupov Saint-Petersburg State Polytechnic University The Second Spring Young Researchers.
Automated Model-Based Testing of Hybrid Systems Michiel van Osch PROSE January 25,
1 Route Optimization based on ND-Proxy for Mobile Nodes in IPv6 Mobile Networks Jaehoon Jeong, Kyeongjin Lee, Jungsoo Park, Hyoungjun Kim ETRI
Model-based Testing of Hybrid Systems Michiel van Osch IPA Spring Days on Testing 19 April – 21 April 2006.
Software Engineering, COMP201 Slide 1 Protocol Engineering Protocol Specification using CFSM model Lecture 30.
Department of CIS University of Pennsylvania 1/31/2001 Specification-based Protocol Testing Hyoung Seok Hong Oleg Sokolsky CSE 642.
Expressing Giotto in xGiotto and related schedulability problems Class Project Presentation Concurrent Models of Computation for Embedded Software University.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
1 Software Testing and Quality Assurance Lecture 5 - Software Testing Techniques.
Guide to TCP/IP Fourth Edition
Software Testing and QA Theory and Practice (Chapter 10: Test Generation from FSM Models) © Naik & Tripathy 1 Software Testing and Quality Assurance Theory.
Requirements Model Inputs (Test Sequences) Expected outputs Implementation Verdict Author Generate Feedback.
Department of Computer Science 1 CSS 496 Business Process Re-engineering for BS(CS)
Lesson 6 Neighbor Discovery.
Cisco Public © 2013 Cisco and/or its affiliates. All rights reserved. 1.
CMPT 471 Networking II Address Resolution IPv6 Neighbor Discovery 1© Janice Regan, 2012.
Presenter : Cheng-Ta Wu Vijay D’silva, S. Ramesh Indian Institute of Technology Bombay Arcot Sowmya University of New South Wales, Sydney.
02/06/05 “Investigating a Finite–State Machine Notation for Discrete–Event Systems” Nikolay Stoimenov.
1 CMPT 471 Networking II ICMP © Janice Regan, 2012.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Rosen 5th ed., ch. 11 Ref: Wikipedia
TEST SUITE DEVELOPMENT FOR CONFORMANCE TESTING OF PROTOCOLS Anastasia Tugaenko Scientific Adviser: Nikolay Pakulin, PhD Institute for System Programming.
Engineering Law-Governed Approaches How to reuse, extend and compose interaction specifications Gustavo Carvalho, Carlos Lucena
1 /160 © NOKIA 2001 MobileIPv6_Workshop2001.PPT / / Tutorial Mobile IPv6 Kan Zhigang Nokia Research Center Beijing, P.R.China
Fault-Tolerant Design for Mobile IPv6 Networks Jenn-Wei Lin and Ming-Feng Yang Graduate Institute of Applied Science and Engineering Fu Jen Catholic University.
Slide: 1 Neighbor Discovery. Slide: 2 Neighbor Discovery Overview Set of messages and processes that determine relationships between neighboring nodes.
Model Based Conformance Testing for Extensible Internet Protocols Anastasia Tugaenko Scientific Adviser: Nikolay Pakulin, PhD.
TTCN Protocol Testing on Steroids! IEEE P WPAN Meeting March 6-10, 2000 Albuquerque, NM USA 802 Plenary Meeting Matthew Graney Telelogic North America.
A SAVI Solution for DHCP Draf-ietf-savi-dhcp-06 J. Bi, J. Wu, G. Yao, F. Baker IETF79, Beijing Nov. 9, 2010.
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 4 Internet Control Message Protocol (ICMP)
Timed Test Cases Generation Based on MSC-2000 Test Purposes Abdeslam En-Nouaary and Gang Liu Department of Electrical and Computer Engineering Concordia.
Institute for Telematics University of Lübeck, Germany M. Ebner, M. Schmitt, J. Grabowski Test Generation with Autolink and TestComposer.
Engineering Workshops Purposes of Neighbor Solicitation.
Network Protocol System Fingerprinting - A Formal Approach Guoqiang Shu and David Lee INFOCOM 2006 Speaker: Chang Huan Wu 2008/10/31.
OSPF Offloading: The HELLO Protocol A First Step Toward Distributed Heterogeneous Offloading Speaker: Mary Bond.
1 Black-box conformance testing for real-time systems Stavros Tripakis VERIMAG Joint work with Moez Krichen.
Department of Computer Science and Engineering Applied Research Laboratory Architecture for a Hardware Based, TCP/IP Content Scanning System David V. Schuehler.
Internet Control Message Protocol (ICMP) Chapter 7.
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay 2 The D FlipFlop The RS flipflop stores one bit of information.
Towards Interoperability Test Generation of Time Dependent Protocols: a Case Study Zhiliang Wang, Jianping Wu, Xia Yin Department of Computer Science Tsinghua.
HACNet Simulation-based Validation of Security Protocols Vinay Venkataraghavan Advisors: S.Nair, P.-M. Seidel HACNet Lab Computer Science and Engineering.
Course: COMS-E6125 Professor: Gail E. Kaiser Student: Shanghao Li (sl2967)
ICMPv6 Error Message Types Informational Message Types.
Neighbor Discovery. IPv6 Terminology Additional subnets Router Host Neighbors Host Intra-subnet router Switch LAN segment Link Subnet Network.
Finite State Machines (FSM) OR Finite State Automation (FSA) - are models of the behaviors of a system or a complex object, with a limited number of defined.
Winter 2007SEG2101 Chapter 121 Chapter 12 Verification and Validation.
CS 145A Protocols Netlab.caltech.edu/course. Misc. Extension Extension Textbooks Textbooks.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Understanding IPv6 Slide: 1 Lesson 5 ICMPv6. Understanding IPv6 Slide: 2 Lesson Objectives Purpose of ICMPv6 and the structure of all ICMPv6 messages.
Atrium Router Project Proposal Subhas Mondal, Manoj Nair, Subhash Singh.
From requirements to specification Specification is a refinement of requirements Can be included together as Software Requirements Specifications (SRS)
Requirements Techniques, cont.
TTCN Case Study - InterWatch
Hierarchical Finite State Controllers for Generalized Planning
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Internet Control Message Protocol Version 4 (ICMPv4)
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES
Internet Control Message Protocol
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
Presentation transcript:

Automatic Testing of Neighbor Discovery Protocol Based on FSM and TTCN Zhiliang Wang, Xia Yin, Haibin Wang, Jianping Wu Department of Computer Science Tsinghua University APCC’2004 Sep. 1, 2004

APCC'20042 Outline Background Motivation Our proposed method Conclusion and Future work

APCC'20043 Background: Protocol Conformance Testing Protocol Specification Test Generation Abstract Test Suite Test Implementation Implementation Process Protocol Impl. IUT Test Execution Test Verdict

APCC'20044 Background: Neighbor Discovery Protocol One of the basic protocols in IPv6 protocol set Should be supported in all IPv6 implementations Corresponding functions in IPv4 – ARP (Address Resolution Protocol) – ICMP router discovery – ICMP redirect function Using 5 ICMP packet types: – Router Solicitation – Router Advertisement – Neighbor Solicitation – Neighbor Advertisement – Redirect

APCC'20045 Background: Related work Conformance testing of ND Protocol – InterOperability Laboratory, University of New Hampshire – TAHI Project – Institute of Computing Technology, Chinese Academy of Sciences Existing Problems – No standard language used to specify test suite – Must be executed on the proprietary test systems – Not guided by formal methods – Cannot ensure test coverage and reliability of test suite

APCC'20046 Background: Our method FSM – Finite State Machine – To specify protocol specification TTCN-2 – Tree and Tabular Notations – Test case specification language PITS – Our previous work – Protocol Integrated Test System – TTCN-based test system – Automatic test process – Test practice Protocol Specification Test Generation Abstract Test Suite Test Implementation Implementation Processes Protocol Impl. IUT Test Execution Test Verdict FSM TTCN PITS

APCC'20047 Outline Background Motivation Our proposed method Conclusion and Future work

APCC'20048 Motivation Protocol Modeling –Control part –Data part –Timed part ND Protocol includes simple Timer Operations! How to specify it? –EFSM? (Extended FSM) Control part and data part, no timer! –TIOA? (Timed Input Output Automata) Common model for timed system Test generation process has tremendous costs on time and space Difficult to be applied in practical conformance testing –Our method: EFSM + simple timer operations

APCC'20049 Outline Background Motivation Our proposed method –Formal Model –Test Architecture –Test Generation –Test Practice –Test Results and Analysis Conclusion and Future work

APCC' Formal Model EFSM with Simple Timed Extensions –EFSM + simple timer operations –A local timer for each state –Transition of such a model: tact (timed action): invoke the local timer start(t q ) Timeout transition: input is timeout(t s ) INCOMPLETE REACHABLE NONE t5t5 t3t3 t 5 : ?NA [NA.S=1]/{LLA:=NA.TLLA;start(T R )}!ERep t 3 : timeout(T I ) [counter=3]/{counter:=0} i: InputP: Predicate up: variable update function i: Input P: Predicate up: variable update function tact: timed action o: output

APCC' Formal Model (cont) Protocol specification of Neighbor Unreachability Detection in ND Protocol States: 6 Transitions: 45

APCC' Formal Model (cont) Protocol specification of Neighbor Unreachability Detection in ND Protocol

APCC' Formal Model (cont) External Observable timed features – Do not apply any external inputs to the machine in state s. If an external output o can be observed after waiting a while, state s has an External Observable Timed Feature and its observed output is o. – the external behaviors of timeout transitions –To verify the transient state Example

APCC' Test Architecture PCO: Point of Control and Observation IUT: Implementation Under Test

APCC' Test Generation Conformance test suite –State cover: for each state S –Transition cover: for each transition t S0S0 S? r pre(S) ds(S) pre(S): Preamble ds(S): Distinguishing Sequence ? State cover test case S0S0 S? r pre(S) ds(Q) ? Q t Transition cover test case Lead the machine to the initial state S 0 Lead the machine from S 0 to state S Transition to be tested Verify the final state is S Verify the final state is Q r : Reset State to be tested

APCC' Test Generation (cont) Generation of Distinguishing Sequence –Extension of traditional method Key idea: Consider Timed Features of model {N,I,S,R,D,P} Wait mNS (1s) uNS (1s) uNS (5s) -- I P D{N,S,R} EReq mNS ERep N{S,R} Wait uNS (5s) -- SR Example: Distinguishing Seq. of state S: Wait/--; ?EReq/!EPep; Wait(5s)/!uNS

APCC' Test Generation (cont) TTCN-2 Test case example:

APCC' Test Generation (cont)

APCC' Test Practice Test System RI: Reference Implementation PCO: Point of Control and Observation IUT: Implementation Under Test

APCC' Test Practice (cont) RI (Reference Implementation)

APCC' Test Results and Analysis Overview of NDP test suite Test Result

APCC' Conclusion and Future work A formal method to test neighbor discovery protocol –Protocol specification: FSM-based method –Test generation –Test specification: TTCN-2 –Test practice: PITS Future work: –Data flow testing for such a model –further test activities on IPv6 protocols, especially routing protocols

Thank you! Q&A