Skip to Main Content
In recent years, much research has been done in the area of wireless sensor networks (WSNs). Nevertheless, the programming of sensor nodes is still a time-consuming and tedious task. One paradigm which seems to be qualified to simplify the programming of sensor networks is the service oriented architecture (SOA). The composition of simple services to more complex ones can be a convenient way to design applications. But to enable the sophisticated techniques known from SOAs like replication and migration of services, a transactional model for WSNs is needed. In this paper, we describe our implementation of consistent and stateful service migration in wireless sensor networks via atomic commit protocols. We show that different commit protocols offer advantages under changing networks environments and explain how the appropriate protocol can be selected (a) at compile time and (b) adaptively at runtime. We show that the best results in terms of transmitted bytes per commit decision can be achieved if the appropriate protocol is chosen adaptively during runtime.