LoRaWAN Specification
©2015 LoRa™ Alliance Page 15 of 82
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
Figure 6: PHY payload structure 9
MACPayload: 10
FHDR FPort FRMPayload
Figure 7: MAC payload structure 11
FHDR: 12
DevAddr FCtrl FCnt FOpts
Figure 8: Frame header structure 13
Figure 9: LoRa message format elements 14
4.1 MAC Layer (PHYPayload) 15
16
Size (bytes)
1
1..M
4
PHYPayload
MHDR MACPayload MIC
17
The maximum length (M) of the MACPayload field is region specific and is specified in 18
Chapter 6. 19
4.2 MAC Header (MHDR field) 20
21
Bit#
7..5 4..2 1..0
MHDR bits
MType RFU Major
22
The MAC header specifies the message type (MType) and according to which major version 23
(Major) of the frame format of the LoRaWAN layer specification the frame has been 24
encoded. 25
1
Maximum payload size is detailed in the Chapter 6.