The length of the beacon is 17 bytes (Described in the mcBeacon white paper) and that is the beacon that you want to pay attention to
Beacons start with : 0016010D
The 21 byte packet is a system message and should be ignored, there is no data that can sent in this packet. It is used for internal synchronization if there are multiple gateways.