Abstract
Recently, a wide range of small devices, such as Wi-Fi Internet of things development boards, which are a kind of the microcontroller units in a general purpose board, are interrelated throughout the planet. In addition, certain microcontroller units interact inside our homes when turning lights on or detecting movements, measuring various parameters, such as gas concentrations,
Keywords
Introduction
The diffusion and sharing node sensor parameters in wireless sensor networks (WSNs), specifically Internet of things (IoT) networks, for yielding energy efficiency have generated greater interest in academia and industry. IoT networks seem to be the WSN new generation because they combine the monitoring of the environment, temperature, humidity, CO2, as well as the environmental lights tuning with transmission and processing of data through WSN.1,2 IoT networks are an option to transmit and share sensor parameters, since the nodes perform specific and simple tasks when acquiring data from the environment. Several sensors are added wirelessly in homes to obtain data on the physical or environmental states of the parameters of the network being monitored. After collecting sensor node data, transmitting them over the network IoT, interchanging parameters among nodes, processing and analyzing structural problems such as attaching new sensor nodes to the network, and communicating these parameters centrally as a star configuration, can be anticipated and successfully adapted, thus future requirements of an IoT network can be addressed in a timely manner.3,4 However, it is believed by 2020 the IoT will have reached critical mass. By connecting the large amount of intelligence in the cloud to billions of mobile devices and having very low-cost node sensors and network identifiers microcontroller units (MCU) integrated throughout the IoT network, it will generate benefits to almost all human beings, in terms of health, safety, and convenience. 4 Also by the year 2020, there will be four billion people connected to the cloud with an income of four billion dollars when downloading more than 25 million applications from the main application stores, so that approximately more than 25,000 need millions of MCUs that will generate 50 trillion Gigabytes of data within the worldwide IoT network.
As the number of IoT devices increases in a conventional house, wirelessly connected sensors that monitor the IoT network parameters are required to ensure the proper performance of the IoT network. In an IoT network, there is a wireless access point (WAP) connecting all their devices to an Internet or intranet network as the hub node. If a node sensor will share parameters with other MCUs, all these MCUs must be linked to the WAP. Even if two MCUs are the physically closest, if they are not linked to the WAP, they cannot be linked and exchange parameters.
The rest of the article is organized as follows. In section “Related work,” four works are explained whose goal is to propose algorithms for making energy efficiency in WSN. Section “Environment of SI in an IoT network” offers a general description of our proposal. Section “Wi-Fi IoT development boards and Hilbert fractal curve” describes the integrated systems in the IoT network as well as the Hilbert filling-space curve. Section “Fractal adaptive reconfiguration in an IoT network” developed the main scheme. In section “Experimentation,” simulations of different protocols are carried out for verifying the correction and feasibility of our algorithm. Finally, we conclude the article in section “Conclusion.”
Related work
Mostafaei and Menth 5 proposed the software-defined (SD)-WSN algorithm for saving energy in WSN, since the software-defined networking (SDN), the forwarding elements are not configured by means of distributed control protocols but remotely using centralized controllers. Several complex challenges arise from the configuration WSN, namely, in a distributed manner, thus, from a theoretical point of view, this situation can be better solved by knowing the entire network, since the solution is only configured for distributed sensor nodes. In their work, the authors explain the concepts of WSN and SDN, describe the fundamentals of SD-WSNs (such as different topologies and routing decisions), and explain how the SDN can improve the operation of WSN, through a comparison between the different routing protocols in SD-WSNs and among the works related to quality of service (QoS) in SD-WSNs. They found that distributed node coordination and energy efficiency are the most important challenges at WSNs. For non-SDN-supported WSNs, these are mainly resolved in a distributed manner, since the SD-WSN prefers central control. This implies energy savings because redundant communication can be avoided, power-restricting nodes can be removed from power-efficient tasks and moved to the controller, so specific tasks are accomplished with fewer active sensor nodes, that is, by intelligent operation.
Javadi et al. 6 generated a topology control algorithm from a learning automaton, called LBLATC, to reduce the power consumption of the sensor nodes and increase the capacity of the WSN for a longer period of time. They assumed that topology designed to transmit in a lower range allowed the sensor nodes exploit efficiently their resources and mitigate their power consumption. Therefore, in the LBLATC, the learning automaton of each sensor node chooses the lower range transmission. The authors simulated parameters such as the network area, the number of nodes, the transmission range, finding that the LBLATC performed 15% better than other algorithms reported in the reviewed literature, in terms of selecting an appropriate transmission range, which is reflected in energy saving in the WSN. However, the LBLATC did not take into account the mobility that is a static protocol.
The QoS routing in WSN is critical for surveillance systems. As a consequence of high packet loss and power efficiency, it is the necessary reliable links in the streaming multihop data from WSNs for the end-to-end data delivery. The studies consulted by Mostafaei 7 on multipath routing could meet QoS requirements such as end-to-end reliability and delay but implying a high cost of energy. Therefore, in order to achieve efficiency of the network with multi-restriction QoS parameters, Mostafaei proposed a solution based on an optimal multi-constrained route, yielding the distributed learning automaton (DLA) algorithm. This author found the smallest amount of sensor nodes to keep the better QoS requirements. To do this, Mostafaei considered various QoS routing restrictions such as end-to-end reliability and delay, depending on the chosen route. He simulated the DLA and the results obtained confirmed the effectiveness of his solution, that is, his algorithm performed better with respect to the other algorithms reported in the literature regarding end-to-end delay (E2ED) and energy efficiency.
Haqbeen et al. 8 yielded the adaptive intelligent hybrid medium access control (AI-HMAC) traffic protocol, resulting from combining the functionalities of the time division multiple access (TDMA) and carrier sense multiple access (CSMA) configurations by programming transmissions and links to improve the performance and power consumption of the protocol. It is possible to operate this protocol within a wide range of data traffic and choose the send/receive mechanism according to the rate of packaging and data loss, reducing energy consumption. However, Zedadra et al. 9 employed multi-agent system (MAS) technology, the swarm intelligence (SI) paradigm, and frontier computing to model an IoT system as a simple swarm of intelligent objects with limited computational and storage capabilities that use stigmergic communication to generate collective and complex behavior of the system; smart objects employ self-organizing and self-adaptive behaviors to meet IoT system requirements. Savaglio et al. 10 designed a Q-learning MAC (QL-MAC) energy preservation protocol to extend the life of the WSN. QL-MAC is the result of Q-learning, which iteratively adjusts the MAC parameters through a trial-and-error process to converge to a low-energy stadium, by allowing each node to independently predict an efficient schedule to wake up or activate to save energy by limiting the period in which it is in active mode. This protocol minimizes energy consumption without the need to predetermine the system model and also it provides a self-adaptive protocol for topological and other external changes. Finally, Kwon et al. 11 developed a multihop ad hoc IoT network where IoT mobile devices strategically set their wireless transmission ranges based on a reinforcement learning approach deep. An IoT device is a decision-maker that strategically establishes its transmission range to maximize network performance and minimize power consumption during transmission, thus only the nodes receiving and transmitting information are activated with the maximum transmission power, and the other nodes are deactivated to minimize the consumption of energy.
We proposed an adaptive reconfiguration algorithm that links all the sensor nodes of an IoT or WSN network using the Hilbert fractal for being a filling-space curve, in order to avoid the use of hub nodes and that the sensor or MCUs of the IoT network share all the parameters only through adjacent nodes. With the proposed algorithm, it is possible to have access to the entire IoT network in a dynamic way, allowing to reconfigure the topology of the IoT network when a new node is added. This work has its background from a paper presented by Moreno et al. 12 in the volume 11288 of the Lecture Notes in artificial intelligence.
Environment of SI in an IoT network
From an anthropomorphic view of point, intelligence was defined as something belonging to a single entity, but with a huge complexity. Nonetheless, if we are looking for a super intelligent entity, we could talk about a collective intelligence, such as a distributed processing entity, which is one of the most important basis of the artificial intelligence (AI).
By looking at nature, it is possible to learn from it (this is what we call bio-inspired computer models). In large colonies of social animals, such as bees, termites, or ants, any member by itself is so intelligent due to their members follow very simple algorithm patterns. However, as a group or colony, their collective behavior displays a huge intelligence. For example, an ant by itself cannot defend the colony or feed the queen, but when it interacts with the other members of the colony, it is possible to do a lot of tasks to guarantee to preserve the colony. In this way, our human societies achieve great feats by collaborating and working as a team, where would be the novelty that our way of managing groups is usually hierarchical: there are leaders, supervisors who check the functioning of the whole, who direct it and re-direct it toward its own objectives. In insect colonies, on the other hand, there are no supervisors, there is no one to govern the system. The achievement of the objectives lies in the synergy of the independent functioning of each of the parties. In addition, interestingly, the goals achieved are spectacularly intelligent as an entity.
Furthermore, the comparison with the human brain and consciousness seems compelling. A neuron has a very simple behavior pattern, but millions of them working simultaneously can generate intelligent behavior and even consciousness. In addition, introducing the concept of simultaneity in IoT networks or unmanned vehicles is overcoming one of the fundamental differences between machines and brains. Our computers, despite their incredible speed, only perform one action at a time, which is a great loss of power. Millions of small processors make more powerful things than just a very fast one as the human brain does, since it is much slower than a processor but it processes a lot more information.
Accordingly, the main goal of this research would be to adapt which emergent properties are obtained from combinations of simple action patterns, to understand the collective behavior of the swarms or masses of individual MCUs as such from the simple behavior of their individuals to the associate. In fact, this model is already being used to study the origin of culture. And in robotics, that is what they are doing in the Symbrion Project by Schlachter et al., 13 which makes use of microrobots that form various macrorobots without losing their micro-identity. This also gives them an enormous versatility that would not have been static pieces of a macrorobot. We entered to the era of social devices and networks.
It can also be very interesting to apply this model to explain social events. Our societies are sets of many individuals operating, which create, in the same way, systemic or emergent properties not foreseen when analyzing individual behavior in an isolated way. Perhaps one of the great problem of our world is that these properties occur without being foreseen or controlled by the authorities (environmental deterioration, economic crisis, etc.). In this way, perhaps it is that the model of government should not be channeled to control all sectors of the system (absolutely immeasurable), but only to coordinate them to achieve the desirable emerging consequences. More than directing part by part, it is better to study the communication between them and their forms of interaction. So we can say that swarm or collaborative intelligence leads us to a distributed social and IoT networks.
In general, collective behavior or SI has the following features:
Self-organization.
Stigma: collaboration through the physical medium.
Emergent behavior: distributed intelligence or sturdiness.
Strong local interaction.
Highly structured social organization.
Collaboration versus competition.
Stochastic components.
Bio-inspiration.
We can highlight that a SI system could normally seem chaotic and meaningless, speaking of the behavior of a flock, a school, a herd, or specifically a swarm, when transformed into a group of individuals that communicate and cooperate in unison to guarantee social welfare, to be cataloged as superorganisms, especially referring to the case of termites, ants, and bees, for instance.
Moreover, Beni and Wang 14 defined the SI as the collective and decentralized behavior of self-organized systems in a natural or artificial way, allowing the intelligence of simple systems be transformed into the intelligence of complex systems. Something that is remembered in this sense is that mold that behaves like a multicellular organism, when environmental conditions are propitious, but it becomes unicellular when it encounters inhospitable situations and latent waiting, the propitious moment, to return as mold.
We are observing intelligent systems that self-organize and work cooperatively for the benefit of their society, whether lasting or transient, following a series of binary instructions, which are reinforced with the response they get from their environment, their mistakes, their interaction with other individuals, and their iterations in carrying them out. Emphasizing that there is no leader, but the main task to strictly follow the instructions, learning from their failures.
Every SI system is made up of a group of individuals, being their organisms or subsystems, in general. We adapt an IoT network with SI, so the MCUs learn simple tasks and interact without having a central command system. Thus, the interrelationships between MCUs generate enormous advantages with respect to the search and execution time, which produces an intelligence behavior by the whole and not by the individual performance.
Wi-Fi IoT development boards
Based on ESP8266
ESP8266 is a low-cost Wi-Fi chip that works through the transmission control protocol/internet protocol (TCP/IP) protocol. It includes a microcontroller (Tensilica Xtensa LX106) to manage this protocol and the necessary software for the 802.11 connection. In addition, most models have general purpose digital inputs/outputs (GPIO), as well as an analog input with 10 bit analog–digital converter.
By the price of
For carrying out this work, we use the ESP-12-E model for being the ESP8266 most widely used over the world. However, the software and hardware of the NodeMCU allow one to consider them as an open-source project for integrating the IoT from the development of a simple model based on Wi-Fi. For example, Jabbar et al. 15 proposed a system which uses a Wi-Fi-based gateway to connect different sensors and updates its data to Adafruit IO cloud server.
When using the ESP-12-E model, programming is entirely transparent, since it does not requires any change in its pins for programming, and having a USB connection like Arduino. The board by itself has a power regulator, as well as a USB-serial chip for the ESP8266 communication directly from the computer’s USB, in addition to an easy access to the GPIO pins, a 1 Mb flash memory for the storage of several programs, two Rx/Tx ports, etc. Briefly, it is the easiest and cheapest way to develop IoT applications due to the large community and the large number of compatible software and existing libraries for programming the ESP8266.
Based on the Raspberry Pi 3 B+
Raspberry is a low-cost computer board developed in the United Kingdom by the Raspberry Pi Foundation, with the aim of stimulating the teaching of computers in schools. The Raspberry Pi 3 model B is the third generation of Raspberry Pi. It can be used as a low-power web server and build your own Smart-TV, as a print server and make your own cloud, as a global positioning system (GPS) locator. There are thousands of projects on the Internet to get the most out of it.
Many Linux operating systems have been optimized for the Raspberry Pi and also to give any use to this board you have a very versatile operating system is the RASPBIAN OS that you can download from the official website.
In addition, Raspberry Pi offers the Raspberry Pi 3 B+ model, which is useful for learning, coding, and creating projects. The Pi B+ model is the latest product in the Raspberry Pi 3 range and features a quad-core 64-bit processor running at 1.4 GHz, dual-band 2.4 GHz and 5 GHz wireless LAN, Bluetooth 4.2/BLE, faster Ethernet, and power over Ethernet (PoE) capability through separate PoE hardware attached on top (HAT). The Raspberry Pi 3 model B+ has achieved the certification of modular compliance, which allows to design the plate in final products with proof of compliance of wireless LAN significantly reduced, improving the cost and time of commercialization. All this happens while maintaining the same mechanical footprint as the Raspberry Pi 2 model B and the Raspberry Pi 3 model B.
Wi-Fi P2P and direct
Wi-Fi direct is a form of Wi-Fi connectivity, which allows connecting two certified devices such as Wi-Fi direct, such as tablets, telephones, printers, or MCUs, directly. Unlike a normal Wi-Fi connection, Wi-Fi direct does not need an access point to manage the connection, such as a router or hotspot, that is, without that access point, the devices cannot be seen; Wi-Fi direct can send files directly and at a speed and reach far superior to Bluetooth, approximately ten times faster and almost four times more range.
These devices must meet certain requirements:
Be connected to the same wireless network.
Be compatible to use that protocol, here we must point out that only with one of the devices integrated with Wi-Fi direct, the connection would be possible.
Be in the same physical space, since the distance, although greater than by Bluetooth, must be adequate for the devices to detect each other.
The process of sharing files using Wi-Fi direct is similar to how it is done through Bluetooth. Once activated on both devices, each one identifies the other and once the connection is accepted, we can send the files to us. In MCU devices, generally, if we go to settings and then to Wi-Fi, we can activate the Wi-Fi direct system so that this device is visible by others who are also using Wi-Fi direct. Once the devices detect each other from one, the other is invited to establish a connection, and when it accepts, the two can exchange files. The way to send files is similar to how we do when we share something on the network. Thus, some devices that although detect other connected devices and are detected in turn, they do not have the options to share the one of Wi-Fi direct. The solution for these would be to install an application that incorporates that option between the typical connection.
On one hand, Bluetooth is better known and supported by more variety of devices. However, Wi-Fi direct has a higher transfer rate, advanced encryption standard (AES) of 256 bits, while Bluetooth of 128 bits, and greater range, being 100 m the maximum distance to which the devices that are connected and 50 m can be in the Bluetooth case. 16 On the other hand, among the disadvantages of Wi-Fi direct, we can find by requiring greater energy consumption, when we have devices equipped with a battery, it can be used up more quickly. In reference to the number of devices that support the Wi-Fi direct protocol, although more and more manufacturers choose to incorporate it, which incorporates in its products another similar technology called AirPlay. With this we leave out the possibility of exchanging files using Wi-Fi direct among a big amount of devices even MCUs. Although Wi-Fi direct is a very useful and easy-to-use technology, and which has been present in our devices for several years, this is why Demir 17 states that there is still a lot of ignorance, and consequently it is not used as much as one might expect.
Hilbert fractal curve
Recursive geometric mathematical objects are mathematical monsters and fractals. Some fractals, such as the Peano and Hilbert fractals, are curves that travel through all the points of a square, that is, they are filling-space curves which are frequently found in nature. For example, there are three systems with access to each part of the kidney, namely: arterial, venous, and urinary systems, whose dynamics can be modeled as a filling-space curve to organize efficiently their tangled structures. 18
To facilitate the construction of fractals due to their recursivity, the L-systems paradigm was proposed by Lindenmayer 19 as a language of fractals and created to describe the processes of growth in nature. In addition, L-systems are constituted by formal descriptions known as parallel rewriting systems.
A L-system is made up by the rules of production, which refers to the mechanism by which the growth process is generated, and by the axiom, which is the initial state in which the L-system is located. A L-system can be understood as a feedback machine that operates in chains, where the rules of production (or rewriting) point out the way a given input chain, through iterations, is transformed into an output chain. Once the production rules have been established, the dynamics of the same can be simulated in a computer to generate a long chain of symbols translated into a graphic output, which allows to compare the image with the behavior of the real object.
The production rules in L-systems require a graphic validation, thus Papert 20 proposed a graphical interpretation algorithm to construct fractals, including the filling-space curves. This algorithm allows to develop L-systems with very few production rules, starting to take an object moving through the system, in order to trace a path or curve based on its movements. Immediately, several commands are taught to the object in the form of symbols used in the L-system. For this work, we were interested specifically in three commands:
↺, turn left (counterclockwise) by a fixed angle
↻, turn right (clockwise) by the angle
Accordingly, our object must decode symbols based on sequences of the above three commands. Thus, we have proposed to use the symbols

The first stages of the construction of a Hilbert fractal.
We start the Hilbert fractal curve construction taking a
The following step consists by rotating
Fractal adaptive reconfiguration in an IoT network
Our proposed adaptive reconfiguration algorithm is made up of three steps:
Identifying the main MCU or hub node in the IoT network.
Designing the topology or structure of the IoT network.
Indexing, connecting, or establishing of links between the nodes of the IoT network.
However, any configuration of our IoT network consists of a WAP and an
We also define
where

Example of the IoT network with SI employed in this work.
In this case,
The IoT network has
Step 1: identifying the main MCU
First, we assumed that
Step 2: designing the topology
When the
Thus, each LRN i has the linking-speed of all the
Step 3: indexing of links
To generate the Hilbert fractal curve, we applied the L-system paradigm and the Papert’s graphic interpretation, in order to the smallest elements (symbols) be replaced. In our case, the Hilbert curve are made up of copies of the
After choosing the angle

Symbols
Since the goal to yield the topology of the IoT network is to enable the parameter sharing among their sensor nodes, and based on the Hilbert fractal curve, we proposed the following L-system:
For the first three stages, namely, we can scan
Equation (4) shows the estimation of the
where the coefficient of correlation of bandwidth sample is expressed by

(a) The Hilbert fractal curve level n = 3, (b)
Figure 4(b) depicts all
The possible parameters are expressed in Table 1, and these parameters are shared along the IoT network, thus all the nodes have all the types of sensors that exist in the network. We proposed an 8-bit marker since it would give us as a result that we can differentiate and shared
Examples of types of sensors in an IoT network or list of sensor network,
MCU: microcontroller unit; GPS: global positioning system; RFID: radio-frequency identification.
Experimentation
This section is divided as follows:
Experiment Setup,
Network topology estimation,
Discussion, and
Impact of node density and QoS
The basis of experimentation are defined, the estimation of the IoT Network topology is made, and an analysis of the obtained results are made. Then, the discussion of the results of finding are exposed. Finally, the impact of node density and QoS is exposed.
Experiment setup
A specific topology in a certain room is generated in order to propose an experimental system that is divided into mainly as follows:
WAP.
IoT Development Boards.
The place where the Development Boards are placed.
We defined as the main sensor node of the IoT network a Router Tenda-AC1200. This WAP has a Broadcom 900Mhz Processor and it can handle a total available bandwidth of 1.2 Gbps due to two Wi-Fi simultaneous 2.4 GHz 300 Mbps and 5 GHz 867 Mbps connections.
Moreover, we used 18 boards Raspberry Pi 3 B + and 46 boards ModeMCU-ESP8266, giving as a result 64 IoT Development Boards for conforming the simulated Network.
Both MCU-RPi3 and MCU-ESP8266 support the IEEE 802.11n standard, so we configured an IoT network with up to 300 Mbps at 2.4 GHz as maximum bandwidth.
Finally, the 64 IoT Development Boards were randomly distributed along an area (Figure 2). The connection depicted by Figure 5(a) shows the reachable sensor nodes by the main router, giving an idea of how these boards are located before estimating the connection among them and the ways to connect and share their data obtained by their different sensors.

Experimentation: (a) IoT Development Boards with stable link to the main WAP and (b) LRN7.
An initial configuration can be defined as follows:
The axiom chosen by the Hilbert fractal curve indicates that the main WAP must be placed in the upper left quadrant.
The IEEE 802.11 b/g/n standard is configured for connecting all 64 devices to 31.
The connection to the WAP is established by some sensor nodes in the network. Figure 5(a) shows those who do not achieve this connection with the WAP, then enable Wi-Fi P2P mode in listen or wait mode.
All the sensor nodes connected to the Tenda-AC1200 are completely disabled from the Wi-Fi direct mode.
To measure the linking-speed of each node, the WAP broadcasts. With the response of each MCU, the bandwidth of each one is estimated.
It is with the above, that the 64 MNI tags or labels that this network contains can be identified. For the first time, these labels are identified and numbered consecutively. This assignment is made according to the linking-speed to the Tenda-AC1200.
With the help of Table 2 and Figure 5(a), a NodeMCU-ESP8266 development board can be identified that maintains the best average link with 222.74 Mbps, which is why it is identified with a label 1, assuming the name MCU-ESP8266-1, although within the designed network it is not important what type of IoT device is identified.
The room where the experimentation was carried out, as shown in Figure 5(a), contains some walls attenuating the signals from both the WAP and the IoT devices. It is because there are cases where devices that are closer to the WAP but with a greater obstruction, they experience a decrease in the linking-speed, and there are cases where there is no obstruction, greater bandwidths are achieved despite their greater distance to the WAP. For example, the MCU-ESP8266-16 reaches a linking-speed of 76.51 Mbps and is barely 8.5 m from the WAP since a wall that divides the room obstructs it, while without obstruction the MCU-ESP8266-8 reaches a linking-speed of 145.06 Mbps, being 9 m from the WAP.
Devices having a stable link with the WAP within the IoT network on average.
WAP: wireless access point; MCU: microcontroller unit.
It is important to note that all the amounts are expressed in Megabits per second or Mbps.
Table 2 depicts a list of devices according the average bandwidth in the proposed IoT network. The MCU-ESP8266-1 and MCU-RPi3-2 obtained the two best linking-speeds with 222.74 and 218.17 Mbps, respectively. This list or table is considered full until the maximum speed of 10 links is measured.
Estimation of the network topology
It is important to determine the initial topology of the network and Table 2 shows the spatial position of each sensor node. The first sensor node, in terms of higher linking-speed, will be known as Node 1. For this example, this is the MCU-ESP8266-1, and the other nodes are numbered based on their linking-speed. Thus, this Node 1 is the only one that establishes a link with the main WAP, while the
Once the initial sensor node or
Thus, it can be mentioned that any IoT network configuration has up to
LRN 7 for the MCU-RPi3-7. B
LRN: list of accessible nodes; MNI: microcontroller network identifier; MCU: microcontroller unit.
From Table 3, it can be highlighted that the worst linking-speed is obtained by connecting
Discussion
The similarity or Hausdorff–Besicovitch dimension
The position within the IoT network of each device is shown in Figure 4(b). From Figure 6, the way to communicate to

Members who can be reached using the third-order of the Hilbert fractal curve in a proposed IoT network.
In addition, each MCU has a certain position within the room or floor layout, which is optimized according to the highest linking-speed (Figure 4(b)). If the Hilbert vector indexing is done, it is found that the best way to send an information packet will always be
There are devices that are as far as possible from each other, these cases are considered critical. With them, the worst connectivity scenarios are measured. In this case, the bandwidth between
QoS and impact of node density
The performance of this proposal is evaluated in this section. This is done by measuring the impact of the density of the nodes (ND), in the first instance to then measure the QoS. Then, the performance of the distributed learning fractal algorithm (DLFA) algorithm by means of the packet delivery ratio (PDR) and the E2ED are estimated. Thus, the performance of this proposal is compared with similar algorithms such as
Mostafaei: 7 Reliable routing with distributed learning automaton (RRDLA).
Liu et al.: 21 Delay-energy tradeoff in WSNs with reliable communication (DETR).
Li et al.: 22 Reliable and energy-efficient routing (REER).
The same network parameters, proposed by Zorzi and Rao 23 and by Karp and Kung, 24 are employed in order to make a real comparison to the state-of-the-art algorithms.
To understand the experiments carried out, it is important to first define what the E2ED is, which is the time it takes for a packet to reach the receiver from the moment it is emitted until it is received, being then the average sum of the differences between the delays sending and receiving. 25 Whereas PDR is the probability of recovery from the original packets by the receiver before their lifetime expires. 26
From these definitions, we find equation (5) which defines the rate (
where
The comparison between E2ED and PDR is made in two ways. The first in terms of reliability requirements and node density whose results are shown in Figure 7(a) and (b), respectively. The lower the PDR, the better the performance, while the E2ED works otherwise, when it increases the performance of the algorithm, it also increases this metric. Thus, the best results are obtained by our proposal as the RRDLA algorithm, this happens because both minimize the delay for data transfer from the node sensors when the packet receiver retrieves it. This proposal is slightly better than other algorithms and exceeds them by at least 2 %. Therefore, it can be highlighted the propagation delay in the IoT network, both this proposal and RRDLA, remains stable regardless of the ND, that is, the QoS. Other algorithms such as DETR and REER obtain much larger delays than this proposal.

QoS and ND impact: (a) reliability requirements and (b) node density.
The impact of node density and QoS in
ND and QoS impact for
ND: density of the nodes; QoS: quality of service; RRDLA: Reliable routing with distributed learning automaton; DETR: delay-energy tradeoff; REER: reliable and energy-efficient routing.
The best result obtained by this proposed method is highlighted in
Finally, when a sensor shares data in the IoT network, it takes less time to reach the receiver when the proposed algorithm is used, thus, the recovery propagation of the original packet before its lifetime expires is significantly increased.
Conclusion
In past centuries, global changes in the world were gradual, but in the most recent decades, these changes have accelerated and have had a direct impact on the climate, a way to encourage the negative effects is to save as much energy as possible. This work proposed a topology applied to a specific IoT network, which is based on the fractal or David Hilbert fractal curve. A Hilbert fractal curve is a fractal with a Hausdorff–Besicovitch dimension equals to 2, which means that this type of fractal tries to space-fill an entire two-dimensional area under the paradigm of L-systems, which requires three main characteristics: an axiom, production rules, and an alphabet. Thus, this fractal was used to optimize the linking-speed and thereby reduce energy consumption.
Much of the energy wasted is due to the need of connecting the sensors to a central sensor node. If the neighboring sensor nodes are used, the average linking-speed of the network is increased. In addition, the complexity of connections is reduced and generates an entity that works as a single node sensor full of parameters that can be measured. There are various algorithms that try to make the connection between nodes of an IoT network more efficient and share their parameters more efficiently. But these algorithms have not completely solved the high costs of interconnection. Given these initial conditions, this work proposed a simple development algorithm for WSNs, using the IEEE 802.11 b/g/n Wi-Fi standard.
The analysis carried out to measure the performance indicated that the reconfiguration time of the IoT network was reduced to a few milliseconds, which increased the lifetime of the network. And the conjunction of these factors increases the efficiency of the network and thus improves the way to share the parameters in the IoT network. In other words, the IoT network was fully filled with all the sensor parameters. In the topology example that we have presented, 122.78 µs were required for the complete reconfiguration of the IoT network, when more than one sensor node and up to
Finally, the proposal was based on the use of SI, since all the sensor nodes know the parameters of the IoT network. And when there is a reconfiguration, all the sensor nodes help to get this purpose, knowing how the sensor nodes behave in terms of their linking-speed. All these changes, even the physical ones, can be shared by the same IoT network, and with it, all the sensor nodes propose the most optimal reconfiguration of the current IoT network.
Footnotes
Acknowledgements
The research described in this work was mainly carried out at Escuela Superior de Ingeniera Mecánica y Eléctrica, Campus Zacatenco. In addition, the authors thank Juan Posadas and Liliana Chanona for their technical contributions.
Handling Editor: Michele Amoretti
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by Instituto Poliécnico Nacional, Mexico by means of Projects SIP20200638 and SIP20200324 granted by Secretería de Investigación y Posgrado and National Council of Science and Technology of Mexico (CONACyT).
