Currently there are several solutions within traditional
WSN, such as LEACH, CTP(Gnawali et al., 2009),
PEGASIS(Raghavendra et al., 2001), Directed Diffu-
sion(Estrin, 2000) etc. However for 6LoWPAN there
are no solutions developed, deployed, and properly
tested.
A survey regarding current data aggregation so-
lutions in 6LoWPAN shown that no deployed solu-
tion did exist and, furthermore, a great deal of imple-
mentation strategies favoured a service or application
level approach. However, this approach is potentially
less efficient creating additional obstacles to applica-
tions development. For instance, with this approach
the use of automatic code generation frameworks will
become impossible and the coexistence of different
applications will imply the existence of different data
aggregation instances. Regarding the existent data
aggregation mechanisms, the best well suited solu-
tion to fit into a 6LoWPAN is CTP. Despite of being
address-free, the tree-based network topology and its
auxiliary mechanisms contribute directly to enable the
6LoWPAN communication paradigm. Although hav-
ing some issues identified, CTP has the advantage of
being a well-tested routing protocol with embedded
aggregation.
This work aims to implement a data aggregation
mechanism over 6LoWPANs based on CTP without
affecting 6LoWPANs functionalities and thus, con-
tributing to make 6LoWPAN more adequate to the
WSN reality.
The remaining of the paper is organized as fol-
lows. In section section 1, the proposed 6LoWPAN
In-Network Data Aggregation Mechanism architec-
ture along with its corresponding implementation.
Next, we present, in section 3, the tests made to prove
the added value of LA6 solution. Finally, some con-
clusions are drawn.
2 6LoWPAN IN-NETWORK DATA
AGGREGATION MECHANISM
2.1 LA6 Architecture
Berkeley Low-ower IP stack (BLIP)(Dawson-
haggerty, 2010) implements 6LoWPAN stack over
TinyOS through the instantiation of the architecture
composed by IPDispatch, IPRouting, IPAddress and
IPExtensions components. Its architecture organiza-
tion implements a central component, IPDispatch,
supported by the remaining modules, each one
responsible for different operations, complementing
IPDispatch in its functionalities. The LA6 solution
architecture, to be viable, cannot be defined without
IPDispatch. Therefore LA6 In-Network Data Aggre-
gation must intercept every data message to decide
whether to aggregate or to forward the data message.
To do so, we have created a procedure, in the IPDis-
patch component, responsible for intercepting and
decide whether to perform data aggregation.
Data aggregation mechanism should be based on
a tree-based routing protocol in order to create, and
take advantage of the data aggregation opportunities.
Therefore, in order to meet the solution requirements,
some functionalities of CTP were incorporated in the
data aggregation solution. Analysing CTP it was
concluded that to ensure a tree-based routing proto-
col, the following three components: LinkEstimator,
CtpRoutingEngine, CtpForwardingEngine are neces-
sary.
In Figure 1 is shown how these components are
integrated in the proposed in-network data aggrega-
tion solution. Despite taking advantage of CTP, this
solution is designed to avoid being dependent of CTP
to perform data aggregation. To ensure this, an ad-
ditional component, AggregationEngine was devel-
oped. This component is responsible for perform-
ing data aggregation regardless of the routing proto-
col used in the aggregation process. In other words,
this solution takes advantage of CTP tree-based rout-
ing to create data aggregation opportunities that will
be used by the AggregationEngine to realize data ag-
gregation. For this reason, this design approach is ex-
tremely flexible and adaptive because it ensures data
aggregation independence from the routing protocol
or the routing approaches used, namely Mesh-Under
and Router-over(Chowdhury et al., 2008). Since the
AggregationEngine was developed to perform data
aggregation regardless of the packet routing imple-
mentation, it will handle and manage data aggrega-
tion configurations using the traditional default rout-
ing mechanism implemented in IPRouting.
The interactions with AggregationEngine compo-
nent are only realized from the Intercept interface.
This interface implements the same functionalities
that it had in the old CtpRoutingEngine. Since ev-
ery data message traffic flows through IPDispatch, all
data messages will be intercepted and analysed by
the Intercept and according to the AggregationEngine
configurations is realized, or not data aggregation ac-
cording to message data content and the information
pigged-back in the additional CTP header decides
whether to aggregate or to forward data messages.
Therefore, the additional header inherited from
CTP gives the possibility of analysing each packet.
The encapsulation of BLIP messages by the CTP
header is necessary; because it is based on the ag-
SENSORNETS2014-InternationalConferenceonSensorNetworks
104