helium / helium-packet-router

Apache License 2.0
8 stars 8 forks source link

Downlink Gateway Selection #247

Closed mikev closed 7 months ago

mikev commented 11 months ago

Downlink Gateway Selection

When a Downlink is required, a Gateway is chosen from a list of available Gateways. This Gateway should be chosen based on it's ability to have a clear radio signal with the sensor device. In general this is determined by the combination of RSSI and SNR metrics gathered from recent Uplinks from the target sensor. In most cases the ideal Gateway will be the Gateway that is physically nearest to the sensor device and this physical nearness will result in the best RSSI and SNR values for the target sensor.

Currently, for various reasons not related to the LNS, including Helium's current Multi-Buy feature and HPR limitations, the Gateway with the lowest internet latency is most often chosen. This behavior results in less than optimal network behavior including higher packet error rates (PER) and non-optimal ADR. For example, if ADR results in a lower data rate and power settings but the wrong Gateway is chose for the Downlink the packet will not reach the sensor device resulting in a "lost" packet and resulting in an increased PER.

Adjust and optimize Helium's system to choose the optimal Gateway with the best RSSI and SNR combination. Take advantage of Gateway metrics to choose a Gateway with the lowest PER for a given sensor device.