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.
The PHY layer consists of 32 bits preamble which serves
to synchronize the system. Start of frame has a size of 8 bits
which serves as a marker of the end of the preamble. Frame
length with the size of 8 bits which serves to explain the
length of the PHY service data unit (PSDU), and MPOU with
size