Professional Documents
Culture Documents
A Message-Oriented Middleware For Sensor Networks
A Message-Oriented Middleware For Sensor Networks
A Message-Oriented Middleware For Sensor Networks
4.1 Scenario Aggregate data originated from the local sensor(s) with data
Imagine a cubical environment-monitoring scenario with the coming from the network
following characteristics: each environment is formed by a group Control the association between the topics and its
of sensor nodes that can monitor variables such as temperature, aggregation functions. That is necessary because nodes can
humidity, sound and luminosity. Figure 6 represents this receive data of several topics and each topic can be
scenario. associated to a different aggregation function.
Verify the satisfaction of the aggregation policy’s criterion Once the announced topics arrive at the sink node, they are passed
and request publication of the associated state1 with a topic. to the user application. In this case study, a graphical interface
For example, the time criterion defines an interval where the was built to allow the user to select one or more topics of interest,
aggregation function is applied on values obtained locally or specifying desired policies and aggregation functions. A
generated from its sub-nodes. When the time is over, the screenshot of this application is shown in Figure 8, which
local state is transmitted and restarted. demonstrates a configuration where the user is interested in
receiving data about temperature every four minutes and
luminosity every six minutes. The user application sends a
An aggregation function defines how the data are combined. subscribe message to the sink node, and then Mires is responsible
Figure 7 shows the structure of the proposed aggregation service. by the dissemination the configurations of the user to the other
The AggregationM module contains the implementation of the nodes in the network. This procedure corresponds to the
aggregation service, handling the notifications sent by the subscription phase.
publication service. The aggregation functions are implemented in
separate modules such as AVG and SUM. The AggregateUse After the subscription phase, the application starts to publish the
module carries out an activity of de-multiplexing, passing data referring to the Mires’ responsibility to notify the
requests for the correct aggregation module in accordance to its aggregation service of the arrival topics of interest subscribed by
identifier. This way, flexibility to add new aggregation functions the user application. It is of local and remote data. In the
is guaranteed, just requiring the creation of a module for the new aggregation service, the data are combined in accordance with the
function and the association between the function and an function and policies established by the user application in the
identifier to a configuration file. subscription phase. Mires is responsible for transmitting the data
processed by the aggregation service to other nodes.
SUM In summary, the user application needs only inform Mires which
SUM
topics (temperature, luminosity or humidity) interest it. The
middleware receives this configuration message (topics, function
AggregateM
AggregateM AggregateUse
AggregateUse AVG
AVG and aggregation policies) and sends the requested data back to the
user application. This way, Mires makes the control and
1
A state is the data structure that represents the local result for
the aggregation of a certain topic.
R oom
Publish
Sensor messages
N ode readings
M ires TinyO S
application Inco ming
messages
user application
In our case study, we implemented an example of a service that [5] S. Lindsey and C. S. Raghavendra, "PEGASIS: Power
can be attached to the Mires framework in a straightforward Efficient GAthering in Sensor Information Systems”, In
manner. The Aggregation service is responsible for combining the Proceedings of the IEEE Aerospace Conference, Montana,
data coming from different sources, eliminating the redundancy of USA, March 2002.
the transmitted data, minimizing the number of transmissions and, [6] M. Younis, M. Youssef and K. Arisha, “Energy-Aware
thus, increasing the network lifetime. This fact occurs because the Routing in Cluster-Based Sensor Networks”, In Proceedings
parent nodes in the routing hierarchy process the messages sent of the 10th IEEE/ACM International Symposium on
by child nodes and the results are then published upwards in the Modelling, Analysis and Simulation of Computer and
network. This processing consists of the computation of a Telecommunication Systems, Fort Worth, Texas, USA,
mathematical function that summarizes the results obtained by the October 2002.
cluster participants.
[7] A. Manjeshwar and D. P. Agrawal, “TEEN: A Protocol for
The next steps in Mires development are related to the evaluation Enhanced Efficiency in Wireless Sensor Networks”, In
of its impact in the overall network performance and power Proceedings of the 1st International Workshop on Parallel
consumption. Improvements should be done in order to make it and Distributed Computing Issues in Wireless Networks and
more robust to sudden topology changes and individual node Mobile Computing, San Francisco, CA, USA, April 2001.
crashes. Tests using real sensor nodes (motes) are also been
planned. Finally, additional services such as security, trading and [8] W. Heinzelman, A. Murphy, H. Carvalho and M. Perillo,
resource management will be designed for Mires. “Middleware to Support Sensor Network Applications”,
IEEE Network Magazine Special Issue, pp. 6-14, January
2004.
6. ACKNOWLEDGMENTS
This work is partially sponsored by CNPq and CAPES, Brazilian [9] A. Wollrath, R. Riggs, and J. Waldo, “A Distributed Object
government research agency. Model for the Java System”, Usenix Conference on Object
Oriented Technologies and Systems, May 1996.
7. REFERENCES [10] A. Thomas and P. Seybold, “Enterprise JavaBeans
[1] I.F.Akyildiz, W. Su, Y. Sankarasubramaniam and E. Cayirci, Technology”, available in
“A Survey on Sensor Networks”, IEEE Communications http://java.sun.com/products/ejb/whitepaper.html, December
Magazine, pp. 102-114, August 2002. 1998.
[2] A. Cerpa et al., “Habitat Monitoring: Application Driver for [11] Object Management Group, “The Common Object Request
Wireless Communications Technology”, ACM SIGCOMM Broker: Architecture and Specification”, published by the
Workshop on Data Communications in Latin America and Object Management Group (OMG), Revision 2.3, June 1999.
the Caribbean, Costa Rica, April 2001. [12] Y. Yu, B. Krishnamachari and V.K. Prasanna, “Issues in
[3] G.J. Pottie, W.J. Kaiser, “Wireless Integrated Network Designing Middleware for Wireless Sensor Networks”, IEEE
Sensors”, Communications of the ACM, Vol. 43, no. 5, pp. Network Magazine Special Issue, Vol. 18, Issue 1, pp. 15-21,
51-58, May 2000. January 2004.
[4] W. Heinzelman, A. Chandrakasan and H. Balakrishnan, [13] K. Römer, O. Kasten, and F. Mattern, “Middleware
“Energy-Efficient Communication Protocol for Wireless Challenges for Wireless Sensor Networks”, ACM
Microsensor Networks”, In Proceedings of the IEEE Hawaii SIGMOBILE Mobile Communication and Communications
International Conference on System Sciences, Hawaii, USA, Review, vol. 6, No. 2, October 2002.
January 2000.
[14] P. Levis and D. Culler. “Maté: A Tiny Virtual Machine for Workshop on Distributed Event-Based Systems, San Diego,
Sensor Networks”, In Proceedings of the 10th International CA, USA, June 2003.
Conference on Architectural Support for Programming [22] D. Gay, P. Levis, D. Culler and E. Brewer, “nesC 1.1
Languages and Operating Systems, San Jose, CA, USA, Language Reference Manual”, In TinyOS documentation
October 2002. site, available in http://today.cs.berkeley.edu/tos/tinyos-
[15] J. Hill, R. Szewczyk, A. Woo, S. Hollar, D. Culler and K. 1.x/doc/nesc/ref.pdf, May 2003.
Pister, “System Architecture Directions for Networked [23] P. Buonadonna, J. Hill, and D. Culler, “Active Message
Sensors”, In ACM SIGOPS Operating Systems Review, Vol. Communication for Tiny Networked Sensors”, In
34, Issue 5, pp. 93-104, December 2000. Proceedings of the 20th Annual Joint Conference of the
[16] T. Liu and M. Martonosi, “Impala: a Middleware System for IEEE Computer and Communications Societies, Anchorage,
Managing Autonomic, Parallel Sensor Systems”, In Alaska, USA, April 2001.
Proceedings of the ninth ACM SIGPLAN symposium on [24] B. Krishnamachari, D. Estrin, S. Wicker, "Modelling Data
Principles and practice of parallel programming, San Diego, Centric Routing in Wireless Sensor Networks," In
CA, USA, June 2003. Proceedings of the 21th Annual Joint Conference of the
[17] P. Bonnet, J. E. Gehrke, and P. Seshadri, “Querying the IEEE Computer and Communications Societies, New York,
Physical World”, IEEE Personal Communications, Vol. 7, NY, USA, June 2002.
No. 5, pp. 10-15, October 2000. [25] S.R. Madden, M.J. Franklin, J.M. Hellerstein, and W. Hong,
[18] B. Krishnamachari, D. Estrin and S. B. Wicker, “The Impact “TAG: a Tiny Aggregation Service for Ad-hoc Sensor
of Data Aggregation in Wireless Sensor Networks”, In Networks”, In Proceedings of the Symposium on Operating
Proceedings of the 22nd International Conference on Systems Design and Implementation, Boston, MA, USA,
Distributed Computing Systems, pp. 575-578, Vienna, December 2002.
Austria, July 2002. [26] Y. Yao and J. Gehrke, “The Cougar Approach to In-network
[19] E. Yoneki, "Mobile Applications with a Middleware System Query Processing in Sensor Networks”, In Proceedings of
in Publish-Subscribe Paradigm", In the 3rd Workshop on the ACM SIGMOD International Conference on
Applications and Services in Wireless Networks, Bern, Management of Data, Madison, Wisconsin, USA, September
Switzerland, July 2003. 2002.
[20] G. Cugola, H and A. Jacobsen, “Using Publish/subscribe [27] P. Levis, “Ad-Hoc Routing Component Architecture”, in the
Middleware for Mobile Systems”, In the ACM SIGMOBILE TinyOS documentation site, available in
Mobile Computing and Communications Review, Vol. 6(4), http://today.cs.berkeley.edu/tos/tinyos-1.x/doc/ad-hoc.pdf,
pp. 25-33. ACM Press, New York, NY, USA, October 2002. February 2003.
[21] M. Cilia, L. Fiege, C. Haul, A. Zeidler, and A. P. Buchmann,
“Looking into the Past: Enhancing Mobile Publish/Subscribe
Middleware”, In Proceedings of the 2nd International