## 5 Description of Simulator Parameters and Network Architecture
### Performance Metrics and Sampling Periods  
The retransmissions metric is defined as the number of times to retransmit a packet because the source node does not receive an acknowledgment. We establish a maximum of three retransmissions for each packet; once this value has reached, the packet is dropped. This metric indicates the link state of the network and can provide insight connections and the connections of nodes. The lower this metric value, the better.  
The CSMA retries metric is the number of times a node runs the inner loop of the CSMA/CA algorithm. When a node is about to transmit a packet, it first listens to the channel and notes if the channel is available for transmission (carrier sense). If the channel is busy, then the node waits a random delay for another carrier sense. This cycle is what we call CSMA retry. This parameter has a maximum default value of five times in the IEEE 802.15.4 standard [19]; once this number has been reached, the packet is discarded. This metric gives an indication of the wireless medium state that is influenced by the amount of packet collisions that force repeated CSMA backoffs. The lower this metric value, the better.  
The tries metric is defined as the number of times the coordinator node needs to communicate with every single node in the network. This metric also is known as route availability. The coordinator is a robust node and has powerful processing capability to be aware of the entire network topology. We set a maximum of nine tries for each node. This metric relates connectivity to the link state and topology changes. The lower this metric value, the better.  
For the metrics retransmissions and CSMA retries, we set a sampling period of 100 s, where for the first 30 s, the network is in normal mode. Then, in the next 30 s, a node jammer is introduced in any of the positions evaluated (near, medium or far from the node coordinator, which is always the destination node). Finally, for the next 40 s, the jammer node is removed, and the network returns to a normal state.  
For the tries metric for connecting from the coordinator to each node, we established 100 s of normal network mode and 100 s in the presence of a jammer node. Then, we run this \"ping\" process for every single node of the network by the coordinator, so this constitutes approximately 20 repetitions of the process in a period of 100 s for significance in results. We insist that we have set the maximum tries to nine per node.  
The achievable nodes by the coordinator metric is defined as the number of nodes that can answer the queries from the coordinator. Ideally, the coordinator must know the whole network topology and, therefore, should be able to reach all nodes when required. The higher this metric, the better for the network. It is important to note that this metric is related to the tries metric with each of the nodes. We have set a maximum of nine tries to reach a node.  
Energy is a metric that quantifies the consumption of resources on each node. When a network has low performance, the energy consumption will be higher, because the number of collisions increases and, thus, retransmissions and CSMA retries. Furthermore, when the routing protocol is not able to recover quickly from an attack, the link state and energy consumption will be increased. For assessing this metric, we established 100 s of normal network mode and 100 s in the presence of a jammer node.