Introduction
Modern low-power wireless protocols, such as Glossy, rely on Synchronous Transmissions (ST) to achieve high reliability and low latency. In ST, multiple nodes transmit the same packet simultaneously, leading to constructive interference at the receiver. For this to succeed on standard IEEE 802.15.4 hardware, timing must be exceptionally precise: packets must arrive within a window of approximately 0.5 microseconds.
The Challenge: Unstable Hardware Clocks
Standard implementations maintain synchronization by ensuring a fixed number of microcontroller (MCU) clock cycles pass between packet reception and retransmission. However, low-power MCUs typically use inexpensive Digital Crystal Oscillators (DCOs) that are highly sensitive to environmental factors. For instance, a 20°C temperature fluctuation can cause a frequency shift of up to 7.6%. Under such conditions, a "fixed number of cycles" no longer corresponds to a fixed duration of time, causing timing violations that lead to network failure.
The Flock Approach
To address this, the authors propose Flock, a system that performs real-time calibration of the unstable MCU clock by using the radio chip’s internal clock as a high-precision reference. While MCU clocks drift, the clocks driving the radio (typically 8 MHz) are highly accurate (±40 ppm) to comply with IEEE standards.
As shown in the timing diagram above, Flock timestamps the start and end of packet reception using the MCU’s DCO. Because the packet length is known, the "true" duration of the reception is predictable based on the stable radio clock. By comparing the actual DCO cycles passed against the nominal expectation, Flock calculates the current frequency offset. Before retransmitting, Flock dynamically adjusts the number of "wait" cycles ($T_{sw}$) by inserting or removing No-Operation (NOP) instructions via a pre-calculated lookup table. This ensures the retransmission occurs at the exact microsecond required for constructive interference.
Experimental Evaluation and Results
The authors evaluated Flock through Cooja simulations ($10^6$ samples) and hardware experiments using TelosB and MTM-CM5000 nodes. To test temperature resilience, nodes were placed in a controlled environment cycling between 10°C and 40°C.
The impact on timing precision is significant. As illustrated in the histograms above, without Flock (a), the software delay spread exceeds 2.125 µs, which is sufficient to break constructive interference. With Flock enabled (b-e), this spread is reduced to just 0.75 µs, regardless of the intended delay ($I$) or packet length.
Key performance metrics include:
- Reliability: Constructive interference was achieved in over 98% of cases during mixed-temperature tests.
- Network Efficiency: When integrated with Glossy, Flock improved packet delivery reliability by 3%, reduced latency by 13%, and decreased radio on-time (energy consumption) by 31% in multi-hop scenarios.
Discussion and Limitations
By compensating for drift on-the-fly, Flock lifts the "immediate retransmission" constraint of original Glossy. This allows nodes more time for complex data processing or channel hopping without losing synchronization.
However, Flock's accuracy is somewhat dependent on packet length; shorter packets provide fewer cycles for measurement, potentially increasing estimation error. Additionally, while the logic is portable, the specific timing constants are currently tailored for the CC2420 radio and MSP430 MCU. Future work may extend this high-precision timing to other tasks like fine-grained localization in wireless sensor networks.
Summary updated