G LONEMO : Global and Accurate Formal Models for the Analysis of - - PowerPoint PPT Presentation

g lonemo global and accurate formal models for the
SMART_READER_LITE
LIVE PREVIEW

G LONEMO : Global and Accurate Formal Models for the Analysis of - - PowerPoint PPT Presentation

G LONEMO : Global and Accurate Formal Models for the Analysis of Sensor Networks. http ://www-verimag.imag.fr/ samper/Glonemo/ Ludovic Samper, Florence Maraninchi, Laurent Mounier and Louis Mandel Context and objectives Sensor networks :


slide-1
SLIDE 1

GLONEMO : Global and Accurate Formal Models for the Analysis of Sensor Networks.

http ://www-verimag.imag.fr/∼samper/Glonemo/ Ludovic Samper, Florence Maraninchi, Laurent Mounier and Louis Mandel

slide-2
SLIDE 2

Context and objectives

Sensor networks : – Hundreds or thousands of nodes – No infrastructure – Low rate – Low battery – Applications : detection or monitoring of an event in a distributed manner Objectives : Executable and analyzable models of sensor networks with special emphasis on energy consumption.

France Télécom R&D 1

slide-3
SLIDE 3

Related Work

– Classical network simulators, not dedicated to sensor networks : – NS2 (The Network Simulator), Opnet, Glomosim, ... – NAB (Network in A Box) – Simulators dedicated to sensor networks : – PowerTOSSIM, the consumption is calculated from the number of packets transmitted and the number of instructions executed. – Avrora, written in Java and cycle-accurate – Atemu, executes binary codes – ... – Formal models applied to sensor networks : – Real-Time Maude (Peter C. Ölveczky) – ... – Our work : – A model dedicated to sensor networks – Accurate model of the energy consumption – Model and program using a formally defined language – The aim is to use formal methods

France Télécom R&D 2

slide-4
SLIDE 4

Approach

– A global model – Detailed Hardware – Software : the protocol layers and the application code. – Physical Environment

E N E R G Y

MAC Routing Application code Sensing CPU Memory Radio

Environment Physical Software Hardware

France Télécom R&D 3

slide-5
SLIDE 5

Modular abstractions :

E N E R G Y

MAC Routing Application code

Environment Physical Software Hardware

We want much more than an executable tool : The aim is to use verification tools, runtime-verification tools or formal test.

France Télécom R&D 4

slide-6
SLIDE 6

Modular abstractions :

E N E R G Y

Routing Application code Sensing CPU Memory Radio

Environment Physical Software Hardware

Perfect MAC Layer

We want much more than an executable tool : The aim is to use verification tools, runtime-verification tools or formal test.

France Télécom R&D 5

slide-7
SLIDE 7

Typical Example

SINK

Cloud Wind

– Application : Detection of a radioactive cloud – Routing : Directed diffusion (C. Intanagowiwat, R. Govindan, D. Estrin, J. Heidemann, F

. Silva)

– Medium Access Control : A preamble sampling MAC protocol – Environment : A cloud moving under the influence of the wind.

France Télécom R&D 6

slide-8
SLIDE 8

Structure of the model

Observers of Quantitative Prop. A node Air A node

  • ther

nodes

Hardware

Cloud

Environment

Wind

Routing Routing MAC Application Application MAC Hardware

Other Observations ...

CPU

...

CPU Radio Radio

Parallel processes with synchronization

France Télécom R&D 7

slide-9
SLIDE 9

Tools used to program the model

– REACTIVEML (Louis Mandel, LIP6) : – The ML-language with parallelism – As expressive as the Caml language – Parallelism is a top-level primitive – Belongs to the family of synchronous languages The hardware model, the software and the simulation engine are implemented with REACTIVEML – LUCKY (E. Jahier, P . Raymond, VERIMAG) : – A constraint-based language – A language for describing and simulating stochastic reactive systems – Lucky is connected to REACTIVEML The cloud and the wind are implemented with LUCKY

France Télécom R&D 8

slide-10
SLIDE 10

The consumption model of the radio

The MAC layer drives this automaton. An "observer" checks the current state to calculate the consumption of the node.

Sleep Idle Transmit Receive

35.1 mW 145.8 mW 140.4 mW 140.4 mW

140.4 mW 145.8 mW 140.4 mW 140.4 mW 140.4 mW 140.4 mW 400 µs 332 µs 144 µs 144 µs 100 µs 100 µs

Values of the Motorola MC13192

France Télécom R&D 9

slide-11
SLIDE 11

Software : ReactiveML code for the application

let send_alarm self cloud_pos my_interest = if (present_cloud self cloud_pos) then (if (not self.node_pre_present_cloud) then (response self my_interest; self.node_pre_present_cloud <- true; ) ) else self.node_pre_present_cloud <- false;;

France Télécom R&D 10

slide-12
SLIDE 12

Environment : The Lucky code for the cloud

inputs { Wind_x : float ~init 0.0; Wind_y : float ~init 0.0;}

  • utputs {

x_cloud: float ~init 400.0 ~max 1000.0 ~min -100.0; y_cloud: float ~init 300.0 ~max 1000.0 ~min -100.0; } transitions { init -> init ~cond (if Wind_y >= 0.0 then (0.0 <= (y_cloud - pre y_cloud) <= Wind_y) else (Wind_y <= (y_cloud - pre y_cloud) <= 0.0)) and (if Wind_x >= 0.0 then (0.0 <= (x_cloud - pre x_cloud) <= Wind_x) else (Wind_x <= (x_cloud - pre x_cloud) <= 0.0))}

France Télécom R&D 11

slide-13
SLIDE 13

Environment : The Lucky code for the wind

inputs { }

  • utputs {

Wind_x : float ~min -5.0 ~max 5.0 ~init 0.0; Wind_y : float ~min -5.0 ~max 5.0 ~init 0.0; } transitions { init -> init ~cond abs (Wind_y - pre Wind_y) < 5.0 and abs (Wind_x - pre Wind_x) < 5.0 }

France Télécom R&D 12

slide-14
SLIDE 14

Modular abstractions : Use of formal models M2 M’1 M1 M2

M ′

1 is more precise than M1.

The consumption evaluated with the M ′

1 model must be smaller than the one

evaluated with M1 ; and this relation must stay true after composition. M ′

1 M1

⇒ M ′

1 M2 M1 M2

France Télécom R&D 13

slide-15
SLIDE 15

Conclusions and perspectives

– The formalism is more expressive than other formal models – The formalism enables modular abstractions – Our Model, GLONEMO, includes a realistic model of the environment – GLONEMO can be used to perform simulations. This is useful to have an intuition of the abstractions that could be done. – Indeed, the simulator is quite scalable. – This complete model can already be used to perform automatic testing ; the modular abstractions will allow the use of verification and runtime-verification tools.

France Télécom R&D 14