LoRaWAN Specification
©2016 LoRa™ Alliance Page 15 of 91
The authors reserve the right to change
specifications without notice.
4 MAC Message Formats 1
All LoRa uplink and downlink messages carry a PHY payload (Payload) starting with a 2
single-octet MAC header (MHDR), followed by a MAC payload (MACPayload)
1
, and ending 3
with a 4-octet message integrity code (MIC). 4
5
Radio PHY layer: 6
Preamble PHDR PHDR_CRC PHYPayload CRC*
Figure 5: Radio PHY structure (CRC* is only available on uplink messages) 7
PHYPayload: 8
MHDR MACPayload MIC
or 9
MHDR Join-Request MIC
or 10
MHDR Join-Response MIC
Figure 6: PHY payload structure 11
MACPayload: 12
FHDR FPort FRMPayload
Figure 7: MAC payload structure 13
FHDR: 14
DevAddr FCtrl FCnt FOpts
Figure 8: Frame header structure 15
Figure 9: LoRa message format elements 16
4.1 MAC Layer (PHYPayload) 17
18
Size (bytes)
1
1..M
4
PHYPayload
MHDR MACPayload MIC
19
The maximum length (M) of the MACPayload field is region specific and is specified in 20
Chapter 6. 21
4.2 MAC Header (MHDR field) 22
23
Bit#
7..5 4..2 1..0
MHDR bits
MType RFU Major
24
1
Maximum payload size is detailed in the Chapter 6.