A method comprising: establishing a maximum distance parameter, wherein the maximum distance parameter is calculated by taking into account the physical distances between nodes and radio attenuation factors; assigning an initial network address to a gateway; determining a first set of nodes of a plurality of nodes from the plurality of nodes being within the maximum distance of the gateway according to the maximum distance parameter; assigning a first level value to each of the first set of nodes; determining a second set of nodes from the plurality of nodes by each of the first set of nodes, searching for no more than two of the plurality of nodes that are within the maximum distance of a respective one of the first set of nodes and that are not included in the first set of nodes and not be searched by all other of the first set of nodes to establish a primary path; assigning a second level value to each of the second set of nodes, the second level value being one greater than the first level value; and assigning network addresses to each of the plurality of nodes; wherein a first node of the first set of nodes is assigned a network address one value greater than the initial network address, and wherein each node in the first set of nodes after the first node is assigned an incrementally higher value network address until all nodes in the first set of nodes is assigned a unique network address; wherein a first node of the second set of nodes is assigned a network address one value greater than the network address of the node of the first set of nodes having the highest network address and wherein each node in the second set of nodes after the first node in the second set of nodes is assigned an incrementally higher value network address until all nodes in the second set of nodes is assigned a unique network address; and wherein the order of network address assignment to the nodes is based on the angle between an X-axis and a line connecting the center of the affected node with the center of the gateway residing in the origin of the X-axis. establishing a maximum distance parameter, wherein the maximum distance parameter is calculated by taking into account the physical distances between nodes and radio attenuation factors; assigning an initial network address to a gateway; determining a first set of nodes of a plurality of nodes from the plurality of nodes being within the maximum distance of the gateway according to the maximum distance parameter; assigning a first level value to each of the first set of nodes; determining a second set of nodes from the plurality of nodes by each of the first set of nodes, searching for no more than two of the plurality of nodes that are within the maximum distance of a respective one of the first set of nodes and that are not included in the first set of nodes and not be searched by all other of the first set of nodes to establish a primary path; assigning a second level value to each of the second set of nodes, the second level value being one greater than the first level value; and assigning network addresses to each of the plurality of nodes; wherein a first node of the first set of nodes is assigned a network address one value greater than the initial network address, and wherein each node in the first set of nodes after the first node is assigned an incrementally higher value network address until all nodes in the first set of nodes is assigned a unique network address; wherein a first node of the second set of nodes is assigned a network address one value greater than the network address of the node of the first set of nodes having the highest network address and wherein each node in the second set of nodes after the first node in the second set of nodes is assigned an incrementally higher value network address until all nodes in the second set of nodes is assigned a unique network address; and wherein the order of network address assignment to the nodes is based on the angle between an X-axis and a line connecting the center of the affected node with the center of the gateway residing in the origin of the X-axis.