Transmission Error Analysis and Avoidance For IEEE 802.15.4 Wirel
Transmission Error Analysis and Avoidance For IEEE 802.15.4 Wirel
Transmission Error Analysis and Avoidance For IEEE 802.15.4 Wirel
TigerPrints
All Theses Theses
12-2008
Recommended Citation
Jacob, Jobin, "Transmission Error Analysis and Avoidance for IEEE 802.15.4 Wireless Sensors on Rotating Structures" (2008). All
Theses. 520.
https://tigerprints.clemson.edu/all_theses/520
This Thesis is brought to you for free and open access by the Theses at TigerPrints. It has been accepted for inclusion in All Theses by an authorized
administrator of TigerPrints. For more information, please contact [email protected].
TRANSMISSION ERROR ANALYSIS AND AVOIDANCE FOR IEEE 802.15.4
WIRELESS SENSORS ON ROTATING STRUCTURES
A Thesis
Presented to
the Graduate School of
Clemson University
In Partial Fulfillment
of the Requirements for the Degree
Master of Science
Electrical Engineering
by
Jobin Jacob
December 2008
Accepted by:
Dr. Kuang-Ching Wang, Committee Chair
Dr. Harlan Russell
Dr. Yong Huang
i
ABSTRACT
for monitoring critical components under continuous operation. Many such components
move rapidly and frequently in metallic containments with challenging radio propagation
characteristics.
eminent increase in packet transmission errors at higher rotation speeds. Such errors were
found to occur at specific locations around the rotating spindle’s periphery and such
locations depended sensitively on sensor location and surrounding geometry. This thesis
presents a systematic study of the expected packet error rates due to such errors, and
analytically derives the first transmission error rate for a given system. Simulations done
on C++ are used to characterize the error region properties. A transmission error
avoidance approach based on on-line error pattern inference and packet transmission time
The transmission avoidance scheme has two phases: error identification phase to
determine the error characteristics of the system and the operational phase to avoid errors.
Simulation studies showed a 50% error reduction and up to 75% throughput increase for
a rotation system with four symmetric 4º wide error zones with 100% BER inside the
error region and 0% BER outside the error region. Higher throughput gains for higher
rate and larger size transmissions were also noticed for this system. Simulations also
show that the throughput decreases when the packet size duration is greater than the
ii
DEDICATION
iii
ACKNOWLEDGMENTS
I would like to sincerely thank my advisor, Dr. Kuang-Ching Wang for his
guidance, support and motivation without which this thesis would not have been possible.
Every meeting with him has been motivational and a learning experience. I am indebted
to him for his valuable advice throughout the two years of my research.
I would also like to thank Lei Tang and Dr. Huang for their help and support. I am
iv
TABLE OF CONTENTS
Page
ABSTRACT.....................................................................................................................ii
DEDICATION................................................................................................................iii
ACKNOWLEDGMENTS ..............................................................................................iv
LIST OF TABLES.........................................................................................................vii
CHAPTER
1. INTRODUCTION .........................................................................................1
3. SYSTEM DESCRIPTION...........................................................................10
v
4.4 Simulation Studies ................................................................................. 37
4.4.1 Effects of Different Error Region Widths..................................... 39
4.4.2 Effects of Different Number of Error Regions ............................. 40
4.4.3 Effects of Imprecise Knowledge of Rotation Speed.....................40
REFERENCES ..............................................................................................................70
vi
LIST OF TABLES
Table Page
4.2 Maximum, mean, and standard deviation of detected error window sizes
with varied error rate thresholds. ........................................................... 24
vii
LIST OF FIGURES
Figure Page
3.2 Projected view from the right side of the rotating sensor test bed
(not to scale) ..........................................................................................12
4.8 PER vs rotation speed .with three evenly spaced 4 degree error regions .... 33
viii
List of Figures (Continued)
Figure Page
4.12 First transmission error probability distribution for a three error zone
system centered at 0,120 and 240 degrees with width 4 degrees each
(E1b=-2º, E1e=2º, E2b=118º,E2e=122º,E3b=238º and E3e=242º)...............36
4.13 Normalized error burst distance distribution obtained with error region
widths 5, 10, and 15 degrees at 2000 rpm ............................................. 39
4.14 Normalized error burst distance distribution for one, two, and
three evenly distributed error regions .................................................... 40
4.15 Error burst distance distribution obtained for R=2000 rpm and
(a) C=1950 rpm, (b) C=1900 rpm, (c) C=2050 rpm, (d) C=2100 rpm.. 42
4.16 Error burst distance distribution for large speed inaccuracies with one error
region .....................................................................................................44
4.17 Error burst distance distribution for large speed inaccuracies with two error
region .....................................................................................................44
5.1 Two error region distributions can result in similar error burst distance
distributions: (a) three error regions centered at 0, 90, and 180 degrees;
(b) four error regions centered at 0, 90, 180, 270 degrees. ................... 46
5.2 Location distribution with clock drift for error bursts shown in
Figure 4.1. ............................................................................................. 48
ix
List of Figures (Continued)
Figure Page
5.4 Error burst location distribution for a three error zone system
centered at 0,90 and 180 degrees, each with a width of 4 degrees .......50
5.9 2000rpm, one 4-degree error region, (a) PER v.s. packet size v.s.
transmission interval (b) throughput v.s. packet size v.s.
packet interval........................................................................................61
5.10 2000rpm, four 4-degree error regions PER v.s. packet size v.s. transmission
interval ...................................................................................................63
5.11 2000rpm, four 4-degree error regions Throughput v.s. packet size v.s.
transmission interval .............................................................................. 63
5.12 2000rpm, four 4-degree error regions, throughput v.s. PER outside error
region with 92 byte packets (BER in error region is irrelevant since
transmissions are entirely avoided)........................................................ 64
5.13 2000rpm, two 4-degree error regions centered at 0 and 60 degrees, throughput
v.s. packet size for different packet generation interval ........................ 66
x
CHAPTER ONE
INTRODUCTION
gained substantial attention for use in different monitoring applications [1]. Wireless
sensors are promising for replacing cables in monitoring systems and enabling flexible
sensing over structures that are difficult to monitor with wired sensors [2]. Rotating
mechanical structures found in a wide range of mechanical, civil, and aerospace systems
are among such hard-to-reach structures with crucial monitoring importance [3-6]. Such
structures are mostly found in metallic enclosures that are harsh for radio
challenges such as the frequent transmission errors, low data throughput, unknown
enclosures, create a challengeable condition for wireless data transmission due to their
complex, reflective, and fast changing radio paths. Doppler effect might be introduced
into the data transmission due to the high rotation speed. During high speed rotation, the
stability of radio hardware, such as the antenna connection, is also crucial to reliable
significant challenge that far exceeds conventional radio communication systems. By far,
studies of rotating wireless sensors have not clearly addressed the issue of data
transmission reliability [3-6]. The recent study [6] reported the number of received
1
packets out of all transmitted packets; yet, it did not measure the number of correctly
studied. In [11], it was concluded that errors during rotation were primarily due to
multipath and Doppler effects and caused error bursts spanning multiple consecutive bits.
In [12], such errors were found to occur near one specific location around the spindle
periphery; its vicinity was referred to as an error region, and a reliable transmission
method based on automatic repeat request (ARQ) was introduced to recover transmission
errors. The ARQ approach achieved a high retransmission success rate; nevertheless,
new transmissions still faced above 20% packet error rates, severely undermining the
shown in this thesis, packet error rates can easily reach as high as 50% under certain
configuration and channel characteristics. In [13], the temporal distribution and size of
error regions were analyzed based on recorded time stamps and bit contents of failed
probing transmissions. Probing transmissions were also used to determine the effects on
the error distribution with the change in rotation speed of the spindle and clock drift of
the sensors.
With multipath and Doppler effects being the primary causes of transmission
errors for a rotating sensor, the error region distribution is expected to depend sensitively
on the surrounding structure, sensor position, and rotating speed. In [8], the PERs were
found to differ substantially by moving the receiver’s location by just 3cm. To avoid
transmissions that would most probably result in errors, a sensor radio must be aware of
2
its error region distribution in order to determine its transmission strategy, while
obtaining accurate sensor position around the periphery during high speed rotation is very
difficult without complex hardware design. To reduce such transmission errors for
The purpose of this thesis is to characterize the error region and its avoidance
Different experiments and simulation results are used to evaluate the effectiveness of the
developed based on the IEEE 802.15.4 protocol to model the radio error model, error
distribution inference, and transmission time control. Simulation results are divided
according to the two phases of the transmission error avoidance method. In the training
phase the sensor utilizes probing packets to generate the error location distribution. This
is used to identify the error locations and their widths. In the operational phase the sensor
sends data packets. Synchronization is done initially to deduce the location of the
transmitter with respect to its error location. Simulation results show a 50% error
reduction and up to 75% throughput increase for a rotation system with four symmetric 4º
wide error zones with 100% BER inside the error region and 0% BER outside the error
region. Higher throughput gains for higher rate and larger size transmissions are also
noticed for this system. The main contribution of this thesis is the transmission error
analysis method and the transmission error avoidance scheme used for a rotating wireless
sensor system.
3
The rest of the thesis is organized as follows. In chapter 2 the related work and
achievements are described. Chapter 3 describes the experimental setup of the wireless
sensors in the computer numerical control (CNC) lathe and the IEEE 802.15.4 MAC
protocol. The model developed for the rotating error system is described in chapter 4,
and the transmission error avoidance scheme is described in chapter 5. The conclusions
4
CHAPTER TWO
IEEE 802.15.4 radios are used in networks to ensure low cost communication
with low power consumption. The thesis focuses on the communication between an IEEE
802.15.4 radio attached to a rotating device and a stationary radio. In this chapter the
current use of IEEE 802.15.4 radios and the constraints faced by radios on fast rotating
structures is discussed.
The IEEE 802.15.4 standard compliant radios are designed for low-data-rate, low-
power, and short-range transmission [15] in the 868/915 MHz and 2.45 GHz Industrial,
Scientific, and Medical (ISM) radio bands. Existing IEEE 802.15.4-compliant radios do
not implement complex circuitry such as a RAKE receiver which improves reception in
Doppler shifts, but rely on the limited multipath and Doppler tolerance inherent in its
Numerous field measurement studies of wireless sensors have been done, e.g.,
[16-19]. Most of these studies included IEEE 802.15.4 radios in addition to other sensor
platforms with their respective radio protocols, frequency bands and power levels.
Measurements were conducted in both indoor and outdoor settings and had the same
conclusions that there exists a grey zone [16,18] at a specific distance from the
5
transmitter, within which the receivers link quality fluctuates with even small
displacements. The studies also conclude that link asymmetry occurs, such that a node
may be able to transmit to another node but vice-versa may not happen, even if the nodes
were set to the same transmit power. In addition to studies on wireless sensor links, work
has been done on the use of IEEE 802.15.4 radios in monitoring the environment [20]
and location estimation [21-22]. [23] discusses the introduction of an IP stack to the IEEE
802.15.4 stack to enable the efficient transmission of IPv6 datagrams over IEEE 802.15.4
links. This opens up the use of such radios for Internet applications.
ground or on structures that are either stationary or slow moving. Very few studies have
examined the use of wireless sensors on structures that move substantially within the
structure. In [2], wireless sensors were installed inside polymer covered cylindrical rolls
to measure acoustic emission pulse counts and surface temperatures; up to 10k packets
per second data were transmitted over an IEEE 802.11 radio. In [3], a wireless motor
spindle measurement system measured torque, power, and rotation speed with sampling
rates up to 963.9 Hz, and the data were transmitted over a low-power digital radio at
19200 bits per second (bps). Both studies did not mention transmission errors in their
experiments.
6
2.2 Constraints Faced by Radios on Rotating Structures
work cannot be directly applied to the rotation of a wireless sensor. Sensor radios differ
greatly from cellular radios in their very low transmit power, simple antenna and circuitry
design. Commercial wireless sensors trade off robustness for low costs
with the structures themselves and their surroundings made of metallic materials. To
monitor such rotating structures, a typical wireless measurement system usually consists
of two parts: 1) the measuring and transmitting unit, which is mounted on or within the
rotating structure, and 2) the receiving unit which is mounted on a stationary part near the
have rich multipath radio components, each experiencing different path loss and Doppler
effect, and resulting multipath effects that depend on the relative phases, amplitudes, and
frequency shifts of all transmitted radio components. While wireless sensors have been
office or out in the field, the performance of rotating wireless sensors may be severely
Radio signal attenuates along the propagated path. The energy attenuation,
known as the path loss, is proportional to a certain power of the propagated distance, with
additional obstruction and/or refraction loss caused by objects along the path. Signal is
7
radiated from an antenna in a span of directions regardless of their types. When static or
moving objects exist in the surrounding, the radio signal may follow multiple reflected
paths to reach a receiver with different amplitudes and phases due to the different path
lengths. The received signal is the sum of all such multipath signal components, which
generally causes distortion in the signal duration and waveform. Rotating structures also
face the additional challenge of the Doppler effect, which occurs due to the fast change of
the distance between the transmitting and receiving sensor during signal transmission.
The distance change results in frequency shifts and signal duration changes that also
distort the received signal [24]. Electromagnetic noise is typically present around
engineering systems.
In [11], experiments with rotating wireless sensors concluded: (1) the radio
and hardware stability effects were insignificant; (2) when stationary, the radio had
consistently low PERs; (3) when rotating, PERs increased with speed at some locations
but not all; the dependency changed when receiver was moved by 3cm; (4) bit errors
occurred in bursts, when the transmitter rotated past a particular location; (5) path loss,
antenna directive gains and stability, machine noise, and automatic gain control had
The experimental setup utilized in this thesis is designed to model the essential
mechanical, and aerospace systems. The sensor platform can potentially be integrated
with sensors for acoustic emission, strain gauge, thermocouple, accelerometer, etc.
8
Examples of such applications can be found in roll contact monitoring [3], grinding
wheel truing and grinding monitoring [4], and motor shaft torque monitoring [5, 6]. The
systems.
9
CHAPTER THREE
SYSTEM DESCRIPTION
In this chapter the rotating wireless sensor test bed is explained. The
experimental results on this test bed form the basis for this thesis. The transmission error
avoidance scheme developed utilizes the timing information of the IEEE 802.15.4 MAC
protocol. This chapter also explains the MAC protocol and how its packet scheduling can
be used in the transmission error avoidance scheme, it also explains the reason for
choosing the non-beacon mode version of the protocol for the transmission error
avoidance scheme.
The testbed is built with two wireless sensors mounted inside a computer
numerical control (CNC) lathe, with one base station placed outside the machine for
Crossbow MicaZ motes [26] are chosen as the wireless sensors for this testbed.
The MicaZ mote adopts an IEEE 802.15.4-compliant radio based on the Chipcon
CC2420 chip, which supports 250 Kbps raw data rate, controllable transmit power range
of -25 dbm to 0 dbm, and 16 channels in the 2.4 GHz ISM band. The radio chip feeds to a
circuit board with an MMCX connector that is designed for a slot-less, snap-fitting, and
minimal-leakage contact. The mote outputs various radio parameters to be used in the
10
experiments. For each received packet, an 8-bit received signal strength indication
(RSSI, linear transformable into dBm unit), an 8-bit link quality indicator (LQI), and the
output of a 16-bit cyclic redundancy check (CRC) error-detecting circuit [27] are
provided. The radio adopts direct sequence spread spectrum (DSSS) and O-QPSK half-
sine modulation, such that each 4-bit data is mapped to a pseudo-random 32-chip binary
spreading sequence, which is transmitted with O-QPSK modulation. The mote is 2.25 by
11
14 cm 38cm
40 cm
Transmitter
300° Receiver
0°
240° 45 cm
40 cm
60°
6 .5
cm 180°
120°
70 cm
25 cm 42 cm 40 cm
30 cm
47 cm 10 cm
80 cm
Figure 3.2. Projected view from the right side of the rotating sensor test bed (not to scale)
The machine used in the testbed is the Hardinge Talent 6/45 CNC lathe with a
speed-controllable rotating spindle enclosed in a metallic chamber. The spindle can rotate
at a maximum speed of 6000 rpm and minimum speed of 60 rpm. Figure 3.1 shows a
photograph and Figure 3.2 shows a cross-section view along the spindle axis. The
transmitter mote is tape-bound to the spindle surface, with its antenna perpendicular to
the surface. The receiver mote is placed on the metallic side board next to the spindle,
aligned with the transmitter on the plane perpendicular to the spindle. Transmission
experiments are controlled via a base station composed of a MicaZ mote connected to a
Crossbow mote interface board (MIB510), located outside the lathe. The precise location
of the base station is not relevant, as it only communicates with the sensors for control
and data logging between experiments. As illustrated in Figure 3.3, the base station
communicates with the sensors over the same IEEE 802.15.4 channel, while it interfaces
with a personal computer (PC) for data logging over a universal asynchronous
12
receiver/transmitter (UART) serial cable.
Receiver
Link of
Base Station
interest
MIB 510 PC
Transmitter
packets using the ARQ reliable transmission method and to record all transmission errors
seen at the receiver. With the IEEE 802.15.4 acknowledgement option enabled, the
after receiving a packet correctly; otherwise, an ACK is not sent and the transmitter will
retransmit the packet after one IEEE 802.15.4 ACK timeout duration. The correctness of
redundancy check (CRC) bit. If the CRC bit is 1, the entire packet is considered to have
been received correctly. If CRC bit is 0, some bits in the packet must have been
corrupted. The bit sequences of all incorrectly received packets are recorded with their
backoff duration and proceeds to send the next packet. Effectively, the ARQ approach
13
sent a continuous flow of packets from the transmitter to the receiver, with short intervals
chapter 4.
The proposed transmission error avoidance scheme is based upon the scheduling
of the packet transmissions by the 802.15.4 MAC protocol; hence the following section
The IEEE 802.15.4 MAC Protocol is essentially a CSMA/CA protocol and can be
operated in two different modes [15], namely the beacon mode (slotted CSMA/CA
algorithm) and the non-beacon mode (unslotted CSMA/CA algorithm) . Figure 3.4 shows
the non-beacon mode of operation. The transmission time of the packet depends on which
mode is chosen.
With the beacon mode, a coordinator radio can assign transmission slots to each
device radio. The coordinator broadcasts periodic beacons at its chosen interval, between
two beacons the coordinator can allocate contention access period (CAP) slots,
guaranteed time slots (GTSs), and inactive (low-power sleep) slots. A device radio can
transmit a data packet during CAP based on slotted CSMA/CA (carrier sense multiple
access with collision avoidance), i.e. waiting a randomly chosen number of idle slots
prior to transmission, or it can transmit data packets in its GTS assigned by the
coordinator.
14
CSMA-CA
Unslotted
NB = 0
BE = macMinBE
Delay for
random(2BE -1) unit
backoff periods
Perform CCA
Channel Y
Idle?
NB=NB+1,
BE = min(BE+1,macMaxBE)
N NB>
macMaxCSMABackoffs?
Failure Success
15
Beacon
Beacon
CAP CFP
GTS GTS
Inactive
Conceptually, the proposed approach can be easily implemented with the beacon
device, the beacon period equal to the rotation period, and assign the device with GTS
slots aligned with the low-error regions. In reality, however, the standard imposes
various constraints that make it very restrictive, if not impossible, to implement the
be allocated for CAP after each beacon for control frame exchange and new device joins,
(2) GTS can only be allocated after CAP, (3) it is not always possible to assign a beacon
period equal to the rotation period, (4) beacon frames must be correctly received every
16
With non-beacon mode, there is no distinction between a coordinator and a device
radio for transmission purposes. Each radio attempts to transmit a packet using an
unslotted CSMA/CA algorithm. The radio waits for one fixed clear channel assessment
(CCA) duration and a random number of backoff slots. If the channel remains idle
during the wait, the transmission proceeds, and the receiver responds with an ACK if the
packet is received correctly. The expected time for completing a data transmission is
thus the time from start of CCA till end of ACK reception. The main inefficiency with
this approach lies in the random backoff periods. Fortunately, the standard allows setting
minimum values for the random backoff parameters to limit the minimum backoff
window to 20 backoff periods and the maximum backoff window to 23 backoff periods.
The non-beacon mode approach is considered for the transmission error avoidance with a
17
CHAPTER FOUR
This chapter focuses on the study of the error patterns of the rotation system
which is used later on in developing the error avoidance scheme. The first section of this
chapter explains the experimental results which led to the identification of the error
region. The second section provides an analytical model for analyzing the packet error
rate in such a system and the third section describes the simulation model for the system.
ARQ experiments were conducted at 2054 rounds per minute (rpm) rotation with
the configuration shown in Figure 3 1. The radio transmitted at -25 dBm power in
channel 26 (2478.5 ~ 2481.5 MHz). In each experiment, 5000 packets of packet size 92
bytes (10 byte header size included) were transmitted continuously; the sender was
always backlogged and sent a new packet whenever the previous packet had been
In each experiment the sender sent probing transmissions of a known pattern (all
1’s) and size (100 bytes) at a chosen interval to the receiver. For each packet received
with errors (failing CRC check), the receiver recorded the packet’s received timestamp
and bit contents. Using a sliding window algorithm, the receiver identified all error
bursts in these packets; an error burst is defined as a set of consecutive bits with at least a
specified fraction H of bits in error. The time interval between the start times of two
18
consecutive error bursts, Ti, was measured to derive the normalized error burst distance
Consider N consecutive error bursts obtained from the probe packets. Let the time
interval between the start times of the ith and i+1th error bursts be Ti, the normalized error
Ti modulo TR (1)
Di =
TR
were TR is the spindle rotation period. The normalized error burst distance represents the
distance (in fraction of periphery) between the two positions on the periphery where
Figure. 4.1 shows the error burst distance distribution estimated on the rotating
wireless sensor testbed. With the two main modes residing near 0 and 1, respectively, it
meant that the errors had always occurred in the same vicinity, which was defined as an
error region. The error burst distance distribution is considered mainly because of the
clock drift error seen in the sensors. Another parameter called error burst location
distribution which is explained in Section 5.1 is used in determining the error patterns if
the sensor clock drift error is overcome. Further discussion on sensor clock drift is given
in Section 5.1.
19
Figure 4.1. Normalized error burst distance distribution from testbed experiments at
2054 rpm with 5000 packets sent at 15 msec fixed intervals
ARQ experiments were also conducted with packets of chosen packet size (30, 60
and 92 bytes) transmitted at chosen constant interval (0, 100, 150, and 200 msec) for a
constant rotation speed of 2000rpm. The results of the experiment are shown in Table
4.1. First transmission rate gives the percentage of packets received with error during
their first transmission, while retransmission count gives the number of retransmissions
required for the successful delivery of the packet. The table shows that the first
transmission error rate increases with packet size and the average retransmission count is
nearly one. This shows that almost all retransmissions are successful and indicates that
20
Table 4.1. First transmission error rate and mean of retransmission count vs packet size
at different packet generation interval.
The error burst distribution indicated that at a certain rotation speed one or a few
“high-error regions” can be identified, and among them are interleaving “low-error”
regions. Figure 4.1 indicates that errors tend to occur at the same position which could
mean that the system could have just one error region. If any segment of a packet is
transmitted during the high-error region, those bits have a greater possibility to have
errors; on the other hand, any segment transmitted in a low-error region is expected to see
less, if any, error bits in it. A different system with more multipath and Doppler effects
could result in a different number of error regions; but all systems can be represented by
21
To determine the error model, probe packets are sent. The bits of the probing
packets are analyzed to determine all the possible error bursts and the error burst distance
Let M be the number of distinguishable error regions identified from the error
burst distance distribution. Each error region will have its own width Wi which is
determined by the bit error rate Hi inside the error region. The bit error rate inside the
error region would be higher than the bit error rates in the remaining “low-error regions”.
The position of each error region can be identified by its center Ci which is represented in
degrees. Thus each region of the system can be represented by the parameters { Wi, Hi, Ci
} where i =1,2,…, M.
22
To extract the model parameters from actual experimental data a sliding window
algorithm is adopted.
The sliding window algorithm is defined as follows. Given the bit sequence of an
incorrectly received packet of size N bits, {Si, i=1…N}, a subset of consecutive bits in
{Si} is defined as a window W(j, l) where j indicates the sequence number of the first bit
in W(j, l) and l is the number of bits in W(j, l). The algorithm initiates with j=1 (the first
bit), l=2 (two bits in the window), and a specified error rate threshold H. The error rate
for W(j, l), PW, is defined as the number of error bits in W(j, l) divided by the total
number of bits in W(j, l). In each step, if PW is less than H, j increases by one (the
window shifts by one bit position); otherwise, l increases by one. One round is
considered completed when the window encloses SN, and another round is started with
j=1 and the l value as at the end of the previous round. The algorithm repeats until l does
not increase in one round; thus, l is the size of the largest window that exceeds the
specified error rate threshold, and it is used to estimate the size of the error region.
The sliding window algorithm was applied to all error packets in the ARQ
transmission experiments. With different threshold H, the error burst window size for all
error packets are found. The error packets have a size of 92 bytes. The maximum, mean,
and standard deviation of the window sizes are summarized in Table 4.2. Each (H, l) pair
provides a valid model to reproduce the observed error statistics. With l given in bits, the
corresponding error region width can be calculated in terms of the duration or the rotated
angle given the rotation speed. Note that IEEE 802.15.4 radios have a data rate of 250
kbps; thus l bits represent a duration of l/(250k) sec. . The statistics show that the error
23
region size and the transmission error rate are inter-dependent. The table shows that the
mean error width decreases with increase in the error burst threshold. The table also
shows that the mean error width size is between 4 and 23 bits which is equivalent to 0.2
to 1.1 degrees at a rotation speed of 2054 rpm. Thus all simulations consider an error
region width of 4 degrees which is a close approximation to the width calculated using
the sliding window algorithm. Such a small error region can cause an average PER of
11.8% without the ACK option enabled. As will be shown with simulation in Section 5.1,
the PER can increase substantially with even a few more such narrow error regions. With
four error regions (4 degree wide, evenly spaced), the PER can be as high as 50%.
Table 4.2. Maximum, mean, and standard deviation of detected error window sizes with
varied error rate thresholds.
It is the highly predictable error region distribution and the high PER that can be
caused by very small error regions that have motivated this thesis to study means to avoid
such errors over existing sensor radios by controlling packet transmission times based on
24
identified error region distribution. Equation 1 on page 20 shows that the error burst
distance distribution is readily obtainable with accurate knowledge of the rotation speed
and times of previously seen error bursts. Obtaining such information and ensuring its
accuracy are by themselves challenging, since (1) accurate rotation speed can be obtained
only with complex sensor design or has to be reported by the rotating machine, (2) the
estimated or reported rotation speed can still be inaccurate, and (3) the sensor clock can
be inaccurate with respect to the clock used for speed measurement. In section 4.3.3, the
As explained in section 3.2, for error avoidance the IEEE 802.15.4 MAC protocol
version considered for this thesis is the CSMA/CA non-beacon mode version. Our system
comprises just one sensor communicating to the other sensor at a time and hence the
channel is always idle for transmitting data and there is no chance of collisions.
Understanding the MAC protocol packet scheduling time in this system is easy and can
be utilized to determine the error rate in the system. So this section explains the
and comes up with intuitive and numerical analysis to determine the error rate.
and a clear channel access (CCA) duration. The maximum back-off time is ∆ which
involved for switching the radio from receiver mode to transmit mode or vice versa. If the
25
link layer ACK option is enabled an acknowledgement packet is sent for every correctly
received packet. Our experimental results in Chapter 3 show that the retransmission
success rate is high and indicates the effectiveness of using an ARQ algorithm for
retransmission of incorrectly received packets and hence the ACK option is enabled.
Thus every incorrect packet is retransmitted after a constant acknowledgement time out
duration τ. A picture showing the time spent in transmission of a correct packet and a
Figure 4.3. Illustration of the time taken in transmitting a correct packet (Timings not to
scale)
Figure 4.4. Illustration of the time taken in transmitting an incorrectly received packet
and the corresponding retransmission (Timings not to scale)
Packet error rate (PER) is defined as the fraction of the transmissions that are
successful with the ACK option enabled. For a three error region distribution with error
zones centered at 0, 120 and 240 degrees and error regions width of 4 degrees each, the
expected PER can be found analytically with respect to the temporal pattern and size of
the transmitted packets. The analysis provided in this section gives an intuitive
26
explanation for the dependence of PER on rotation speed based upon three different
assumptions. The explanation given is only corresponding to the given symmetric error
system.
Assumption 1: Considering only the packet transmission time in the IEEE 802.15.4
MAC Protocol.
Figure 4.5. During the time a B-byte packet is transmitted at rate R bits per second, a
sensor traverses for 8Bw/R degrees around the circumference of a spindle rotating at
speed w; if the traversed region overlaps the error region in any part, the packet may
contain a number of error bits. To simplify the analysis, a 100% BER within an error
region, 0% BER outside an error region, and no error corrections are considered.
tB
ac
Of
k
Figure 4.5. First safe zone illustration considering traversed range during a packet time
only. While not shown, the same rule applies for the rest of the cycle
The transmission correctness depends on the starting location of a packet. Let any
portion around the circumference that a packet can start and end its transmission without
27
encountering an error region be called a safe zone. The wider the safe zone, the more
probable a packet initiated at random time can complete successfully. If the pre-
transmission wait times required by the IEEE 802.15.4 protocol is ignored for a given
error distribution, the safe zone depends on the traversed degrees during one packet time,
which is proportional to the rotation speed. The faster the rotation speed, the more
degrees a sensor traverses during its transmission, and hence the smaller safe zone it has.
The reasoning suggests an increasing chance of packet errors with increasing rotation
Of
k
Figure 4.6. Safe zone illustration considering traversed range in CCA and packet time,
with and without random backoff. While not shown, the same rule applies for the rest of
the cycle.
28
Assumption 2: Considering the CCA and random back-off time of the IEEE 802.15.4
MAC Protocol.
In reality, an IEEE 802.15.4 sensor node in the non-beacon mode must wait for a
to transmitting a packet. This variable pre-transmission wait changes the start time
analysis slightly as illustrated in Figure.4.6. Here the distance travelled in the CCA
duration is assumed to be less than the error region width. Hence the constant CCA
duration simply shifts the safe zones ahead but does not change the overall safe zone size
and, therefore, does not change the PER. The random back-off duration, however, can
reduce the safe zone size. As the figure shows, the total safe zone decreases when the
wait time increases from CCA to CCA+Δ, where Δ stands for the maximum backoff
duration. This is because the safe zone accounts for the areas where a data transmission
can begin and be sure to complete entirely outside any error region and a transmission
with maximum random back-off duration would need to start at a position earlier than
without random back-off. This would result in pushing the boundary of the safe zone
further back. Outside the safe zone, there are some areas where a transmission can begin
and has some less than 100% probability to complete outside an error region depending
Assumption 3: Considering the ACK time of the IEEE 802.15.4 MAC Protocol.
The link layer ACK option of IEEE 802.15.4, if enabled, requires a radio A that
receives a transmission correctly to transmit an ACK packet back to the sender, say radio
29
B, of that transmission. If B happens to be in an error region, it will not receive the ACK
correctly and the transmission will be considered a failure. For reliability sensitive
applications, the ACK option is expected to be indispensable and the ACK failure
The impact of ACKs on PER is not as obvious as that of data packets. Given a correct
data transmission taking place outside an error region, its ACK must also start and end
without crossing an error region for the data transmission to successfully complete.
Hence, the safe zone must be redefined as the areas where a data transmission can begin
such that it and its corresponding ACK will both complete outside any error region.
Figure 4.7. Safe zone illustration considering traversed range during CCA, packet time,
turn-around time, and ACK time, without random backoff. While not shown, the same
rule applies for the rest of the cycle.
30
It can be shown that the safe zone with ACKs considered is either less than or
equal to the safe zone estimated without ACKs. As illustrated in Figure 4.7, the safe
zone size depends on the relative sizes of the turn-around time D and the subsequent error
region size after a data transmission. There are two cases shown in Figure 4.7. If the
traversed range during D is shorter than the following error region size, the ACK must
take place before the error region and thereby reduce the available safe zone size. The
range traversed during D, CCA, ACK or packet time depends on the rotation speed and
greater the rotation speed larger would be the range traversed So if the traversed range
during D is wider than the following error region size, ACK can potentially take place
after the error region and gain an additional safe zone that is equal to the range difference
between D and the error region size as shown in Figure 4.7. It is thus clear the safe zone
size changes with rotation speed, since the traversed range during an ACK time changes
accordingly. As the speed increases, the data packet range increases, such that the safe
zone decreases, but the D range increases as well, such that an additional safe zone
appears once D range exceeds the error region range; as the speed decreases, the reverse
trends apply. Thus, the overall safe zone and, therefore, the resulting PER is not
necessarily monotonic with the speed changes. The rotation speed at which the D range
equals the error region width is the speed at which the change can be noticed. This is
simulator with 92 byte packets and three 4-degree wide error regions centered at 0, 120,
31
and 240 degrees on the spindle. As shown in Figure. 4.8, the PER generally increased
with speed but had an exception decrease past 3500 rpm, after which the increasing trend
resumed. Equation (2) when solved for this scenario gives the same result of 3500 rpm.
0.9
0.8
0.7
0.6
PER
0.5
0.4
0.3
0.2
0.1
0
1000 1500 2000 2500 3000 3500 4000 4500 5000
Rotation Speed (rpm)
Figure 4.8. PER vs rotation speed .with three evenly spaced 4 degree error regions
First transmission error rate represents the percentage of packets received with
In order to simplify the calculation of the first transmission error rate, the same
error system illustrated in Figure 4.5 is considered and the probability of bit error in the
32
high error region and low error region is considered as 1 and 0 respectively. Also the
rotation speed considered for this system is 2000 rpm. As explained in the previous
section the packet transmission start position determines its probability of success. The
the safe zone. The safe zone probability of success is 1. But as explained in the previous
section the safe zone size is also determined by the maximum back off duration Δ and the
ACK duration. Hence the probability calculation should also consider these factors.
zone, the transmission would end before the error zone as illustrated in Figure 4.9. The
duration between CCA+Packet time and Δ+CCA+Packet time has a success probability
of ½, this is because a packet transmission starting in this region can choose between 0 or
1 random back-off period and if it chooses 0, it would finish its transmission before the
error zone, while if it chooses 1, it would end the transmission in the error zone.
33
Figure 4.9. Probability of successful packet transmission illustration considering
traversed range during CCA, packet time, and random backoff time. While not shown,
the same rule applies for the rest of the cycle.
If the sensor position is such that the CCA duration and the random back off
duration ensures that the packet transmission starts only after the error zone, the packet is
34
Figure 4.10. Probability of successful packet transmission to miss the error zone,
considering traversed range during CCA, packet time, turn-around time, and random
backoff time. While not shown, the same rule applies for the rest of the cycle.
Similar analysis applies for successful ACK. Figure 4.11 shows the ACK success
regions
Figure 4.11. Probability of ACK success illustration, considering traversed range during
CCA, packet time, turn-around time, and random backoff time. While not shown, the
same rule applies for the rest of the cycle.
35
Probability Color
of error
1
1/2
0
Figure 4.12. First transmission error probability distribution for a three error zone system
centered at 0,120 and 240 degrees with width 4 degrees each (E1b=-2º, E1e=2º,
E2b=118º,E2e=122º,E3b=238º and E3e=242º).
We derive the probability distribution for a scenario with three error zones
centered at 0, 120 and 240 degree each with width 4 degrees. The corresponding
1
Area under the Red region in Degrees × 1 + Area under the Grey region in Degrees ×
2
360 360
To verify the equation simulations are done on the simulator and both the results
36
The calculation of overall packet error rate which includes the errors in the first,
second and other consecutive transmissions is a tedious and complex process. For
depending on the position of the sensor after the end of the first transmission. The overall
packet error rate equation will be hard to derive The error rate calculated using
conditional probability is for all the possible positions of the sensor and hence can be
verified with a simulation which has perfect randomness for all transmissions and
retransmission. Achieving this is difficult with the present simulator, so the calculation of
An error region exists due to the multipath and Doppler effects associated with a
specific surrounding, sensor placement and rotation speed. Hence it is expected that the
simulator is developed using C++ to simulate the rotating process, the radio channel
properties, and the ARQ transmission method based on any given sensor rotation speed
R, the number of error regions and their respective widths and location around the
periphery of rotating structure. The simulator keeps track of the instantaneous location of
the radio. When a radio transmits a packet, the simulator computes the transmission
starting and ending times, and it identifies any segment(s) that are transmitted in an error
37
region. For each bit transmitted in the error region, a uniform bit error is generated
The simulator also models the packet transmission and random wait durations
precisely according to the IEEE 802.15.4 specification. Each simulation experiment can
specify the number of packets to be transmitted, and all packets transmitted are recorded
including their received bit contents and timestamps. The simulation also models the
The simulation is used to study the effect of: i) different error region widths for
one error zone, ii) different number of error regions, and iii) imprecise knowledge of the
actual rotation speed on the error region distributions, and (iv) a transmission error
avoidance scheme. The simulation results shown below are for a constant packet size and
considering a probability of bit error of 1 inside the error region and 0 outside the error
Figure 4.13 shows the error burst distance distribution observed with one error
region of different widths. As shown, for one error region, the main modes remained
near positions 0 and 1, indicating the consecutive errors occur either at the same location
or one spindle periphery distance away, which is again the same location. As the error
region width increases, however, a diluting effect to each mode size was observed. This
diluting effect is a direct result of the wider range of potential starting times of an error
38
burst; as a result the width of each mode is proportional to the error region width. The
Probability 0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Figure 4.13. Normalized error burst distance distribution obtained with error region
widths 5, 10, and 15 degrees at 2000 rpm.
Figure 4.14 shows the error burst distance distribution for one, two, and three
evenly distributed error regions each of 4 degrees wide. As clearly shown, the error burst
distances correspond to that from an error region to any other regions as well as itself.
Hence, the error burst distance distribution graph can be used to estimate the number of
39
Error burst distribution for an one error zone system
1
Probability
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Probability 0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Figure 4.14. Normalized error burst distance distribution for one, two, and three evenly
distributed error regions.
The error burst distance distribution shown in Figure 4.1 is obtained with a known
rotation speed of 2054 rpm. Accurate rotation speed is not, however, always available to
either a sensor node or an external operator. This section studies the impact of an
imprecise knowledge of the rotation speed on the transmission error pattern. The analysis
computing the error burst distances based on a potentially imprecise rotation speed of C
rpm. The following examines the effects of small inaccuracies that may be caused due to
inaccurate speed measurement, as well as the effects of large inaccuracies that may be
caused by a total lack of process knowledge. Insights to the latter case are essential for
deriving adaptive error pattern discovery methods that can adapt to varying rotation
40
Figure 4.15 shows the error burst distance distribution acquired with R=2000 rpm,
while C is (a) 50 and 100 rpm lesser than R, and (b) 50 and 100 rpm higher than R. As
seen, the inaccurate rotation speed adopted in the error burst distance analysis resulted in
various minor modes displaced from the main mode. Such displacements are due to the
incorrect assumption of a rotation cycle period. With C < R, the sampling period is
longer than an accurate period, causing an error burst at the same location to appear
relatively earlier during the sampling period. For an error burst that occurs in exactly one
true period after the previous error burst, the normalized error distance will be displaced
the error burst occurs in exactly k true periods after the previous error burst, the error
this study, a consecutive error burst mostly occurs in the immediate next cycle, while the
probability of more cycles (elapsing prior to a next error) gradually decreases. The
inaccuracy in the adopted rotation speed, and the true rotation speed can be found as
R=C/(1+δ).
41
Error burst distribution for R=C+d
1
Probability
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Figure 4.15. Error burst distance distribution obtained for R=2000 rpm and (a) C=1950
rpm, (b) C=1900 rpm, (c) C=2050 rpm, (d) C=2100 rpm.
Figure 4.16 shows the error burst distance distribution acquired with R = 2000
rpm and C = R/2 (1000 rpm) and C=2R (4000 rpm). As seen, the mode displacement
expression in the previous section still holds for large speed inaccuracies. With C=R/2,
the displacement was -0.5; with C = 2R, the displacement was 1, which is identical with
Similar displacement expressions are found for scenarios with multiple error
regions while the derivations are more complex. For evenly distributed error regions and
C integer multiples of the actual rotation speed, the resulting error burst distance
distribution can be with the aliasing effect of a sampling process. Consider two error
42
regions 180 degrees apart. If R=C, the correct distribution is obtained with error burst
distances at 0, 0.5, and 1 (Figure 4.17 (a)). With a sampling speed of C = R/2, each
sampling cycle actually consists of two true cycles; hence, the error burst distribution is
expected to consists of two identical distributions in each half of its sampled cycle, as
seen in Figure 4.17 (b). With a sampling speed of C=2R, the sampling cycle corresponds
to only half of the true cycle; hence, one error region is sampled in each sampling cycle,
the other error region is sampled in the next sampling cycle at exactly one sampling cycle
later, thus resulting in a distribution identical to that one error region scenario (Figure
4.17 (c)). The figures indicate that the error burst distance distribution can be used to
identify errors in the rotation speed and also to determine the error region pattern of the
system.
43
Error burst distribution for R=C
1
Probability
0.5 (a)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5 (b)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
(c)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Figure 4.16 Error burst distance distribution for large speed inaccuracies with one error
region
0.5 (a)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
(b)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.5
(c)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Figure 4.17. Error burst distance distribution for large speed inaccuracies with two error
region
44
CHAPTER FIVE
rotation.
As explained in previous chapters the knowledge of the error region pattern and
its characteristics is important because it indicates the regions of low error probability. To
enable error avoidance, the receiver records the time stamps and bit contents of all
packets received with errors; the error distribution is then analyzed and the transmitting
radio is informed to control its packet transmission time. The error transmission scheme
should include measures to overcome the effects of imprecise knowledge of the rotation
speed and the sensor clock drift. Another problem is the transmitting sensor has to be
synchronized to the error pattern. Our scheme takes all these factors into consideration
and consists of two different phases: the error identification phase and the operational
phase.
The error identification phase involves determining the error region distribution.
The purpose of obtaining an error region distribution is to identify the low or zero BER
regions within each rotation cycle for data transmission. Given the assumption that a
sensor does not know its position at a point of time, it relies on the transmission success
45
and failure events to infer whether it is inside or outside an error region each time it
transmits.
The error burst distance distribution discussed in Section 4.1 does not convey the
actual number of error regions or the location of such regions. Figure 5.1 shows the close
similarity between the simulated error burst distance distributions for two different error
region distributions. The three error zone system with error regions centered at 0, 90 and
180 degrees has a similar error burst distribution to a four error zone with error regions
centered at 0, 90,180 and 270 degrees. This makes it hard to distinguish between an
asymmetric three error zone system from a symmetric four error zone system by studying
the error burst distribution. This calls for the use of error burst location distribution. The
Figure 5.1. Two error region distributions can result in similar error burst distance
distributions: (a) three error regions centered at 0, 90, and 180 degrees; (b) four error
regions centered at 0, 90, 180, 270 degrees.
46
Definition 2: Error Burst Location Distribution
Given the beginning timestamps of a set of N consecutive error bursts, let the
normalized distance between the ith and i+1th error bursts be Di and TR the duration for
one revolution of the spindle, the first error burst’s beginning location as the reference
origin, the normalized error burst location for the ith error burst is defined as
⎛ i ⎞
Li = ⎜ ∑ D j −1 ⎟ mod TR (3)
⎝ j =1 ⎠
Sensor clock drift is the main challenge when obtaining the location distribution.
Clock drift renders the recorded timestamps and calculated error burst locations to drift
from their actual location. In fact, this was the main reason that error burst distance
distribution discussed in Section 4.1 was used initially to find discernible error regions
instead of using location distribution. As the machine does not provide digital clock
output, a visual assessment found the sensor clock to lead approximately 15 seconds
ahead the machine clock every 12 minutes. Fig. 5.2 shows the location distribution
47
Figure 5.2. Location distribution with clock drift for error bursts shown in Figure 4.1.
48
To compensate for the drift impact, accumulated error in the estimated error burst
calibration is done by analyzing the location distribution in small time windows and
aligning the resulting distributions. Fig. 5.3 shows the calibrated location distribution
derived by analyzing and aligning the location distribution for every 10 error bursts. The
calibrated error burst location distribution clearly indicates the error regions in the
system.
The error burst location distribution shown in Figure 5.4 corresponds to a system
with three error zones centered at 0, 90 and 180 degrees, each with a width of 4 degrees.
The error burst location distribution is assumed to be generated with the correct rotation
speed and the effects of the sensor clock drift is not considered. This figure when
compared to Figure 5.1(a) itself shows the effectiveness of using the error location
distribution because it clearly indicate the asymmetric nature of the system, while the
error burst distance distribution indicates a symmetric system The error zones are
identified by determining the bins of the error location distribution with a probability of
bit error greater than a particular threshold. The width of the error zone depends on the
resolution of the bins of the error burst location distribution. Figure 5.4 has a resolution
of 3.6 degrees, so each bar in the histogram corresponds to 3.6 degrees. The position of
the error zone is always found relative to the first error burst is shown in the figure.
Therefore the error burst distribution indicates error locations at 0, 0.25 and 0.5 (in terms
49
If the correct rotation speed is not used in generating the error burst location
distribution, it would not be possible to identify the error regions as discussed in Section
4.4. Figure 5.5 shows the percentage difference between the error burst location
distribution generated with a rotation speed of 2054 rpm and the error burst location
distribution generated with a rotation speed of 2000 rpm. The percentage difference is
large even after many probe packets are used in generating the location distribution. Thus
the error identification phase should begin with a phase to identify the correct rotation
Figure 5.4. Error burst location distribution for a three error zone system centered at 0,90
and 180 degrees, each with a width of 4 degrees.
Another factor considered is the number of probe packets to be sent before which
it can be concluded that the error location distribution is an accurate representation of the
error properties of the system. Figure 5.6 shows the percentage error in the error location
50
distribution with the number of probe packets. So with more probe packets the error
location distribution becomes more accurate. The steps involved in the error
Figure 5.5. Percentage error in error location histogram if the rotation speed is
considered as 2054 rpm when the actual rotations speed is 2000rpm, vs number of probe
packets with error
51
Figure 5.6. Percentage error in error location histogram vs number of probe packets
with error
In the operational phase, the sensor begins with data transmission. Initially,
transmissions can occur at any time when data are present until a number of
transmissions are received with errors in a predefined time window. The sensor analyzes
the error packets’ timestamps to logically deduce its present location with respect to (i.e.
synchronize with) its error burst location distribution. Once it successfully synchronizes,
it starts to control the times of its data transmissions. Prior to each transmission, the
expected transmission interval is estimated based on the IEEE 802.15.4 medium access
control procedure and parameters; a data transmission is permissible when its expected
duration does not overlap with any error region; otherwise, the transmission will be
delayed until the end of an earliest error region with a following low-error duration that is
52
To determine the exact time an error burst occurs within an arbitrary data packet
carrying real application payload is more difficult than that with probing transmissions.
Since the data contents are not known previously, the location where bit errors have
occurred cannot be directly determined. There are methods to explore this information
without substantial overheads. For example, since ARQ is adopted, packets are
error with their successful retransmissions, the error burst times can be found. For
another example, transmitted data can be encoded with known bit patterns at predictable
intervals in each packet, then error burst times in each packet can be identified at a
granularity proportional to the encoding interval. These approaches are not considered in
this thesis.
The purpose for an error avoidance approach is to improve energy efficiency and
3. Intervals between identified error regions have much lower PER and are long
The proposed error avoidance scheme works by avoiding high error regions and if no
high error regions are identified for a system, then there would be no purpose in
implementing the error avoidance approach as there would not be any improvement in
the throughput. Unless there are low PER regions in between the high error regions there
53
would be no improvement in throughput. The packet size duration should also be lesser
than the interval between identified error regions or else the throughput would be less.
In the error identification phase, the sensor uses probing transmissions to collect
sufficient transmission history to establish the error burst location distribution. The sensor
needs to first make sure that the generated error location distribution is correct. For this it
should first make sure that the assumed rotation speed of the spindle is correct. It can
make use of the error burst distribution to find out the error due to the imprecise
knowledge of the rotation speed as discussed in section 4.3.3. This would require a
sampling speed varying algorithm which is not discussed in this thesis and the rotation
speed is assumed to be correct in the simulations. The sensor should then generate the
calibrated error location distribution which is devoid of sensor clock drift errors. Given
the distribution, the center and width of each error region with PER above a chosen
threshold is identified. In section 4.2, it was shown that the error region width depends on
the assumed BER for the error region. The higher the assumed BER, the narrower the
width, while the more chances an error could occur outside the defined error region.
Probing packets are transmitted and analyzed until the percentage change in the error
location distribution is below a specified threshold. Figure 5.6 and section 5.1 discusses
the percentage change in the error location distribution with the number of probing
54
packets, but further discussions on the choice of threshold is not studied in this thesis. At
the end of the error identification phase the number of error regions, the center and width
5.3.1 Synchronization
In the operational phase, the receiver first synchronizes with a given error burst
location distribution by observing the timing of multiple error bursts, it then proceeds
The pseudo code for synchronization is shown in Figure 5.7.At any given time if
the transmitting sensor wants to synchronize with the error regions, it requests the latest
N consecutive error burst’s burst distance sequence {Di} , the error burst location {Li},
the first error burst’s time stamp t0 and the receivers current time t_nowrx. It also records
its current time t_nowtx. Using the error burst distribution it checks the error burst
Once synchronization is complete the transmitter can determine its location CTx(t_nowTx)
55
{Di}: error burst distances for N consecutive error bursts
{Lj}: error burst location distribution
M: number of identified error regions
δ: error region width
E: miss rate threshold
C: current location
s: miss count
i: error burst index
START
for j=1 to M
C= Lj, s=0, i=1, k=j;
while (i<N)
if( (C+Di) ∈ Lk+1±δ)
C= Lk+1, k=k+1;
else
C=C+Di, s=s+1;
endif
i=i+1;
end while
if (s/N)<=E
Synchronization Complete;
Break;
endif
end for
transmitting sensor of the last error burst timestamp and its corresponding synchronized
location CTX. If the algorithm ends unsuccessfully, the algorithm must be repeated at a
later time.
56
5.3.2 Transmission Error Avoidance
Assuming the transmitting sensor and the receiver have synchronized local
clocks, the transmitting sensor can determine at any time, its location and the duration
until beginning of the next error region. It also can determine the end of the nearest
following error region with a low-error region no shorter than the estimated transmission
time of the next packet. The transmitting sensor can then go on to schedule its
The IEEE 802.15.4 MAC protocol version considered for implementing the
transmission error avoidance scheme is the non-beacon mode version. Before any packet
transmission the radio waits for a clear channel access (CCA) duration and a random
number of back-off slots τ (section 3.2). The standard allows setting minimum values for
the random backoff parameters to limit the minimum backoff window to 20 backoff
period which is considered for the proposed transmission scheme Hence the maximum
The error avoidance algorithm shown in Figure 5.8 calculates the delay that needs
to be injected before scheduling a packet transmission to avoid the error region. The
algorithm is run before every packet is sent out. Before every transmission the algorithm
checks if the CCA+∆+Packet time duration will result in the transmission ending in the
error zone. If this is the case then the packet transmission is scheduled to start only after
the error region. If the separation between the error zones is not large enough for a packet
transmission the transmission is further delayed to start only after the second error zone.
57
{Lj}: error region locations
M: number of identified error regions
δ: error region width
P: packet transmission duration
C: current sensor location
CCA: CCA duration
∆: maximum back-off slot
START
for j=1 to M
if( ( (C+P+CCA+∆) ∈ Lk±δ ) || ( ( (C+CCA)< Lk-δ) &&
( (C+CCA+P)> Lk+δ) ) )
if(P>( Lk+1- Lk) )
C= Lk+1+δ-CCA;
else
C= Lk+δ-CCA;
endif
endif
i=i+1;
end for
Figure 5.8. Error avoidance algorithm
The rotating wireless sensor simulator explained in section 4.3 is used to verify
the effectiveness of the transmission error avoidance scheme. The error regions are
The radios are also assumed to have synchronized with the error distribution. The IEEE
802.15.4 non-beacon mode data and ACK transmission timing is modeled. Table 5.1
58
Table 5.1. Simulation parameters
Parameter Value
Radio link rate 250 kbps
Radio symbol duration 16 usec
CCA duration 8 symbols
Radio turn-around time 12 symbols
ACK frame 22 symbols
ACK timeout 2.4 msec (sensor default [11])
Spindle rotation speed 2000 rpm
Backoff slot duration 20 symbols
The simulations are done to verify the advantages of the transmission error
avoidance scheme mainly the packet error rate and throughput improvement. The effect
of the number of error regions on the performance of the error avoidance scheme requires
testing. To do so, simulations are done on a one error zone symmetric system and a four
error zone symmetric system. The bit error rate inside the error zone is considered as
100% and outside the error zone as 0%. In reality the bit error rates inside the error zone
would be less than 100% and outside the error zone would be greater than 0%. The effect
of such a scenario is also studied. Lastly the performance in an asymmetric two error
zone system is studied to understand the importance of the packet size in the error
59
100 % BER Inside Error Region, 0% BER Outside Error Region
This is an idealized setting that illustrates the typical benefit of the scheme. Figure
5.9 shows the PER and data throughput achieved when there was one error region (4
degree wide) with and without error avoidance, with different packet sizes and packet
maximum capacity. In Figure. 5.9(a), it is seen that larger packets had higher PERs on
average; PERs remained consistent with different packet generation intervals, reaching
60
0.2
Packet size 30B without EA
0.18 Packet size 60B without EA
Packet size 92B without EA
0.16
Packet size 30B with EA
0.14 Packet size 60B with EA
Packet Error Rate
0.1
0.08
0.06
0.04
0.02
0
0 0.005 0.01 0.015
Packet generation interval(sec)
(a)
200
Packet size 30B without EA
180
Packet size 60B without EA
160 Packet size 92B without EA
Packet size 30B with EA
Throughput (kbps)
100
80
60
40
20
0
0 0.005 0.01 0.015
Packet generation interval(sec)
(b)
Figure 5.9. 2000rpm, one 4-degree error region, (a) PER v.s. packet size v.s.
transmission interval (b) throughput v.s. packet size v.s. packet interval.
61
With error avoidance, errors were completely avoided, while a slight decrease in
A more challenging scenario was studied with four error regions each 4 degree
wide and centered at 0, 90, 180, and 270 degrees. Figure 5.10 shows the PER and Figure
5.11 shows the throughput. Interestingly, with scattered error regions, PERs increase as
packets are generated faster, reaching 50% with 92 byte packets. With error avoidance,
throughputs were substantially increased (50 to75% for continuous transmissions). Also
interesting was that with- and without-error-avoidance throughput curves came close as
the packet interval increased; they merged eventually, and the merging point depended on
the packet sizes – the larger the size, the later the merge, the more throughput gain
62
1
Packet size 30B without EA
0.9
Packet size 60B without EA
0.8 Packet size 92B without EA
Packet size 30B with EA
Packet Error Rate
0.5
0.4
0.3
0.2
0.1
0
0 0.005 0.01 0.015
Packet generation interval(sec)
Figure 5.10. 2000rpm, four 4-degree error regions PER v.s. packet size v.s. transmission
interval
120
Packet size 30B without EA
Packet size 60B without EA
100 Packet size 92B without EA
Packet size 30B with EA
Packet size 60B with EA
Throughput (kbps)
60
40
20
0
0 0.005 0.01 0.015
Packet generation interval(sec)
Figure 5.11. 2000rpm, four 4-degree error regions Throughput v.s. packet size v.s.
transmission interval
63
Less than 100 % BER Inside the Error Region, non Zero BER Outside the Error
Region
In practice, BERs inside and outside error regions may not be 100% and 0%.
Figure 5.12 shows the achieved throughput with different BERs outside the error region.
When BERs were 0.01 or less, error avoidance increased achievable throughput by nearly
40% when data rate is very high. Once the BER approached 0.1, substantial errors
occurred even outside the error region therefore error avoidance was no longer beneficial.
The BERs at different levels of magnitude were chosen to represent a wide range of
typical environments.
120
BER 0 w ithout EA
BER 0.001 w ithout EA
BER 0.01 w ithout EA
100
BER 0.1 w ithout EA
BER 0 w ith EA
Throughput (kbps)
60
40
20
0
0 0.005 0.01 0.015
Packet generation interval(sec)
Figure 5.12. 2000rpm, four 4-degree error regions, throughput v.s. PER outside error
region with 92 byte packets (BER in error region is irrelevant since transmissions are
entirely avoided).
64
Packet Size Relationship with Error Region Separation
A two error system with error regions centered at 0 and 60 degree, each with a 4
degree width is considered, the BER inside the error region is 1 while the BER outside
the error region is 0. The throughput for different packet sizes at different packet
generation intervals with error avoidance is analyzed. Figure 5.13 shows the result. The
distance between the error regions corresponds to the transmission duration of a 150 byte
packet. So for any packet size above 150 bytes the two error regions are considered as
one error region by the transmission avoidance scheme and hence the throughput
decreases with the increase in packet size. This result can be used in deciding the packet
size for transmission. Another factor which is seen is that the packet generation interval
doesn’t have an effect on the throughput for larger packet sizes. This is because the
packet transmission interval itself would be smaller than the packet transmission duration
65
200
Packet size 50B
180
Packet size 100B
160
Packet size 150B
Packet size 200B
Throughput (kbps)
120
100
80
60
40
20
0
0 0.005 0.01 0.015
Packet generation interval(sec)
Figure 5.13. 2000rpm, two 4-degree error regions centered at 0 and 60 degrees,
throughput v.s. packet size for different packet generation interval.
66
CHAPTER SIX
6.1 Conclusions
fast rotating structure. A model for transmission error patterns is developed through
analysis of packet transmissions in a testbed. The model is used for on-line error pattern
• The width of the error region is estimated using a sliding window algorithm
• The larger width of an error region led to a dilution of each mode in the error
67
• From an error burst distance distribution the number of distinct error regions
can be estimated,
• Discrepancy between the true rotation speed and the speed adopted by the
discrepancy, and
• With multiple error regions, the speed discrepancy can be similarly identified
In this thesis the PER is analytically shown to have a generally increasing trend
with increasing rotation speeds, while exceptions can occur at certain speeds depending
on the error region distribution if the ACK option is enabled. Numerical analysis was also
able to predict the first transmission rate accurately for a given error system.
transmission method for sensors with low accuracy clocks. With simulation, the method
was shown to be particularly effective when required data transmission rates are high and
error regions are scattered around the periphery. For a one error zone system with an
error region width of four degree, the packet error rate was reduced to 0 with
transmission error avoidance. A four error zone symmetrical system with error region
widths 4 degree shows 50% reduction in packet error rate with a 75% improvement in
throughput. The packet size also affects the data transmission throughput. Larger the
68
packet size, lesser would be the throughput for an asymmetrical two error zone system
The first phase of the error avoidance scheme is the error identification phase. The
effects of imprecise knowledge of rotation speed and the effects of clock drift on the error
burst distribution are shown. It was shown in Section 4.4 that by changing the sampling
speed and analyzing the error burst distribution, the correct rotation speed can be
determined. Such a rotation speed aware algorithm needs to be incorporated into the error
It was also shown in Section 5.1 that calibration of the error burst location
distribution is required to avoid the clock drift errors. This calibration algorithm needs to
be incorporated and verified for different scenarios. Also the synchronization algorithm
in the presence of clock drift and rotation speed error needs to be verified.
The present simulator can simulate the error characteristics of up to four error
zones. A more generalized simulation to generate the error characteristics for any number
69
REFERENCES
[1] Akyildiz, I. F., Su, W., Sankarasubramaniam, Y., and Cayirci, E.,
“Wireless Sensor Networks: A Survey,”Computer Networks
38(4), 393-422 (2002)
[2] Straser, E. G., [A Modular, Wireless Damage Monitoring System for Structures],
Ph.D. Thesis, Stanford University, Stanford CA (1998).
[3] Miettien, J., Salemenpera, P., Jarvinen, V., and Hervonen, M.,
“Wireless Operation Monitoring System for Polymer Covered
Cylinders in Rolling Contact,” in Proceedings of the ASME
Engineering Technology Conference on Energy, Petroleum
Division 2, 1019-1023 (2002).
[4] Varghese, B., Pathare, S., Gao, R., and Guo, C., “In-process Monitoring
of Truing Using a Sensor Integrated Diamond Grinding
Wheel,” Transactions of NAMRI/SME 30, 295-302 (2002).
[5] Dzapo, H., Stare, Z., and Bobanac, N., “Portable Wireless Measuring
System for Monitoring Motor Shaft Parameters,” in Proceedings
of the Instrumentation and Measurement Technology Conference,
901-906 (2004).
[6] Sarkimaki, V., Tiaien, R., Lindh, T., and Ahola, J., “Applicability of
ZigBee Technology to Electric Motor Rotor Measurements,”
in Proceedings of the International Symposium on Power
Electronics Electrical Drives Automation and Motion, 1-5 (2006).
[7] Sundararajan, V., Redfern, A., Schneider, M., Wright, P., and Evans, J.,
“Wireless Sensor Networks for Machinery Monitoring,” in
Proceedings of the International Mechanical Engineering
Congress and Exposition, 1-9 (2005).
[8] Werb, J., Newman, M., Berry, V., Lamb, S., Sexton, D., and Lapinski, M.,
“Improved Quality of Service in IEEE 802.15.4 Mesh
Networks,” in Proceedings of the International Workshop on
Wireless and Industrial Automation, 1-6 (2005).
[9] Ota, N., and Wright, P., “Trends in Wireless Sensor Networks
for Manufacturing,” International Journal of Manufacturing
Research 1(1), 3-17 (2006).
70
[10] Tang, L., Wang, K.-C., Huang, Y., and Gu, F., “Channel Characterization
and Link Quality Assessment of IEEE 802.15.4-Compliant
Radio for Factory Environments,” IEEE Transactions on
Industrial Informatics 3(2), 99-110 (2007).
[11] Wang, K.-C., Tang, L., and Huang, Y., “Wireless Sensors on Rotating
Structures: Performance Evaluation and Radio Link
Characterization,” in Proceedings of the WinTECH Workshop
at ACM MobiCom, 3-10 (2007).
[12] Tang, L., Wang, K.-C., and Huang, Y., “Performance Evaluation and
Reliable Implementation of Data Transmission for Wireless
Sensors on Rotating Mechanical Structures,” Structural
Health Monitoring, accepted (2008).
[13] Wang, K.-C., Jacob, J., Tang, L., Huang, Y., and Gu, F., “Error Pattern
Analysis for Data Transmission of Wireless Sensors on Rotating
Industrial Structures,” in Proceedings of SPIE, vol. 6932, 2008.
[14] Wang, K.-C., Jacob, J., Tang, L., and Huang, Y., “Transmission Error
Avoidance for IEEE 802.15.4 Wireless Sensors on Rotating
Structures,” in Proceedings of ICCCN 2008.
[15] IEEE, [IEEE Standard 802 Part 15.4: Wireless Medium Access Control (MAC)
and Physical Layer (PHY) Specifications for Low-Rate Wireless
Personal Area Networks] (2003).
71
[20] Valente, A., Morais, R., Serodio, C., Mestre, P., Pinto, S., Cabral, M.
“A ZigBee Sensor Element for Distributed Monitoring of
Soil Parameters in Environmental Monitoring,” in Proceedings
of IEEE Sensors, 135-138 (2007)
[21] Cho, H., Jung, Y., Choi, H, Jang, H., Son, S., Baek, Y., “Real Time Locating
System for Wireless Networks using IEEE 802.15.4 Radio,
” in Proceedings of SECON , 578-580 (2008)
[22] Hara, S., Zhao, D., Yanagihara, K.; Taketsugu, J.; Fukui, K.,
Fukunaga, S., Kitayama, K., “Propagation characteristics
of IEEE 802.15.4 radio signal and their application for
location estimation”, in Proceedings of Vehicular Technology
Conference, 97 – 101 (2005).
[25] Chiasserini, C-F. , and Garetto, M., “An Analytical Model for Wireless
Sensor Networks with Sleeping Nodes,” Transactions on
Mobile Computing 5(12), 1706-1718(2006).
72