The Secondary LNS Forwarding feature allows a RAK gateway running in Packet Forwarder mode to send uplink packets to two LoRaWAN® Network Servers simultaneously.
This setup, also called Dual LNS (Multiplexer) mode, designates the Primary LNS to manage device activations, MAC commands, and downlink scheduling. The Secondary LNS functions in uplink-only monitoring mode, receiving packets for observation or redundancy without handling downlinks.
How It Works
The gateway receives uplinks from end devices.
Packets are forwarded to both the Primary LNS and the Secondary LNS.
Primary LNS processes uplinks and sends downlinks.
Secondary LNS records uplinks only.
Downlink traffic is strictly managed by the primary LNS to prevent conflicts.
Configuring Secondary LNS Forwarding
Secondary LNS Forwarding can only be enabled when the gateway is running in Packet Forwarder mode. Ensure the gateway is operating in this mode before proceeding.
Before connecting the gateway to a LoRaWAN® Network Server, make sure the gateway has been registered on the chosen server.
Configure the Primary LNS
In this example, The Things Network (TTN v3) is configured as the Primary LNS using the UDP protocol.
Log in to the gateway’s web UI.
- Navigate to LoRa > Configuration in the left menu.
In the Protocol field, select Semtech UDP GWMP from the dropdown list.
- If using TTN’s EU1 cluster, confirm the pre-filled server address and port.
- For other regions, update the Server address based on your TTN cluster (port 1700 remains unchanged).
Enable Secondary LNS Forwarding
In this example, ChirpStack v4 is set up as the Secondary LNS, using the LoRa® Gateway MQTT Bridge protocol.
- On the same LoRa > Configuration page, toggle Secondary LNS Forwarding to enable the feature.
- Select LoRa® Gateway MQTT Bridge as the protocol.
Configure the connection parameters for ChirpStack v4:
- MQTT Broker Address: Enter the public IP address of your ChirpStack server, for example: 140.179.175.182
- MQTT Broker Port: 1883
When using MQTT, optional parameters, such as QoS, Keepalive, Clean Session, Authentication, and TLS can be configured based on the target broker requirements.
- Click Save changes to apply the configuration.
Verification
After setup, uplink packets should appear in both the Primary and Secondary LNS dashboards:
Primary LNS (TTN v3 via UDP):
The TTN Console displays live uplink and gateway status messages. TTN also supports sending downlink messages, which are delivered to end devices through the gateway.Secondary LNS (ChirpStack v4 via MQTT):
In ChirpStack, the LoRaWAN Frames view shows the uplink frames (e.g., ConfirmedDataUp) received from the same device.
This confirms that the gateway is forwarding uplinks to both servers simultaneously, while only the Primary LNS manages downlink traffic.
Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| Secondary LNS is not receiving uplinks |
|
|
| Downlinks are not delivered to devices |
|
|
| OTAA devices fail to join |
|
|
FAQs
Can the Secondary LNS operate without a Primary LNS?
No. A Primary LNS must always be configured. The Secondary LNS is only for uplink monitoring.What happens if the Primary LNS is unreachable?
The Secondary LNS will continue receiving uplinks from already-activated devices (ABP). However, OTAA devices cannot join without the Primary LNS.Can the Primary and Secondary LNS use the same protocol?
Yes, but they must not share the same server address and port. For example, one can use TTN (UDP) and another ChirpStack (UDP), but configured with different endpoints.
Glossary
| Term | Definition | Notes |
|---|---|---|
| Primary LNS | A main server configured in Packet Forwarder mode, which controls device activations, MAC commands, and downlinks. | Must always be present; only this server manages downlinks. |
| Secondary LNS | A passive uplink receiver configured through Secondary LNS Forwarding. | Uplink-only; cannot send downlinks or manage OTAA joins. |
Changelog
- Version 1 - Secondary LNS Forwarding: Forward Packets to a Secondary Network Server
- Date Published: 11/01/2025
Updated