← All projects

LAMP

Bulk data transfer over LoRa

Research with Prof. Andrea Piroddi, University of Bologna · July 2025 – now

LAMP grew out of the rocket telemetry in my bachelor's thesis. That protocol split data into chunks but had no way to recover a lost one. LAMP adds recovery, and the question behind it is how to do that without spending the little airtime LoRa gives you on acknowledgments.

stop-and-wait

LAMP

Top: one chunk on air. Below: chunk 3 is lost. Stop-and-wait pays an ACK per chunk; LAMP pays one bitmap per burst and resends only chunk 3.

Why acknowledgments are expensive

LoRa trades speed for range: at SF7 a full frame stays on air for about 0.4 seconds, and in the EU 868 MHz band you may only transmit for a fraction of the time. Stop-and-wait sends a chunk, waits for its ACK, then sends the next. Every ACK costs airtime, and every lost ACK costs a retry even if the data arrived fine.

How LAMP does it

A payload is split into up to 255 chunks per transmission window. Each chunk has a 9-byte header, with 8-bit node addresses, and a 2-byte CRC-16. Start and end of a message are implied by the chunk index, so they cost no header bits.

There are four modes: connectionless or with a handshake, best-effort or with SACK-ARQ. In the reliable modes the receiver stays quiet until the end of a burst, then answers with one bitmap marking every missing chunk, and the sender resends only those. The core is plain C++17 with no radio code in it; the unit tests run on a laptop.

Results

I ran 295,800 ns-3 simulations across static, urban, rural and over-water channels. Compared with stop-and-wait, the range at 90% delivery grows by 22–35% in urban channels, 14% over water and 8–17% in rural ones. Where the channel is clean, the SACK modes are 14–16% faster at SF7.

What LAMP doesn't change is the duty cycle. Under a 10% limit, sustained throughput is bound by airtime, around 488 bit/s at SF7, whatever the mode. What changes is how long a single transfer takes and how likely it is to get through fading. The simulations were checked on a bench with two ESP32-S3 / SX1262 boards, within 7%.

Range at 90% delivery, urban channel, SF7
LAMP, no retransmissions 2.5 km
Stop-and-wait 3.4 km
LAMP, SACK with handshake 4.1 km
LAMP, SACK without handshake 4.6 km

Mean over 50 seeds in ns-3, from the LAMP paper (in preparation).

Next: Aurora Rocketry → Flight software and telemetry for Borealis and Nemesis