Escolar Documentos
Profissional Documentos
Cultura Documentos
Abstract—As wireless devices and sensors are increasingly ensure reliable data collection for high priority data streams
deployed on people, researchers have begun to focus on wireless and to dynamically reallocate bandwidth as conditions change,
body-area networks. Applications of wireless body sensor net- especially when the effective channel bandwidth is reduced by
works include healthcare, entertainment, and personal assistance,
in which sensors collect physiological and activity data from interference or fading.
people and their environments. In these body sensor networks, QoS research is not new; prior research has focused on
quality of service is needed to provide reliable data communica- managing and reserving resources [7] [8] [9] [10] in the
tion over prioritized data streams. This paper proposes BodyQoS, Internet, wireless networks, and ad hoc networks. However,
the first running QoS system demonstrated on an emulated body for body sensor networks, three new QoS challenges arise:
sensor network. BodyQoS adopts an asymmetric architecture, in
which most processing is done on a resource rich aggregator, (1) A body sensor network consists of two levels of devices:
minimizing the load on resource limited sensor nodes. A virtual multiple simple sensor nodes and a more powerful aggregator.
MAC is developed in BodyQoS to make it radio-agnostic, allowing A sensor node can be very resource constrained. For example,
a BodyQoS to schedule wireless resources without knowing a sweat sensor can be designed as a Band-Aid, which uses a
the implementation details of the underlying MAC protocols. film battery and is attached to the wrist to obtain sweat levels.
Another unique property of BodyQoS is its ability to provide
adaptive resource scheduling. When the effective bandwidth of In contrast, an aggregator is comparatively more powerful. An
the channel degrades due to RF interference or body fading aggregator might be a cell phone or an electronic watch that
effect, BodyQoS adaptively schedules remaining bandwidth to includes a 32-bit processor and rechargeable batteries. This
meet QoS requirements. We have implemented BodyQoS in NesC asymmetric, star-shaped architecture requires an asymmetric
on top of TinyOS, and evaluated its performance on MicaZ QoS solution, not typical of prior QoS research. (2) Existing
devices. Our system performance study shows that BodyQoS
delivers significantly improved performance over conventional medical sensor devices often use different radio technologies,
solutions in combating channel impairment. such as CC1000 [11], IEEE 802.15.4 [12], or Bluetooth [13].
There is a need for a radio-agnostic QoS solution, which
I. I NTRODUCTION can be easily ported from one radio platform to another.
In the last few years commercial sensor network applica- (3) Low power radios are susceptible to channel fading and
tions have emerged that require pervasive sensing of people interference. This issue is especially evident in BSN due to
and the environment, e.g., assisted living [1] [2] [3] and human body factor. A number of studies [14] [15] [16] [17]
smart homes [4] [5] [6]. For these applications, it is essential showed that the human body presents various adverse fading
to be able to reliably collect physiological readings from effects to wireless communication channels that are dependent
humans via Body Sensor Networks (BSN). Such networks on body size and posture. As a result, the communication
could benefit from Quality of Service (QoS) mechanisms that channel characteristics in a BSN are highly variable and
support prioritized data streams, especially when the channel is difficult to predict. Furthermore, when co-existing networks or
impaired by interference or fading. For example, heart activity RF emitting devices such as microwaves are present, packets
readings (e.g., EKG waveforms) are often considered more may be lost due to interference, reducing the effective channel
important than body temperature readings, and hence can be bandwidth [18]. In both cases, the QoS software needs to
assigned a higher priority in the system. In another example, a re-allocate resources from lower priority streams to higher
glucose data stream might be assigned a low priority when the priority streams. Adaptive QoS scheduling is thus needed to
readings are in normal range, but a higher priority might be re- provide statistical bandwidth guarantees, which are essential
assigned to the data stream by user applications when readings for reliable data collection in body sensor networks.
indicate hyper- or hypo-glycemia. QoS support is needed to Driven by these new challenges, we propose BodyQoS,
an adaptive and radio-agnostic QoS solution for body sensor
∗ Other names and brands may be claimed as the property of others. networks. The main contributions of this work are:
• Prioritized Data Stream Service: Through well-defined channel bandwidth. The second function is to continuously
interfaces, applications submit their QoS requirements for monitor and estimate the effective bandwidth, which varies
each stream, assigning a specific priority according to the according to interferences in the environment and body fading
data type and level of criticality. If the available wireless effect. QoS reservations are dynamically adjusted as necessary.
resource is not sufficient to serve all QoS reservations, The main function
the higher priority streams are served first. of the QoS scheduler Sensor Motes Aggregator
• Asymmetric QoS framework: Most admission control is to control use of
App App
functions and resource scheduling computations in the channel such that
BodyQoS are managed by the aggregator, while little reservation requirements
processing is required at sensor nodes. are attained. It schedules
Transport Transport
• Radio Agnostic QoS: A virtual MAC is implemented in wireless resource for all
BodyQoS to represent and schedule channel resources. It admitted streams and
separates the QoS scheduler from the underlying MAC provides admission control
Slave Admission
implementation. The virtual MAC design allows the QoS signaling between sensor Admission
Control Control
system to be ported from one radio platform to another nodes and the aggregator.
(less than 100 lines of modified code, in one instance). The scheduler also
• Adaptive Bandwidth Scheduling: Besides conventional allocates unused wireless Slave QoS QoS
RSVP-Light [19] QoS scheduling, we also implement resources for best-effort Schduler Scheduler
and evaluate adaptive QoS scheduling in BodyQoS that communications. The
provides statistical bandwidth guarantees. QoS scheduler is also
• Testbed Implementation: BodyQoS has been implemented responsible for measuring VMAC VMAC
in TinyOS [20] and evaluated on the MicaZ [21] platform. the effective channel
Our evaluation shows that BodyQoS exhibits improved bandwidth at runtime and
performance compared to conventional solutions. for reporting it to the Real MAC Real MAC
The rest of the paper is organized as follows. In section II admission control module.
poll
we present an overview of the BodyQoS architecture. We then Finally, the QoS scheduler data
explain design details of the BodyQoS components: the Virtual can schedule a sensor node
to sleep if it predicts a Fig. 1. BodyQoS Architecture
MAC in section III, the QoS scheduler in section IV and
admission control in section V. The performance of a TinyOS lull in the communication
implementation of BodyQoS is evaluated in section VI. Sec- schedule.
tion VII describes related work. Finally, in section VIII, we The VMAC isolates BodyQoS from the details of a specific
present conclusions and future work. MAC protocol. The VMAC design is challenging because
it must control and reserve the wireless resource to support
II. B ODY Q O S OVERVIEW QoS scheduling, while abstracting away the details of the
A BSN is a collection of small, low power sensing devices underlying MAC, including both CSMA-based and TDMA-
(such as EKG, pulse oximeter, temperature, sweat) wirelessly based MACs. To achieve this goal, the VMAC exposes an
connected to a resource-rich aggregation device (such as a abstract representation of wireless resource. It also provides an
watch or cell phone), all within one communication hop interface for the QoS scheduler to schedule wireless resource.
of each other. BodyQoS is a set of software modules that As illustrated in Figure 1, both admission control and
sits between the transport and the MAC layers. BodyQoS the QoS scheduler consist of two parts that are distributed
receives QoS and data transmission requests from the transport across sensor nodes and the aggregator. The aggregator makes
layer and uses the underlying MAC protocol to transmit admission control decisions, computes the communication
data. BodyQoS consists of three components: Admission Con- schedule, and polls individual sensor nodes for data. Use of
trol, QoS Scheduler and Virtual MAC (VMAC). BodyQoS polling simplifies resource scheduling and supports an efficient
adopts an asymmetric architecture. The Admission Control and asymmetric QoS design. Polling also simplifies coordination
Scheduler components are implemented as a master and slave among multiple aggregators, allowing co-existing body sensor
module on the aggregator and sensor nodes respectively. As networks (future work).
shown in Figure 1, the slave admission control and slave QoS
scheduler execute on the sensor motes, while the main part III. VMAC D ESIGN
of admission control and the QoS scheduler execute on the
aggregator. Today, several different radio platforms are available for
The admission control module has two main functions. The sensor devices, e.g., the CC1000 [11], the CC2420 [22] or
first function is to accept or reject new QoS reservations. Bluetooth [13]. In some cases, multiple radio platforms may
The decision is based on the requested bandwidth, time delay exist within a single system. To prevent QoS scheduling from
requirement, and priority, as well as the available wireless being tied to a specific radio implementation, a virtual MAC
resources, previously accepted reservations, and the effective design is required.
1239
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
T Interval
Requested to send D packets within time T
S pkt
D ≥ 1 and
End N
time left ≤ TmaxPkt?
Update time left
D=D-1
Y
…... …... …... …...
Call real MAC to send one packet;
Fig. 2. VMAC Abstraction
1240
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
1241
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
to compute the effective bandwidth within the is clean. For VMAC to send out Di packets, BodyQoS should
time period Ti × Di + TmaxP kt as BWef f ective = reserve a time period of TminP kt × Di
N um of Recived P acket ∗Bytes P er P acket+P olling P acket Size
Ti ×Di +TmaxP kt 2) Adaptive QoS Scheduling: To cope with channel im-
3) If the aggregator does not receive any packets before the pairment, it is essential for the QoS system to manage wire-
time period Ti × Di + TmaxP kt expires, it knows that less resources adaptively, based on channel conditions. For
either the polling packet was lost, or all replies were lost. example, an EKG sensor continuously samples heart activities
The aggregator assumes that the single polling packet and places data into a limited size buffer in a sensor mote.
was lost (since this is far more likely), and the effective During times of channel impairment, the effective bandwidth
bandwidth is 0 within the time period TmaxP kt . reduces and packets are lost. The lost packets should receive
As discussed above, whenever a polling packet is trans- more opportunities to be retransmitted. The question is how
mitted, the aggregator gets a chance to measure the effective much time should the lost packets get for retransmission.
bandwidth almost for free. Even though these bandwidth For example, if the packet needs 4ms to be sent when the
measurements are only samples of the channel when polling effective bandwidth is 100%, then 40ms is needed to service
occurs, they are accurate enough for the QoS support since the reservation when the effective bandwidth reduces to 10%.
the time interval is relatively short (2 seconds in our system). Now we must determine how to allocate the 40ms. One
The aforementioned is a direct way to compute the ef- approach is to give the MAC more time for retransmis-
fective bandwidth in BodyQoS. To reduce the processing sion. However, MAC protocols typically limit the number
load, we propose a second, simpler, and indirect scheme: of backoffs and retransmissions. Radio control is returned to
BWef f ective = BWideal ∗ N N um of Delivered P acket
um of Requested P acket . For each
QoS scheduler after time TmaxP kt . If the scheduler waited
polling packet, the QoS scheduler knows the number of any longer, the radio would remain idle, wasting precious
requested packets. The number of delivered packets can also resources. Instead, a portion of the bandwidth should be given
be easily obtained at the aggregator. The ideal bandwidth can to the transport layer so that the transport layer can retransmit
be computed as follows: the lost packet. Traditional transport layers do not ask for more
Npkt × Spkt × 8 resources when packets are lost. For example, communication
BWideal = (1) failure in TCP is considered a result of congestion. TCP
Tinterval
actually backs off and uses less bandwidth when packets are
In our performance evaluation, we use this indirect scheme lost. However, packet losses in a BSN are mainly due to
to compute effective bandwidth, and also to maintain a moving channel impairment, rather than congestion, since the radio
average of effective bandwidth with the decay factor of δ: range is small and BSNs typically have a single use. As a
BWmovAvg (i + 1) = δ × BWef f ective result, transport layer retransmissions make sense in BSN.
Without the adaptive bandwidth provision, buffer space in
+(1 − δ) × BWmovAvg (i) (2)
sensor motes may be depleted and data samples could be lost.
C. Advanced Scheduling Algorithms In order to schedule adaptive bandwidth, we need to
Next, we describe a way to compute Ti and Di values compute Di and Ti values dynamically, according to the
at runtime. In BodyQoS, we provide two algorithms for effective bandwidth BWmovAvg from Formula 2. For ease of
computing these values: RSVP-Light QoS scheduling and explanation, we denote the dynamically computed new values
adaptive QoS scheduling. of Di and Ti as Di? and Ti? . Di and Ti are used to denote
1) RSVP-Light QoS Scheduling: In the standard RSVP [19] the values obtained in the ideal case when there is no channel
protocol, an audio/video stream reservation consists of a fixed impairment. Therefore, Ti in the ideal case is the minimum
bandwidth and time for data communication, and lost pack- time for the MAC to send out a packet, that is, TminP kt . When
ets are not retransmitted. This is reasonable for audio/video there is channel impairment and the effective bandwidth is
streams because it does not make sense to play late or BWmovAvg , the MAC needs to increase the time for sending
unordered portions of audio/video data. BodyQoS supports this one packet to Ti? :
conventional wisdom, by reserving a fixed wireless bandwidth BWideal
according to the QoS reservation, disregarding the current Ti? = min{TminP kt × , TmaxP kt } (4)
BWmovAvg
channel condition and measured effective bandwidth.
If a QoS reservation Ri requests bi Kbps bandwidth, the Where BWideal is computed according to Formula 1.
number of bits sent within each time interval Tinterval is bi ∗ When the channel degrades to the point at which the
Tinterval . Since the effective application data payload size for maximum MAC retransmissions fails to deliver most packets,
each VMAC packet is Spkt bytes, the number of data packets some additional time must be allocated so that the transport
that should be scheduled for Ri is: layer can retransmit lost packets. The total time assigned to
both the transport and MAC layers should be the adaptive
bi ∗ Tinterval
Di = d e (3) bandwidth the reservation requests under the current channel
Spkt × 8 condition. In the ideal case, the time assigned to the reservation
In section III, we defined TminP kt as the minimum time is Di × Ti . When there is channel impairment, the time
period for the real MAC to send out a packet when the channel assigned to it should be Di? × Ti? . So we have the following
1242
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
0 KL KH 1
equation:
Di? × Ti? BWideal
=
Di × Ti BWmovAvg
From this equation, we can obtain the following formula: Effective BW BWmovAvg sd
1243
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
1) If the aggregated bandwidth of all QoS reservations (no resource reservations). In our experiments, the EKG data
to be removed, including the current reservation being stream uses adaptive QoS, the location data stream uses RSVP-
checked, is greater than the bandwidth that is needed Light QoS, and the temperature reading data stream requests
to be reclaimed, then the current reservation is ignored; best-effort communication. For a fair comparison, all three
admission control checks the next reservation in the list. motes generate data at 4 Kbps.
2) If the aggregated bandwidth of all QoS reservations Four metrics are used for performance evaluation. First, we
to be removed, including the current reservation being measure the ratio of delivered bandwidth over requested band-
checked, is smaller than the bandwidth that is needed to width, demonstrating the reliability of data collection. Second,
be reclaimed, then the current reservation is removed; we measure the average time delay of data communication,
admission control checks the next reservation. which starts when a packet is fetched from a sensor’s data
3) If the aggregated bandwidth of all QoS reservations buffer and ends when the packet is delivered to the aggragator.
to be removed, including the current reservation being Third, we compare the rate at which sampled data is removed
checked, is equal to the bandwidth that is needed to from the transmission buffer, reflecting an ability to preserve
be reclaimed, then the current reservation in the list is the limited storage space of sensor nodes. Finally, we measure
removed and the algorithm stops. the energy consumption per delivered data byte.
Once admission control determines which QoS reservations To evaluate BodyQoS’s ability to cope with channel im-
to remove, it notifies the QoS scheduler to stop reserving pairment, the level of interference is varied over the course of
resources for each. each experiment. In the first time period, 0s∼135s, there is no
The above algorithm executes when a new reservation explicit noise. In the second time period, 135s∼225s, a MicaZ
request is received and when the effective bandwidth drops node is used to generate noise signals. It broadcast a packet
below the amount needed for admitted QoS reservations. every 30ms. In the third time period, 225s∼315s, the noise
level is increased to one packet every 25ms. In the fourth time
C. Admission Control Signaling period, 315∼400s, the noise level is again increased to one
Because the BodyQoS design is based on an asymmetric packet every 20ms. The experiments were repeated over 10
architecture, admission control is split between the master and times, and similar results were obtained in each trial. Figure 6
slave modules on the aggregator and sensor nodes. Signaling presents a representative result from one trial.
between the master and slave is needed in three cases: when a As presented in Figure 6(a), in the first time period (before
new reservation request is submitted by an application, when interference is introduced), all three solutions maintain 100%
the application must be notified of a stopped reservation, bandwidth delivery ratio. However, in the face of interference,
and when an application requests the removal of an existing both RSVP-Light QoS and best-effort communication suffer
reservation. Signaling is required between master and slave severe packet loss and reduced bandwidth delivery ratios. For
modules to notify each of application requests and changes in example, the bandwidth delivery ratio of RSVP-Light QoS
the set of admitted reservations. Details of admission control decreases to about 90% in the second time period, to about
signaling is omitted due to space constraints. 80% in the third time period, and finally to about 60% in
the fourth time period. Similarly, the bandwidth delivery ratio
VI. P ERFORMANCE E VALUATION of best-effort communication decreases to 45∼90% in the
We have implemented BodyQoS in TinyOS [20] with the second time period, and 0∼30% in the third and fourth time
CC2420 IEEE 802.15.4 [12] radio. The VMAC implemen- periods. The performance of RSVP-Light QoS is decreased
tation, which is the only MAC-dependent component in the because it always reserves a fixed level of wireless resources,
QoS system, has less than 100 lines of code while the whole regardless of existing interference. As a result, the higher
BodyQoS system has about 3700 lines of code. As a result, the interference level, the more the performance degrades.
porting the QoS system from one radio platform to another For best-effort communication, the performance decreases for
should be relatively straightforward, requiring modification of two reasons. First, when interference increases, more wireless
less than 3% of the code. resources are allocated to adaptive QoS and less to best-
Our experimental setup mimics a typical on-body sensor effort communication. Second, it relies on the MAC layer to
network, in which sensors measure a person’s physiological recover lost packets, but it does not benefit from the adaptive
parameters. A MicaZ mote [21] is configured to report heart bandwidth scheduling, in which a collaborative effort from
activity readings from an EKG sensor to the aggregator. A both the MAC and transport layers is made.
second MicaZ mote is configured to report a patient’s location Note that, even when different interference levels are present
information, and a third MicaZ mote is configured to report in time periods 2∼4, the adaptive QoS solution still maintains
body temperature readings. The aggregator is emulated by a close to 100% bandwidth delivery ratio. Even though the
MicaZ mote that is connected to a serial port of a laptop for bandwidth delivery ratio varies with time, which is due to the
data collection. Within the body sensor network, we compare adaptation to interference, statistically speaking, the delivered
the performance of three solutions: adaptive QoS that we bandwidth meets the requested bandwidth. This performance
propose in BodyQoS, conventional RSVP-Light QoS that we is mainly due to adaptive QoS’s novel bandwidth schedul-
also implement in BodyOoS, and best-effort communication ing. When the BSN suffers from channel impairment due
1244
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
1.6 35
Adaptive Adaptive
0 0
100 150 200 250 300 350 400 100 150 200 250 300 350 400
Time (s) Time (s)
(a) Delivered Bandwidth (b) Average Channel Access Delay
RSVP-Light
0.35 Best-Effort
3980
0.3
3960 0.25
3940 0.2
0.15
3920 Adaptive 0.1
RSVP-Light
Best-Effort
3900 0.05
100 150 200 250 300 350 400 100 150 200 250 300 350 400
Time (s) Time (s)
(c) Data Buffer Overflow (d) Energy Consumption Per Byte
to RF interference or human body fading effect [14], the For RSVP-Light QoS, fixed wireless resources are reserved
QoS scheduler allocates more resources to accommodate more during all four time periods. When interference level increases,
retransmissions, so that statistically the delivered bandwidth is the MAC layer uses more time to send each packet, and hence
able to meet the requested bandwidth. Notice that sometimes the number of packets that can be fetched for transmission is
the bandwidth delivery ratio for adaptive QoS exceeds 1. In reduced within the fixed time period. As shown in Figure 6(c),
this case, additional bandwidth has been allocated to adapt to the data buffer fetching speed of RSVP-Light QoS reduces to
interference, and the sensor node is able to send out accumu- 3.9∼4 Kbps in the fourth time period. Best-effort communi-
lated data (backlogged in the transmission buffer because of cation receives less resources when more resources are given
lack of resource in the previous time intervals) in a burst. to the adaptive QoS in the presence of interference. As shown
As shown in Figure 6(b), BodyQoS pays only a small delay in the figure, the data fetching speed drops below 4 Kbps in
penalty in providing highly reliable data communication. We the third and fourth time periods.
observe that the average time delay for all three cases is Figure 6(d) illustrates energy consumption per delivered
only slightly higher than the case in which there is no QoS data byte. In the first time period, adaptive QoS and RSVP-
reservation. As discussed in section IV, this time delay can be Light QoS consume slightly more energy than best-effort.
significantly reduced when Kf re is greater than 1. We plan to This is because adaptive QoS and RSVP-Light QoS incur a
evaluate this approach in future work. polling overhead. Note that all three cases have similar energy
The data buffer fetching speed for each QoS strategy is efficiency when interference is present in time periods 2∼4.
illustrated in Figure 6(c). It is clear that adaptive QoS is able In summary, BodyQoS provides a high bandwidth delivery
to fetch data from the buffer at the same pace that the data ratio (Figure 6(a)) and a high data fetching speed (Figure 6(b))
is generated, regardless of interference levels. This feature is while maintaining similar delay (Figure 6(c)) and energy
essential for storage limited sensor nodes to prevent data loss efficiency (Figure 6(d)) properties as compared with existing
due to buffer overflow. solutions. Interested readers can refer to [27] for a more
1245
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.
This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE INFOCOM 2008 proceedings.
1246
Authorized licensed use limited to: Universidad de Antioquia. Downloaded on May 11, 2009 at 20:08 from IEEE Xplore. Restrictions apply.