02.08.2013 Views

Modeling of Sensor Nets in Ptolemy II

Modeling of Sensor Nets in Ptolemy II

Modeling of Sensor Nets in Ptolemy II

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

keeps the static analysis <strong>of</strong> the model tractable even for large<br />

models.<br />

6. APPLICATIONS<br />

Although our experiments are still prelim<strong>in</strong>ary, we have constructed<br />

some non-trivial examples to illustrate the use <strong>of</strong> the<br />

<strong>in</strong>frastructure described here. We cannot describe them all<br />

here, but these are illustrative <strong>of</strong> the capabilities.<br />

6.1 Flood<strong>in</strong>g<br />

First, [4] describes an evaluation <strong>of</strong> an algorithm for efficiently<br />

broadcast<strong>in</strong>g queries <strong>in</strong> a sensor network. To reach all nodes,<br />

when a sensor receives a radio message, it may repeat the message.<br />

The objective is to reduce the number <strong>of</strong> such repetitions<br />

required to permeate the network. A screen image <strong>of</strong> one <strong>of</strong> the<br />

experiments performed is shown <strong>in</strong> Figure 5. In that image,<br />

each circle represents a sensor node. At the center <strong>of</strong> the circle<br />

is an icon for an antenna. This represents the location <strong>of</strong> the<br />

transmitter and receiver for the node. The sensor nodes are randomly<br />

scattered (an actor is provided <strong>in</strong> the library to realize<br />

the random scatter).<br />

An execution <strong>of</strong> this model propagates a fixed number <strong>of</strong> queries,<br />

specified as a model parameter, through the sensor network.<br />

In this experiment, the base node, shown with a green<br />

translucent circle <strong>in</strong> Figure 5, broadcasts a query periodically.<br />

Initially all nodes repeat this query upon hear<strong>in</strong>g it. However,<br />

as the execution proceeds, the nodes learn about the network<br />

topology around them, and based on the distributed algorithm<br />

described <strong>in</strong> [4], decide to cont<strong>in</strong>ue repeat<strong>in</strong>g or to stop repeat<strong>in</strong>g.<br />

The nodes with red icons <strong>in</strong> Figure 5 are those that repeat,<br />

while the nodes with blue icons do not repeat, after the algorithm<br />

has converged.<br />

In this experiment, the sensor nodes communicate via a radio<br />

channel with no time delay and no noise or losses. The broadcast<br />

range <strong>of</strong> a sensor node is a parameter <strong>of</strong> the node, and is<br />

<strong>in</strong>dicated by the circular icon. In Figure 5, it is identical for all<br />

nodes; however, it can easily be varied. A more sophisticated<br />

channel model can be used by simply dropp<strong>in</strong>g it <strong>in</strong>to this<br />

model and renam<strong>in</strong>g it to match the channel name specified by<br />

the nodes.<br />

6.2 Triangulation<br />

The second experiment, described <strong>in</strong> [1], is shown <strong>in</strong> Figure 6.<br />

In this experiment, a model <strong>of</strong> the power source (batteries, <strong>in</strong><br />

this case) <strong>of</strong> sensor nodes is coupled with a model <strong>of</strong> a scenario<br />

where acoustic sensors cooperate to determ<strong>in</strong>e the location <strong>of</strong> a<br />

sound source by triangulation.<br />

As <strong>in</strong> the <strong>Sensor</strong>Sim simulator [17], multiple channels can be<br />

used <strong>in</strong> the same model <strong>in</strong> VisualSense. In this second experiment,<br />

an acoustic channel carries signals from a mobile sound<br />

source, and sensor nodes communicate via a radio channel.<br />

The acoustic channel <strong>in</strong>cludes propagation delay, while the<br />

Figure 5. A screen image <strong>of</strong> a model described <strong>in</strong> [4] that is used to evaluate a flood<strong>in</strong>g communication optimization<br />

heuristic.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!