an abstraction technique for parameterized model checking
play

An Abstraction Technique for Parameterized Model Checking of Leader - PowerPoint PPT Presentation

An Abstraction Technique for Parameterized Model Checking of Leader Election Protocols: Application to FTSP Ocan Sankur , Jean-Pierre Talpin Irisa, CNRS, Rennes Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 1 / 7


  1. An Abstraction Technique for Parameterized Model Checking of Leader Election Protocols: Application to FTSP Ocan Sankur , Jean-Pierre Talpin Irisa, CNRS, Rennes Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 1 / 7

  2. Parameterized Abstraction for Leader Election Protocols Goal: Model check a leader election protocol on arbitrary network topologies Verify that for all network topologies and initial states, a unique leader is eventually elected (Actually, we will verify all network topologies with given diameter ) Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 2 / 7

  3. Content of this Work 1 An abstraction technique for parameterized model checking such protocols 2 Application to a specific protocol Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 3 / 7

  4. Content of this Work 1 An abstraction technique for parameterized model checking such protocols 2 Application to a specific protocol Case Study: Flooding-Time Synchronization Protocol (FTSP) Fault-tolerant distributed protocol for maintaining time in wireless sensor networks. Has two features: Maintains a unique leader, recovers in case of link/node failures Smoothly synchronizes the clocks over the network with the clock of the leader Today, we consider the leader election part of FTSP: Verify that a unique leader is eventually elected Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 3 / 7

  5. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader Initially Leader=? Leader=? 1 2 3 Leader=? Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  6. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader Timeout Leader=1 Leader=2 1 2 3 Leader=3 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  7. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader 2 communicates with 3 Leader=1 Leader=2 1 2 3 Leader=2 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  8. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader 1 communicates with 3 Leader=1 Leader=2 1 2 3 Leader=1 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  9. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader 2 communicates with 3: Ignored! Leader=1 Leader=2 1 2 3 Leader=1 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  10. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader 3 communicates with 2: Convergence! Leader=1 Leader=1 1 2 3 Leader=1 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  11. Flooding-Time Synchronization Protocol Flooding-Time Synchronization Protocol (FTSP) – Nodes have unique identifiers but execute the same program – The network eventually elects the node with the least ID as the leader – Fault tolerant: any node that hasn’t heard from the leader for a while timeouts and declares itself leader Leader=1 Leader=1 1 2 3 Leader=1 + Several local variables, message numbers, etc. Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

  12. Previous Verification Results Previous work : Model checking that a unique leader is eventually elected: a few fixed topologies (max: 7 nodes in ∼ 1 hour) perfectly synchronized clocks synchronous message broadcast Kusy, Abdelwahed 2006, McInnes 2009, Tan, Zhao, Wang 2010 Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 5 / 7

  13. Previous Verification Results Previous work : Model checking that a unique leader is eventually elected: a few fixed topologies (max: 7 nodes in ∼ 1 hour) perfectly synchronized clocks synchronous message broadcast Kusy, Abdelwahed 2006, McInnes 2009, Tan, Zhao, Wang 2010 Parameterized verification is difficult: Arbitrary topology (not a complete graph), distinct node identifiers: no symmetry Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 5 / 7

  14. Previous Verification Results Previous work : Model checking that a unique leader is eventually elected: a few fixed topologies (max: 7 nodes in ∼ 1 hour) perfectly synchronized clocks synchronous message broadcast Kusy, Abdelwahed 2006, McInnes 2009, Tan, Zhao, Wang 2010 Parameterized verification is difficult: Arbitrary topology (not a complete graph), distinct node identifiers: no symmetry Present work Arbitrary network topology within given diameter K e.g. we can check a grid network with 169 nodes in 15 minutes Deviating clocks Synchronous or asynchronous broadcast Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 5 / 7

  15. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  16. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  17. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  18. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  19. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  20. Abstraction Idea for Parameterized Verification How the leader is propagated: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  21. Abstraction Idea for Parameterized Verification Abstracting the network: Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  22. Abstraction Idea for Parameterized Verification Abstracting the network: Pick a shortest path from the future leader to some node Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  23. Abstraction Idea for Parameterized Verification Abstracting the network: ⊑ Model the path concretely but all other nodes very abstractly Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  24. Abstraction Idea for Parameterized Verification Abstracting the network: ⊑ Model the path concretely but all other nodes very abstractly + Apply data abstraction to local variables and node identifiers Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

  25. ⊑ Verification results: Topologies with “diameter” 1 up to 7 ( 13 minutes). With clock rates within 1 ± 10 − 2 . E.g. 2D grids with 169 nodes, or 3D grids in 2197 nodes. A custom algorithm implemented within NuSMV synchronous asynchronous K N time N time 1 8 0s 8 0s K: Diameter 2 14 1s 14 1s 3 23 1s 25 28s N: Number of steps to convergence 4 35 3s 39 130s 5 54 16s 63 65mins 6 67 76s TO TO 7 107 13mins TO TO Future work: Model checking time synchronization 1 Max distance from the future leader Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 7 / 7

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend