13.2 Slot randomization

  1. To avoid systematic collisions or over-hearing problems the slot index is randomized and
  2. changed at every beacon period.
  3. The following parameters are used:

5

DevAddr Device 32 bit network unicast or multicast address
pingNb Number of ping slots per beacon period. This must be a power of 2
integer: pingNb = 2k where 1 <= k <=7
pingPeriod Period of the device receiver wake-up expressed in number of slots:
pingPeriod = 212/ pingNb
pingOffset Randomized offset computed at each beacon period start. Values
can range from 0 to (pingPeriod-1)
beaconTime The time carried in the field BCNPayload.Time of the immediately
preceding beacon frame
slotLen Length of a unit ping slot = 30 ms

6

  1. At each beacon period the end-device and the server compute a new pseudo-random offset
  2. to align the reception slots. An AES encryption with a fixed key of all zeros is used to
  3. randomize:
  4. Key = 16 x 0x00
  5. Rand = aes128_encrypt(Key, beaconTime | DevAddr | pad16)
  6. pingOffset = (Rand[0] + Rand[1]x 256) modulo pingPeriod
  7. The slots used for this beacon period will be:
  8. pingOffset + N x pingPeriod with N=[0:pingNb-1]
  9. The node therefore opens receive slots starting at :
First slot Beacon_reserved + pingOffset x slotLen
Slot 2 Beacon_reserved + (pingOffset + pingPeriod) x slotLen
Slot 3 Beacon_reserved + (pingOffset + 2 x pingPeriod) x slotLen
  1. If the end-device serves simultaneously a unicast and one or more multicast slots this
  2. computation is performed multiple times at the beginning of a new beacon period. Once for
  3. the unicast address (the node network address) and once for each multicast group address.
  4. In the case where a multicast ping slot and a unicast ping slot collide and cannot be served
  5. by the end-device receiver then the end-device should preferentially listen to the multicast
  6. slot. If there is a collision between multicast reception slots the FPending bit of the previous
  7. multicast frame can be used to set a preference.
  8. The randomization scheme prevents a systematic collision between unicast and multicast
  9. slots. If collisions happen during a beacon period then it is unlikely to occur again during the
  10. next beacon period.

©2016 LoRa™ Alliance Page 46 of 70

The authors reserve the right to change specifications without notice.

LoRaWAN Specification

results matching ""

    No results matching ""