The protocol in the gateway plan is the responsible for a
number of tasks, which include keeping of device roles,
management of requests to join a network, device discovery
and security. Specially, for this application the online
maintenance of the network is done very rarely since the
nodes are static. The three plans of communication can be
seen in figure 2.