01.12.2012 Views

Architecture of Computing Systems (Lecture Notes in Computer ...

Architecture of Computing Systems (Lecture Notes in Computer ...

Architecture of Computing Systems (Lecture Notes in Computer ...

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.

<strong>in</strong>fection ratio K<br />

0.012<br />

0.010<br />

0.008<br />

0.006<br />

0.004<br />

0.002<br />

c1<br />

0.000<br />

0 10 20 30 40 50 60 70<br />

radio range R<br />

(a)<br />

Ad-Hoc Information Spread between Mobile Devices 105<br />

c2<br />

<strong>in</strong>fection ratio K<br />

0.004<br />

0.003<br />

0.002<br />

0.001<br />

� analytical result<br />

� N � 8192<br />

� N � 2048<br />

� N � 1024<br />

� N � 512<br />

� N � 256<br />

0.000<br />

0 5 10<br />

radio range R<br />

15<br />

Fig. 2. (a): Simulation results: <strong>in</strong>fection ratio K plotted versus radio range R for N =<br />

512, L = 2000 and 2 � R � 75. Vertical l<strong>in</strong>es c1 and c2 mark the separations <strong>of</strong> the<br />

three regimes. (b): First regime – scaled simulation results for various N compared<br />

with the analytical value <strong>of</strong> K computed accord<strong>in</strong>g to (4).<br />

used to determ<strong>in</strong>e a suitable value for P depend<strong>in</strong>g on K. However, comput<strong>in</strong>g<br />

K by runn<strong>in</strong>g simulations for each possible parameter set is unsatisfactory. In<br />

the follow<strong>in</strong>g we deal with the primary concern <strong>of</strong> the paper, that is, achiev<strong>in</strong>g<br />

the closed-form equation for K that is based merely on scenario’s parameters.<br />

3 Model and Simulation<br />

For the evaluation, the relative number a(t) <strong>of</strong> <strong>in</strong>fected devices at time t (simulation<br />

step) is <strong>of</strong> ma<strong>in</strong> <strong>in</strong>terest. In Fig. 1(b), a(t) is plotted versus t for four<br />

simulation runs with various values <strong>of</strong> N. The other model parameters are chosen<br />

as follows. The <strong>in</strong>itial <strong>in</strong>fection ratio I is chosen equal to 1/N ,whichmeans<br />

one <strong>in</strong>fected agent. The devices’ radio range R is fixed to 10 unit lengths. The<br />

velocity v <strong>of</strong> the agents is one unit length per time unit. The time axis (horizontal<br />

axis) is chosen such that a(0) = 0.5. It can be seen that all curves show<br />

qualitatively the same behavior. However, the quantitative slope <strong>of</strong> the curves<br />

depends on the number <strong>of</strong> agents. Actually, as it will be shown later <strong>in</strong> more<br />

detail, the slope depends on the density <strong>of</strong> agents ρ = N/L 2 andonthesystem<br />

parameters that are kept constant <strong>in</strong> Fig. 1(b), like the agents’ speed v and the<br />

radio range R.<br />

In the follow<strong>in</strong>g, we focus on the case P =0andI =1/N , i.e., devices are<br />

not reset and exactly one device is <strong>in</strong>itially <strong>in</strong>fected. Figure 2(a) depicts the<br />

results <strong>of</strong> the simulation for 512 agents, radio ranges vary<strong>in</strong>g from 2 to 75,<br />

board size L = 2000, and velocity v = 1. The calculated values <strong>of</strong> the unimpeded<br />

<strong>in</strong>fection ratio K, depicted on the vertical axis, are obta<strong>in</strong>ed from (2). For each<br />

value <strong>of</strong> R, the median <strong>of</strong> the slope a ′ (0) at t = 0 is obta<strong>in</strong>ed from polynomial<br />

approximations for 50 simulation runs.<br />

Simulation results shown <strong>in</strong> Fig. 2(a) reveal three dist<strong>in</strong>ct regimes with different<br />

dependences <strong>of</strong> the parameter K on R. At first, the <strong>in</strong>fection ratio K grows<br />

l<strong>in</strong>early with radio range R. In the second regime the value <strong>of</strong> K rema<strong>in</strong>s almost<br />

(b)<br />

�<br />

��<br />

��<br />

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

Saved successfully!

Ooh no, something went wrong!