Meaning
Unique numerical identifier provided by an end device during the joining procedure prevents the reuse of previous activation messages. The devnonce is a two-byte value that the network server tracks to ensure each join request is original. In the LoRaWAN 1.1 standard, this value is a strictly increasing counter to harden security against replay attempts.
It provides a cryptographic salt for session key derivation.
Counter Persistence
Storage of the last used value in non-volatile memory ensures the device does not repeat a number after a power cycle. If a devnonce is reused, the network server rejects the join request immediately. This mechanism prevents unauthorized entities from retransmitting old join packets.
Reliable memory writing is essential for long-term connectivity.
Security Protocol
Prevention of replay attacks relies on the uniqueness of every transaction. The devnonce contributes to the derivation of the application session key and the network session key. If the counter reaches its maximum value of 65535, the device must undergo a re-provisioning process.
This boundary defines the lifetime of the join credentials.
Server Validation
Checking the received value against the historical record occurs at the gateway. The server maintains a list of used values. An out-of-order value indicates a breach.