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

an abstraction technique for parameterized model checking
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 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

slide-2
SLIDE 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

slide-3
SLIDE 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

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

slide-5
SLIDE 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

1 2 3 Leader=? Leader=? Leader=?

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-6
SLIDE 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

1 2 3 Leader=1 Leader=2 Leader=3

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-7
SLIDE 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

1 2 3 Leader=1 Leader=2 Leader=2

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-8
SLIDE 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

1 2 3 Leader=1 Leader=2 Leader=1

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-9
SLIDE 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!

1 2 3 Leader=1 Leader=2 Leader=1

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-10
SLIDE 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!

1 2 3 Leader=1 Leader=1 Leader=1

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-11
SLIDE 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

1 2 3 Leader=1 Leader=1 Leader=1

+ Several local variables, message numbers, etc.

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 4 / 7

slide-12
SLIDE 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

slide-13
SLIDE 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

slide-14
SLIDE 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

slide-15
SLIDE 15

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-16
SLIDE 16

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-17
SLIDE 17

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-18
SLIDE 18

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-19
SLIDE 19

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-20
SLIDE 20

Abstraction Idea for Parameterized Verification

How the leader is propagated:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-21
SLIDE 21

Abstraction Idea for Parameterized Verification

Abstracting the network:

Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 6 / 7

slide-22
SLIDE 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

slide-23
SLIDE 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

slide-24
SLIDE 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

slide-25
SLIDE 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 2 14 1s 14 1s 3 23 1s 25 28s 4 35 3s 39 130s 5 54 16s 63 65mins 6 67 76s TO TO 7 107 13mins TO TO

K: Diameter N: Number of steps to convergence Future work: Model checking time synchronization

1Max distance from the future leader Ocan Sankur Abstractions For Parameterized Model Checking of FTSP 7 / 7