proaches. For only our proposal, we evaluated in two
stages: a) creation of rings (i.e., DHT structures) and
b) per lookup operation. To prevent infinite lookup
operations in Random Walk and Flooding, we intro-
duced time to live (TTL) as IP does in order to repre-
sent a failed lookup: a lookup operation that takes a
greater period of time than a threshold.
!"
#!!"
$!!"
%!!"
&!!"
'!!"
(!!"
)!!"
*!!"
+!!"
!" '" #!" #'" $!" $'" %!" %'" &!" &'" '!"
,-./"
012345"6178"
97443:2;"
Number of lookups!
Node Battery [J]!
Our proposal!
Figure 7: Comparison of our proposal to Random Walk and
Flooding.
5.1 Result and Discussion
Table 1 shows the comparison of battery con-
sumption between Random Walk, Flooding and
our proposal. Although our proposal consumes
to create DHT structures, this only consumes
1.556J (0.0072%) of the battery of each node
to create them. In addition, our proposal con-
sumes 0.0049J (0.226× 10
−4
%) of the battery per
lookup operation. In contrast, Random Walk and
Flooding consume 0.1170J (5.5415×10
−4
%) and
0.0432J (1.998×10
−4
%) of each node respectively.
Figure 7 also shows the relationship between battery
consumption and the number of lookup operations in
Random Walk, Flooding and our proposal. As our
proposal requires additional battery to create struc-
tures, Random Walk and Flooding consume less bat-
tery when the number of lookup operation is less than
7 times and 41 times respectively. However, when the
number of lookup operation increases to 7 or 41, our
proposal consumes less battery.
Based on previous results, our proposal consumes
a significant amount of battery at the beginning,
but this consumption decreases when the number of
lookup requests increases more than 41. In mobile
agent frameworks of WSNs, less than 41 lookup op-
erations is unusual because they are designed to work
from one to a couple of years (Madden et al., 2005).
6 CONCLUSIONS
As WSNs are exposed to a real world, many of their
applications are required to adapt to the environment
changes. To address these problems, differentmiddle-
wares for mobile agents have been proposed, where
an application is composed of a set of agents and is
executed by the interactions of these agents. For this
approach, an agent needs to know the exact location
of its target agent beforehand. However, existing pro-
posals, including Agilla, do not support an efficient
lookup mechanism to lookup agents. In this paper,
we propose an approach that borrows ideas from the
CSN algorithm to efficiently lookup agents in WSNs
within a specific period time. This efficient lookup
allows WSN nodes to save battery consumption. We
implement our proposal on the TinyOS environment
and verified its advantages via a comparison with tra-
ditional lookup methods.
REFERENCES
Ali, M. and Uzmi, Z. A. (2004). CSN: A network proto-
col for serving dynamic queries in large-scale wire-
less sensor networks. In Proceeding of the Second
Annual Conference on Communication Networks and
Services Research, pages 165–174.
Blum, T. A. B., Cao, Q., Chen, Y., Evans, D., George, J.,
George, S., Gu, L., He, T., Krishnamurthy, S., Luo,
L., Son, H., Stankovic, J., Stoleru, R., and Wood, A.
(2004). EnviroTrack: Towards an environmental com-
puting paradigm for distributed sensor networks. In
Proceedings of the 24th International Conference on
Distributed Computing System, pages 582–589.
Chien-Liang, F., Roman, G.-C., and Lu, C. (2009). Agilla:
A mobile agent midleware for self-adaptive wireless
sensor networks. ACM Transactions on Autonomous
and Adaptive System, 4(3):1–26.
Gkantsidis, C., Mihail, M., and Saberi, A. (2004). Ran-
dom walks in peer-to-peer networks. In INFOCOM
2004. Twenty-third Annual Joint Conference of the
IEEE Computer and Communications Societies, vol-
ume 1, Hong Kong, China.
Heinzelman, W. R., Kulik, J., and Balakrishnan, H. (1999).
Adaptive protocols for information dissemination in
wireless sensor networks. In Proceedings of the
5th Annual ACM/IEEE International Conference on
Mobile Computing and Networking, MobiCom ’99,
pages 174–185, Seattle, Washington, USA. ACM.
Madden, S. R., Franklin, M. J., Hellerstein, J. M., and
Hong, W. (2005). TinyDB: An acquisitional query
processing system for sensor networks. ACM Trans-
actions on Database Systems, 30(1):122–173.
Perla, E., Cath´ain, A., Carbajo, R. S., Huggard, M., and
Goldrick, C. M. (2008). PowerTOSSIM z: realistic
energy modelling for wireless sensor network envi-
ronments. In Proceedings of the 3nd ACM workshop
on Performance monitoring and measurement of het-
erogeneous wireless and networks, pages 35–42.
Stoica, I., Morris, R., Karger, D., Kaashoek, M. F.,
and Balakrishnan, H. (2001). Chord: A scalable
WINSYS2015-InternationalConferenceonWirelessInformationNetworksandSystems
86