Review the Packet Diagrams
Review the Packet Diagrams
Inspect Figure 1 and ask which region must be decoded before the payload bytes can be trusted.
Inspect Figure 2 and ask why frame boundaries must be established before any value bytes are interpreted.