IEEE 802.15.4 standard defmes that MAC layer has 4
basic frame: beacon frame, data frame, acknowledgment, and
command frames. Beacon frame is used by a coordinator to
transmit beacons. Data frame is used to store all data sent.
Acknowledgment frame is used to confirm that it has
successfully received the data that had just passed, and MAC
command frame is used to set up and configure the client.