Design of Energy-Efficient Protocol Stack for Nanocommunication Using Greedy Algorithms

With the passage of time, nanotechnology has become a mature discipline. It attracts attention of researchers toward nanocommunication and trying to give comprehensive set of tools to the engineering community. Nanonetwork contains nanosized communication devices that can be used in the field of military, bio medical, environment, ICT, and industry. Its communication abilities makethisfieldpowerful enoughtomakethedevicesinteractwitheachotherinthemicro/macroworld.Theinterconnection between nanonodes is not possible with the help of traditional networking techniques. In the upcoming years, nanotechnology is expecting to bring the integration of different nanodevices ranging from one to a few hundred of nanometers. This revolutionary transitionisbringingInternetofThings(IoT)toInternetofNanothings(IoNT).Duetoitslimitedcommunicationandcomputationalcapabilities,theenergyavailabilityinnanodevicesisveryscarce,whichleadtovariousresearchchallengesinthefieldofnano-communication.Theenergyconstraintnarrowsdowntheoverallscopeofnanocommunication.Thisresearchworkwillprovideastepaheadandproposeadesignofenergy-efficientroutingprotocol.Thesuggestedsolutionwillincreasetheeffectivenessofnano-communicationtechniquestoachievethemaximumthroughputbyoptimizingenergyharvestingprocedure.Thecomparisonofdevisedsolutionandthestate-of-the-artnanocommunicationtechniqueswillbeestablishedandevaluatedthroughsimulation.TheresultswillbedisplayedanddiscussedtopavethewayforfutureresearchinthedomainofInternetofNanothings(IoNT).


Introduction
In 1965, famous physicist Richard Feynman pointed out the concept of nanotechnology. He believed that in future humans would be able to make more tinnier and powerful devices. In his speech, he gave the concept of miniaturization. In 1974, nanotechnology was de ned as a term, which contains a process of separation, consolidation, and deformation of nanomaterial on nanoscale. After 15 years, in 1980s, K. Eric Drexler took the concept of Feynman that nanodevices can be created by using tiny components and gave the new concept. According to him, these components could duplicate themselves without any computer control [1]. Among most of the other research elds, nanotechnology is another area of research in which the devices are manipulated from few nanometers. e main aim of nanotechnology is to enable these small-scale nanodevices to communicate at a nanoscale [2]. As de ned by Draxel, "nanomachines are the devices that can perform useful functions by using nanoscale components" [3]. e small size of nanomachines makes it impossible to use the traditional antennas and let the nanoscaled devices communicate with each other. As a result, nanotranceivers [4][5][6] and nanoantennas [5,[7][8][9] have been proposed to overcome the said problem. Moreover, these nanoantennas or graphene-based antennas make it possible to transmit the data in terahertz band. Many nanoscale components have been designed to perform simple and easy tasks such as storing, computing, communication, and actuation. Nanoantennas also support electromagnetic communication from terahertz (THz) bands to megahertz (MHz) [10]. ese nanonetworks because of its terahertz bands can be used in many applications such as biochemical weapon monitoring, plant monitoring, and health monitoring, which would not be possible except this [11]. e lowest bandwidth also ensures the maximum range of transmission. It provides low energy e ciency, which is not acceptable for nanodevices. Due to the constraints of size and energy, the signals having long duration cannot be transmitted at nanoscale [12]. In most of the cases, data storage, processing, minimal power, and communication capabilities are the important features of nanonodes. So, the knowledge about energy harvesting mechanism is highly important. Energy-efficient MAC protocol is a good approach for better WNSNs [13]. Moreover, nanodevices hold nanobatteries that store low amount of energy and it is not feasible to manually change or recharge the batteries [14][15][16]. e available mechanisms of energy harvesting like wind power and solar energy are not feasible at nanoscale. For providing energy harvesting to nanocommunication, novel methods can be adopted [17]. A model for piezoelectric nanogenerators has already been designed, according to which the energy required for nanomachines is almost equal to 800 pJ and the required time to reach the maximum capacity of energy is equal to 47 s, but it will become 2361 s; in case, the piezoelectric generators are excited by air conditioning [17]. is study also tells us that 8 packets of 200 bits can be send by a nanodevice with maximum amount of energy harvest, which is very scarce availability of energy. It became difficult to reach maximum transmission rate of terahertz band as nanodevice requires much time to recharge its battery [18]. A comparison between IoT and IoNT has been given in Table 1.
Some other mechanisms for energy harvesting that have already been deployed make use of various factors such as energy consumption rate, energy prediction rate, and routing topology. ese factors can affect wastage awareness and recharge ability to increase the performance of network [19]. By using energy harvesting system, the energy of nanodevice not only decreases over time but also fluctuates from positive and negative. Existing protocols of wireless sensor networks (WSNs) for energy harvesting are not suitable for energy harvesting of nanoscale devices because it does not fulfill its peculiarities.
Research shows that the nanonetwork is applicable on physical things like human body. However, there are some issues that need to be explored in depth such as mobility, location awareness, energy efficiency, and greedy routing protocols for nanonetworking. e rest of the paper will be composed as follows. Section 2 will present the review of the literature on nanonetwork paradigm, and its energy-efficient and energy-inefficient routing protocols have been discussed in Table 2. Section 3 will state the envisaged routing protocol. Section 4 will brief about the performance evaluation and its analysis. Section 5 is the last section that will conclude the overall work and discuss the future work.

Review of Literature
Most of the researchers have presented different nanocommunication protocols. Some of them are given below:

Routing Protocols in Nanonetwork.
High-density, lowprocessing, energy-inefficiency, and small memories are some of the limitations and constraints of nanonodes. Several studies have been conducted that focus on improving the constraint of energy and reducing the complexity of the nanonetworks. ere exist different routing protocols in the literature, and we shall try to explain and categorize them on the basis of energy-efficient and energy-inefficient routing protocols of the network under consideration. As an example, ECR, EEMR, and MHTD are energy aware routing protocols, while TEForward and SLR are energy-inefficient routing protocols of nanonetwork.

Energy-Efficient Routing Protocols.
e energy-efficient routing protocols of nanonetwork are all single-path routing protocols. Here, energy consumption is lower than multipath routing protocols. e reason behind is we always try to find an optimized path to share the network information [31]. Single-path routing protocols reduce the overall energy consumption of nanonetwork and make them energy efficient. In the given section, three different energy-efficient routing protocols for nanonetwork will be described.
(1) MHTD. A multihop transmission decision protocol (MHTD) was designed by Pierobon et al. [32]. e main purpose of this protocol is to fully utilize the network while ensuring the energy-efficiency and better network throughput. e network architecture of MHTD is hierarchical that means the nanonodes work as nanocontroller may have more control over other nanodevices working as clusters or motes.
is protocol deduces that the energy used during multihop transmission is low as compared to the single hop transmission. If it tries to adopt multihop transmission, then the energy of each nanonode will be optimized as for the distance of single hop that automatically maximizes its throughput.
Dynamic time division multiplexing is used in this routing framework, and the process is further divided into four time frames, that is, uplink (UL), downlink (DL), random access (RA), and multihop (MH). As MHTD protocol uses time division multiple access (TDMA), the communication process starts when nanonodes start transmitting data. is process of data transmission comprises of following steps as represented in Figure 1: (a) Nanonode (n) that needs to transmit data sends a request to the nanocontroller using random access subframe. (b) Upon receiving request from nanonode, the probability to save energy is calculated by nanocontroller by using multihop transmission. e probability is shown as P SE (c). (c) After calculating P SE (c), the nanocontroller (c) will make a decision between multihop and single-hop transmissions for nanonode (n). (d) If the decision is to transmit the data using single hop, then the transmission process is performed using uplink (UL), and if the decision is to transmit the data using multihop, then the nanocontroller (c) calculates the neighborhood range of nanonode (n) that termed as NR n . is range is calculated to make 2 Journal of Computer Networks and Communications the balance between network lifetime and throughput of network. Transmission power TP n of nanonode is calculated according to the neighborhood range NR n and the time slot of variable length is assigned to the nanonode (n) for multihop transmission. e nanocontroller (c) sends the TP n and time slot to nanonode (n) in the downlink (DL) frame.
While following multihop transmission, the next nanonode (n + 1) will be chosen as the next hop if it satisfies the criterion: (a) Nanonode (n + 1) has enough memory to hold the data that are to be transmitted by nanonode (n). (b) Nanonode (n + 1) has sufficient energy for the transmission process. (c) e signal-to-noise ratio (SNR) between nanonode (n) and nanonode (n + 1) should be higher than the threshold value of SNR. In MHTD, every next hop is elected on the bases of available energy and the load available in multihop transmission. e computational complexity of this protocol is high and the overall cost of energy is low that automatically increases the overall throughput of the network.
(2) EEMR. e energy-efficient multihop routing (EEMR) uses nanocontroller same as MHTD, but unlike MHTD, the EEMR uses nanocontroller for calculation purposes, yet it reduces the computational complexity for nanonodes [33]. Single-hop range of nanonode is fixed to minimize the computational overhead. e EEMR divides its transmission region in three subregions. Region R1 is a circular area whose radius is the distance between nanonode and nanocontroller. Regions R2 and R3 exist between the onehop range of sender nanonode, but R3 is much closer to the nanocontroller than to the nanonode. In EEMR, the sender nanonode sends the data and the nanonode in R3 receives it and become the next sender node. e procedure of EEMR is mentioned here Figure 2 in detail: (a) Initially, the nanocontroller sends the hello message and records the IDs and locations of nanonodes that send the reply of the hello message. (b) When the sender nanonode has something to send, it checks whether the nanocontroller is in its one-hop range. If it finds the nanocontroller in its one-hop range, it directly sends its data to the nanocontroller. Otherwise, it broadcasts its query message to the neighboring nanonode. (c) e nanonodes in R3 region are the candidates to be the next source node. Upon receiving the broadcast query, the nanonodes in R3 calculate their link cost and send the ACK message to the source node. (d) While receiving the ACK message from source node, the nanocontroller arranges all the link costs in ascending order. e n + 1 node is chosen from the candidate nodes having lower link cost and the forwarding probability is calculated. (e) e source node randomly sends the data to the chosen nodes according to the calculated forwarding probability. A candidate node becomes the next nanonode upon receiving the data.
e EEMR protocol limits the forwarding region with the help of subdivision of main transmission region in three subregions that control the direction for multihoping. Comparatively, the energy efficiency of MHTD is higher than that of EEMR and computational complexity of EEMR is lower than MHTD.
(3) ECR. Wireless body sensor network (WBSN) is the type of network, which uses energy conserving routing (ECR) for the communication within the human body.
is communication among the tissues of the human body is possible only with the frequency of several terahertz (THz) [34]. e communication may face path loss due to the complex and dynamic infrastructure of the human body. is path loss ratio may include absorption attenuation, spreading loss, and shadowing impact. A specific hierarchical strategy has been followed by ECR that includes communication among nanointerface, nanonodes, and nanocontrollers. e routing protocol further divided into two types: one is intercluster and the other one is intracluster routing [11]. e ECR uses multilayers to share its message among several nanonodes as shown in Figure 3.
In the first round, nanocontroller is chosen, from the available nanonodes depending upon the level of energy they have. e nanocontroller then starts sending messages to the nanonodes to its lower layers. e nanonodes calculate the signal strength with the help of RSSI and send joining request to the nanocontroller having the highest RSSI level. e transmission time is calculated and sorted in ECR, and the transmission time is allocated to the nanocontrollers of each layer. In case of intercluster communication, singlehop or double-hop transmission will fulfill the purpose. In case of intracluster communication, more energy is consumed.
is is the reason that ECR has to reselect its nanocontroller every time while sharing the information among several clusters. Nanonodes also consider direct information transmission over double-hop transmission to efficiently use the amount of energy it has. e time allocation of nanonodes and the cross-layer platform helps this  protocol to consume less energy and become collision free. e ECR uses nanocontroller in huge quantity for singleand double-hop transmission, which is a major drawback of this routing protocol.

(4) MDR-RL.
e multihop deflection routing algorithm based on reinforcement learning (MDRRL) is another energy-efficient routing algorithm. MDRRL helps in packet transmission of data to explore the routing paths dynamically [35]. It maintains two tables for the successful routing of data packets. First is the deflection table, which helps to maintain the record in case of invalid entries. Second one is routing table that helps in maintaining the forwarding activities of nanonodes. Two algorithms have been formed to upload the table entries: one is known as on policy for data forwarding and the second is off policy that helps in the feedback updating algorithm as shown in Figure 4. e tables would initially be empty and will be filled upon the start of transmission process. Every nanonode will have its deflection and routing table and will keep checking the next entries while moving to next hop. ere is only one route entry of destination node in the routing table. e contents of route entry are as follows: (1) ID of destination node, (2) ID of next hop, (3) route entry update time, (4) route validity flag, (5) Q value for the destination node, (6) lifetime, (7) recovery rate of nanonode, and (8) destination node's hop count.
Here, flag demonstrates the validity of route entry, it will be activated upon receiving a data packet or an acknowledgment (ACK) signal; otherwise, it remains disable in case of negative acknowledgment (NACK). Q value is the weight of the routing path, and high weight defines large amount of utilized resources. Lifetime is dealt as the amount of time an entry stays in the route table during the transmission process because the route table keeps updating throughout transmission. Recovery rate is used to check the availability of next nanonode by recovering and harvesting the energy. e entries of route table can become invalid while meeting following conditions: (1) e available energy level is insufficient in the nexthop nanonode. (2) e available next-hop nanonode is already in communication process with some other nanonodes, and the remaining buffer and energy level is insufficient for the next data packet to transmit. (3) Channel congestion and modulation error can also be the reason of invalid entries.
In case of data transmission failure, a deflection table is formulated. Deflection table can help the nanonodes to choose some other nanonodes for successfully completing the packet transmission process if the available nanonode is invalid as a next hop. An energy prediction scheme has also been introduced in MDRRL to efficiently predict the amount of energy the next hop has. e nanonodes can share the energy harvesting rate, energy level, and energy consumption rate. MDRRL proved best in terms of energy awareness and packet delivery ratio.

Journal of Computer Networks and Communications
(5) EHNT. On the achievable throughput, energy harvesting nanonetwork in the terahertz band (EHNT) is a complete investigation of electromagnetic (EM) nanonetwork by taking into account the molecular absorption loss and its impact on signal propagation [36]. is protocol used two states of MAC protocol to investigate the behavior of energy harvesting nanonodes. EM communication in nanonodes has been enabled due to recent advancements in nanophotonics, nanoelectronics, and nanoplasmonics. e EM communication is ranging from gigahertz to terahertz but with the lag of high path loss. e communication distance will also be compromised for long-range terahertz communication until high directional antennas are placed for the transmission and reception purpose. To calculate the distance of one hop, the nanonodes behave as a single transmission window of almost 10 THz. e main hurdle of nanodevices is the limited amount of energy available in nanobatteries and the scarcity of available energy harvesting systems in nanonetworks. is energy scarcity and peculiarities of physical layer impacts the throughput of nanonetwork and increases the difficulty level to compute the THz capacity.
EHNT works with two stages: one is mathematical modulation and the second is analytical investigation on the proposed framework. It uses exponential terms to the path loss that includes coefficient molecular absorption loss (MAL) that is dependent on molecular composition and transmission frequency. Secondly, the two-state MAC protocol has been used to consider the energy harvesting or energy consumption while transmitting or receiving data. e energy consumption and energy harvesting determine the allocation in one of the two states that affect the available energy. Two matrices have been introduced, namely, spectrum efficiency and energy efficiency, to establish the relationship between achievable throughput and abovementioned specificities. With the help of stated relationship, the upper bound of achievable throughput of nanonetwork in terahertz band has been presented.
is presentation describes that if the density of nanonodes, its bandwidth, and transmission power increase, then the achievable throughput will also increase. e power reduction in EM waves is the path loss ratio when it propagates in the medium. is molecular path loss contributed in the molecular absorption loss and spreading loss.
Energy is another challenge for nanodevices that challenges the performance of nanonetworks in terahertz band. e size of nanobatteries is too limited, and it requires nanodevices to harvest the energy from its environment to operate smoothly. In EHNT, piezoelectric nanogenerators have been used to harvest the energy, converting it into electrical energy, and then to store them in the array of nanocapacitors to power the whole network. It is also considered in the proposed model that there is no need to wait for the nanocapacitors to be fully charged to consume its power. e real-time harvested energy is not enough to use in the data transmission process. e harvest-store-use (HSU) architecture is preferred over harvest-use (HU) architecture. e HSU harvests the energy and stores it into its nanobatteries before using it in any operation, while HU considers that the harvested energy is sufficient to fulfill the needs of the nanodevices working in real time. A MAC twostate model has been proposed in EHNT as shown in Figure 5, and its perspective is to have two states for nanonetwork. A nanodevice at a given time can be busy or idle, so the left state is harvest-store state. As the name suggests the nanodevices will only harvest the energy and will store that in its nanobatteries, no data transmission is involved in this state. e right state is harvest transmit or receive (HTR) state, which refers to harvesting, transmitting, or receiving data at a given time. at means the energy that has been harvested will be utilized at the same time, and if the harvested energy is not sufficient, then the energy from the nanobatteries will be used for data communication purpose.
If there are no data to transmit, the nanonode will shift to the state of HS and start harvesting and storing the energy. When there will be data to transmit, the nanonode will again switch to the state of HTR. is switching of states depends on the data traffic of nanonetwork and availability of data that needs to be transmitted.

Energy-Inefficient
Routing Protocols. Energy-inefficient routing protocols in nanonetwork use flood-based or multipath routing protocols [37]. e TTLbased efficient forwarding (TEForward) is the only routing protocol that uses single path for routing purposes. e multipath routing protocols consume a lot of energy and create redundant information because it allows data to be transmitted on multiple paths at a given amount of time.
ese protocols are further divided into two data forwarding schemes. First routing scheme is limit flood area-based routing that forwards the data in a partial area between sender and receiver nanonode. at is the reason the limit flood area-based routing uses less amount of energy. e dynamic infrastructure-based routing categorizes the nanonodes into user-based or infrastructure-based nanonodes. is division is dependent on the quality of data packet that has been received by a nanonode and increases the computation complexity at each nanonode.
e aim is to reduce the nanocontrollers that receive the packet under dynamic channel states [38]. TEForward developed for polling-based multihop electromagnetic WNSNs in IoT [38]. e nanocontrollers in EM-WNSNs backhaul the data from the nanonodes to the IoT gateways using backhaul tier. e routing protocol of TEForward periodically transmits beacons with the help of IoT gateway [39]. e latest information of routing protocol is beacon duplication count. e TTL value of nanonode is used for selecting the next nanonode to forward the data packet. e process repeats every time to select next hop, forward the data to that hop, and diffuse the data to the targeted hop as shown in Figure 6.
Nanocontrollers have two variables: one is used as number of neighboring nanocontrollers of every nanocontroller denoted as NS and the second one is accumulated number of nanocontrollers in the transmission path denoted as NF. Both NS and NF are set to zero by the nanocontrollers while flooding the beacons. Following are the steps taken by nanocontroller that receives the beacon: (a) In the first step, the nanocontroller takes the TTL value of beacon packet (TTL p ) and sets its TTL value obtained from the beacon packet (TTL s ).
(b) e nanocontroller initializes the value of NF to NP and resets the value of NS.
(c) After resetting, the nanocontroller records the MAC ID of beacon sender and sets it as beacon forwarder. (d) en, nanocontroller aggregates the values of NS and NF, resets the value of NP, and broadcasts the beacon.
In case, a duplicate of beacon, which is received the nanocontroller, performs the following steps: (a) If duplicate of a beacon is received, the nanocontroller updates the value of NS. It perceives the duplicate number of beacons that increase the number of neighbors of nanocontroller.
(b) Secondly, the nanocontroller checks the value of TTL p and TTL s either the duplicate beacon comes from the nanocontroller closer to the IoT gateway or not. (c) e value of NF and NP is then compared by the nanocontroller to check the level of energy of nanocontroller from where the duplicated beacon comes from with the last forwarding nanocontroller, and then drop the duplicated beacon.
Finally, selected nanocontroller directs the packet to the IoT gateway with maximum energy. All message packets will be forwarded effectively with minimum computational complexity, but it does not consider energy consumption of nanonodes. When a nanocontroller sends a data packets, all the nanonodes surrounded by that specific nanocontroller will receive that packet unnecessarily, which consumes extra energy.
(2) RADAR Routing. In RADAR routing, the nanonodes are divided into a circular area and an entity is placed at the center of the circle. e entity constantly releases the radiations at a specific angle, and all the nanonodes within that specific radiation range become the active nanonodes. e same has been described through Figure 7.
While sending the data packet, the radiation area is filled with active radiations that minimize the number of data packets that needs to be transmitted. Packet loss is the major drawback of this routing protocol because at the receiving side, the receiver nanonode should be in the radiation angle for successful reception of data packet. is issue needs to be sorted out to increase the success ratio of this routing protocol. Another issue of RADAR routing protocol can be the amount of energy of a nanonode to be in the active state and to successfully receive the data packet [40]. e data packets can also collide while moving outward from the central entity as it increases the amount of active nanonodes. RADAR routing cannot work well for large-scale networks.
(3) CORONA. A coordinate system is used in coordinate and routing system for network (CORONA). e addresses of the coordinate system are designed with the help of softwaredefined metamaterials (SDM). Metamaterials are used with the anodes and are artificial materials that cannot be found in natural environment. SDM is helpful in providing energy resources that enhance the usability of the network in industrial and engineering domain. Renewable energy-efficient resources can also be created for nanonodes. It helps in minimizing the number of data packets and reduces the redundancy and collision among them [41]. All the nanonodes are assumingly equally distant in a rectangular area and dynamically driving coordinates [42]. In the setup phase, four nodes are placed in each corner of the rectangle as shown in the Figure 8(a). e nanonodes set the coordinate by using hop count from its anchor nanonode and start sending the data packets in a specific sequence Figure 8(b).
If a node A wishes to send data to the node B, then all the nanonodes between A and B retransmit the data packets by using flooding mechanism. is flooding is possible only in an arc shape. Two facing anchor nanonodes cannot be selected at a time for the successful completion of data transmission as shown in Figure 8(c). e coordinates of nanonodes are basically the hop count of each nanonode to its anchor nanonode.
(4) SLR. Extended form of CORONA is stateless linear routing (SLR), which uses SMDs for coordinate-based routing in 3D nanonetworks and the data are routed in linear path [43] as shown in Figure 9. e transmission space is cubic, and there are eight anchor nodes placed at the vertexes. In the setup phase of coordinates, the anchor nodes send data packets in a sequence and the hop count from sender to receiver node would be stated as distance. ree anchor nodes will make a zone. e nanonodes in the same space set the coordinates from the distances of three anchor nodes.
When the coordinates and distances have been set, the calculation phase started. SLR first checks the nodes to be in a straight line, and then, it retransmits the data. Distances of three anchor nodes will make a viewport. Selection of optimized viewport is mandatory to choose the best viewport. As SLR yields for linear routing path, so it increases the parallel transmission within the nanonetwork [44]. e drawback of SLR is to store the hop counts of eight anchor nodes that automatically increase the amount of storage for each nanonode.
is routing protocol uses a simple network architecture and hence achieves high scalability and energy efficiency. In LSDD, flood-based communication technique has been adopted and scalable communication is offered.
us, it provides simple and low-cost architecture for nanonodes [45]. Just like SLR, a centric entity is placed to sense the data and to transmit it to any external entity. Upon receiving the data packets, nanonodes will calculate their packet statistics as parity error (PE), duplication error (DE), and reception success (RS). en, they will be classified as passive auditors or retransmitters [46]. PE will be set if the received packet has failed its integrity. DE will be set if the packet has been received successfully and passed its integrity   Journal of Computer Networks and Communications check but have been received more than once. Finally, RS will be set if the packet received successfully, passed the integrity check, and received for the first time. e sequence of statistics of the received packets is formalized by Misra-Gries algorithm [47]. is algorithm is the combination of two algorithms further comprises of more than one passes and helps to find out the values that occur more than n/k times in an array. To check the ability of a nanonode work as retransmitter, it is assessed by its most frequent items in the sequence. If the nanonode classified as retransmitter, then it will flood the data in all coming packets. If it is classified as auditor, it will not take part in the retransmission process. e LSDD does not limits the data transmission area and hence leads to the overhead of increased area.
(6) DEROUS. e deployable routing system (DEROUS) has been proposed for the applications in SDM [48]. It assumes all nanonodes to be identical and set a central node as a beaconing node. After that, the beacon node sets the 2D addresses of every nanonode available in nanonetwork. e central node keeps sending setup packets and the other nanonodes keep updating its distance by the hop counts. Like LSDD, DEROUS also records the packet status during setup phase and mark it as success or failure [45]. e nanonodes classify themselves as infrastructure or user by checking the packet quality at its reception. Meanwhile, the hop count is considered as the radius of the circle assuming the central node as a beacon node. is transmission process considered to be instant and lightweight because of its completion with three beacon packets. e simulation results of DEROUS exhibit that the infrastructure node behavior can be predicted with the help of transmission radius of the nanonode. e diffusion direction can be divided into two categories: one is angular diffusion and the other one is radial diffusion. If there would be a large transmission radius, then the retransmitter nodes will form a circle centered by the beacon node. If the transmission radius is low, then a radial line will be formulated as shown in Figure 10. e diffusion direction depends upon the transmission radius of nanonodes that can also be changed while changing the transmission power.
When the nanonode sends a packet, there will be two possible scenarios to retransmit that packet. e nanonode will retransmit the packet in radial direction with low power if the radius of a nanonode is in between the sender and the receiver nanonode. e nanonode will retransmit the packet in angular direction with normal power if the radius of a nanonode is same as of the sender and the receiver nanonode [49]. DEROUS dynamically sets the radial paths for packet transmission that increases the affectivity of peer-topeer communication, limits redundant data transmission, and increases the level of transmission path multiplicity. It also limits the transmission in a circular area that eventually limits the number of nanonodes taking path in a transmission process. A drawback of DEROUS is that it cannot form a shortest path retransmission that may increase the transmission delay.
(7) OR-DMC. A protocol for opportunistic routing in diffusion-based molecular communication (OR-DMC) has been proposed in nanonetworks based on concentration gradient and distance information [50]. A simple diffusionbased molecular nanonetwork has been considered comprising of several nanonodes that will communicate to a nanogateway using multihop communication technique. A pulse-based modulation scheme is used for information exchange. If a nanonode wants to send the information, it generates pulse of molecules that will create a spike in transmission medium. ere are two techniques for pulsebased modulation that have been used in OR-DMC. First is energy detection, which will be measured by receiver nanonode. e detected energy will be measured as integral of molecular concentration or a specific amount of time. e received pulse energy will be compared with the threshold value. e second technique is amplitude detection. e receiver nanonode measures the variation of local molecular concentration over a specific amount of time. e received signal is then decoded and compared to maximum concentration to a threshold value.
is maximum concentration is known as pulse amplitude [51].
Unlike other single-hop routing protocols, OR-DMC chooses the highest priority forwarder by comparing all available candidate forwarders by using different types of information exchange. It also uses coordination scheme to ensure the unique forwarder. e OR-DMC comprises of two phases and exploits concentration gratitude and distance information. e first phase is training phase in which every nanonode calculates its distance from its neighboring nanonode available in its communication range. e next phase is routing phase in which nanonodes transmit the messages. It has been assumed in OR-DMC that all the nanonodes within the communication range are part of forwarder set. at makes the creation of forwarder set easy and hurdle free. A two-hop scenario is considered to share the information form sender to gateway, which is out of its communication range as shown in Figure 11. To select the next forwarder, it is always assumed that the nanonode closer to the sender node is the best node as a next hop. However, it is clear that only distance-based routing will not guarantee the delivery of message to the gateway. To ensure this, another parameter has been exploited, that is, concentration gradient. OR-DMC assumes another type of nanonode named as beacon node that is considered to be more advanced than traditional nanonodes. e beacon node is a gateway node that emits beacons in the environment periodically with high concentration during the beaconing period that would be able  to reach to every nanonode within the nanonetwork. is beaconing period is decided depending upon the size of nanonetwork and followed by transmission slots having time duration. Each nanonode keeps measuring the concentration of beacons and records it. Every message has a concentration signal.
is is transmitted from a sender node. Here, the concentration signal will decide the nanonodes closer to the gateway node within the communication range and takes part in the message forwarding. To verify that the message has been forwarded a simple acknowledgment-based coordination scheme has been used. If highest priority node successfully transmits the message packet, it generates an ACK, and if it fails to transmit the message packet over a specific period of time, then no ACK will be generated. e nanonode having next higher priority will forward the message. In proposed OR-DMC, the intermediate nanonodes have to determine the following: (a) Eligibility to take part in the forwarding process or not. is eligibility depends upon the concentration signal. (b) Priority to take part in forwarding process. is priority will be dependent on time slots to wait.
To check the priority of eligible nanonodes, OR-DMC enhances the training phase. Rather measuring distance, the concentration gradient information is also taken. For the said purpose, the nanonode sends a concentration signal before sending the molecular spike for measuring distance.
is extended method will provide distance information as well as orientation information. By the end of this, the nanonode will not only know the distance information but will also know the number of nanonodes in its forwarder set, which are located closer to the gateway.

Proposed Network Modeling and Assumptions
In this research work, a scenario has been considered where remote server, nanomembers, nanorouters, nanoclusters, and nanointerface have been considered as shown in Figure 12. e assumption is that the nanonodes are moving at a certain velocity, but the nanointerface and nanorouters are fixed. Reclustering has been forbidden to avoid the overhead.
In the proposed work, a remote server has been introduced that sends the details to the nanointerface that needs to be shared with the nanonetwork. To keep the method simple and understandable, a simple request/response method has been considered here at the first stage of communication between IoTand IoNT. Upon receiving message from server, the nanointerface will forward the message to the nanorouters. e nanorouter then shares the transmission message to the relevant nanoclusters, and the similar hierarchy will be followed for the response purposes as shown in Figure 13. e number of requests generating from the remote server and the pace at which the requests are arriving should also be considered. e nanonodes cannot be available at every given time for the request/response purposes. e messages are further divided into four categories for better understanding.
(a) NeighborDiscovery message: this message is used by the nanorouter to find the active nanonodes of specific nanocluster. e message will contain certain number of bits and is represented by N ND . (b) EnergyFeedback message: this message is a response message of NeighborDiscovery message. is message will present the amount of energy stored in relevant nanonodes. N EF will be used to represent the number of bits of this message. (c) Request message: this is a query or a request message.
is message will be generated by remote server and shared to the nanointerface. e nanointerface then forwards this message to the nanorouters; thus, it will be shared to the selected nanocluster controller. e size of Request message is in bits and will be expressed by N R .

(d) Answer message: it is an Answer message of the
Request message. is message will be generated by relevant nanocluster controller as a feedback message of the request forwarded by remote server. is message in bits will be expressed by N A .

Nanocluster Formation.
Nanoclusters have been composed for high energy efficiency and stability of nanonetwork. A nanocluster contains nanomembers/nanonodes. Initially, to start the communication energy levels will be compared and a nanonode will be selected on the basis of higher energy to start composing a nanocluster. After that, the chosen nanonode will help to aggregate the data and sends that data to the nanorouter. e intercluster communication is possible with higher power transmission range, and intracluster communication is possible with lower power transmission range, respectively [29]. e round Robin technique is used to choose the nanonode for the next round. e selection of nanonode depends on its residual energy, that is, Energy residual i from the relevant nanocluster, that is, Energy max WNC � Energy residual i Energy max . (1) If the chosen nanonode does not find another nanomember having large WNC, then the same nanonode will perform the next round. e newly selected nanonodes send the message to the nearby nonmember nanonodes and the join request is sent to the respective nanonode of the specific nanocluster with high RSSI level. en, the nanonode marks itself as a member of that nanocluster. e procedure continues until all the nanonodes have been assigned to the newly chosen nanonode. An algorithm has been designed for formation of nanocluster has been given below in Algorithm 1.

Energy Harvesting Aware Routing Protocol.
In the communication method, the nanonode may be in active or idle state depends on the energy available. If the level of energy is higher than the threshold value, that is, Energy threshold , the nanonode will be in active state; otherwise, it would be idle. e energy threshold value can be computed as follows: Energy threshold � α Energy rx N ND + Energy tx N EF + Energy rx N R + Energy tx N A . (2) Due to the limited amount of energy and uncertain behavior of nanonetwork, it is impossible to guarantee time synchronization. So, no specific time structure is implemented in the proposed work. Acknowledgment strategies in the MAC layer will help to deal with the said problem. Upon receiving a message from upper layer, the nanonode will transmit it to the physical interface if it is in active state. e collision probability is zero despite of the absence of channel sensing mechanism. e reason is that the time to transmit a packet is much smaller than the time interval  between two consecutive transmissions and propagation delay. e acknowledgment depends on the handshake mechanism, which deals with energy feedback message and exchange of neighbor discovery. e nanorouter is used to broadcast neighbor discovery message and collects the time interval message from all the corresponding nanonodes within the time interval where T tx N ND is the transmission time of neighbor discovery message, T tx N EF is the transmission time of the energy feedback message, and TT is the propagation delay of the specific nanocluster. Here, energy feedback message is the last calculated energy level by the nanocapacitor. To save the energy of other nanonodes by the reception process and to avoid unwanted reception of messages, every nanonode will deactivate its physical interface for the time interval of After completing the handshake mechanism, the nanorouter starts exploring the nanonode to which it has to forward the request coming from external monitoring device. It forwards the message request comprising of nanocluster member ID, nanocluster ID, and residual energy of nanonode as mentioned in Table 3.

Tailored MAC and Routing Protocol for Energy Efficiency in THz Band.
e energy harvesting aware protocols aim to minimize the level of energy used in nanoclusters. Let RR, T RI , and ΔT are aggregate rates of request from monitoring device to nanorouters, time to receive a request from nanointerface to the nanorouter, and the time interval between two consecutive message requests, where At the end of handshake mechanism, the nanorouter checks the amount of energy available in nanocluster, that is, en, it evaluates the amount of energy left upon the reception of new request, that is,  is quantity can be obtained with the help of energy provided by the nanonode in the past. e energy consumed to transmit M bit data from nanorouter Energy (N R ) and the energy consumed for sending N A bits will be Energy (N A ). Let Energy tx p , Energy rx p , Energy tx (x), and Energy rx (x) are required energy for pulse transmission, required energy for pulse reception, required energy to transmit any x bits, and required energy to receive x bits, respectively. Here, the amount of energy for pulse reception would be 0.1 pJ and amount of energy for pulse transmission is 1 pJ.
If x bits are considered as a packet to receive and transmit, then the energy required to handle will be Energy tx (x) � Energy tx p (x)(ω), Here, ω is the probability of 1 to occur within the stream of x bits. Generally, ω is considered as 0.5 because all the symbols have equal probability to occur. e harvested energy during ΔT will be HEnergy Residual (T RI ), that is, Here, β i is set to 1 if the ith node is the destination node; otherwise, it will be 0. communication is the latest explored domain of frequency range in EM spectrum and it suites to the nanocapabilities, having larger bandwidth [24,40]. e communication options for nanonodes and nanonetworks are very limited. Novel approaches like piezoelectric nanogenerators have been proven helpful and most advantageous in this regard.
ese are made up of tiny ZnO wires, nanocapacitor, and a nanocircuit. Nanowires work on compressed release cycle, and they start charging when they bend and store that charge upon release. Mechanical vibration like heartbeat or air conditioning is used for this compressed and release cycle [22]. ere exists a model in the literature for energy harvesting in nanogenerators [8], which states that the voltage of nanocapacitor can be calculated when we have i no of compress release cycles, that is, Vol c (i cr ), Here, Cap c , ΔQ, and Vol h are capacitance of nanocapacitors, voltage of generator, and the harvested voltage per cycle, respectively. Now because the nanotechnology has certain constraints, the typical values will be used here and these are Vol h � 0.42 V, Cap c � 9 nF, and ΔQ � 6P c . e accumulated energy will then be expressed as follows: e time required for nanocapacitor to recharge is dependent on the number of compressed release cycles by the mechanical vibration. As an example, if vibration is due to heartbeat, then fre cap � 1 Hz, and if air conditioning would be the energy source, then fre cap � 50 Hz. e nanodevice induced in the human body has less energy available; for example, it merely ends up sending 8 packets of data having the size of 200 bits. In addition to this, the time required to recharge the nanodevices is too high that it becomes difficult to reach to the higher data transmission rate, that is, terahertz. So, energy harvesting mechanism is needed for the nanodevices specially injected within the human body or at the places where energy issue is evident.
that is, e aim of proposed model is to achieve the maximum level of energy available by choosing the i th nanonode after (fre Cap /RR) time interval. For this, the following condition should be satisfied: If we put in the values of Energy Residual (T RI + (1/RR)) and HEnergy Residual (T RI ) in the above equation, then  e greedy algorithm has been used to perform with minimum number of resources such as energy limitation, less memory/storage consumption, and low computational power. e flooding routing technique is an inefficient way of communication in nanonetworks. at is why, a smart method has been proposed that uses limited amount of resources to forward the data packets from its source to its destination. IoT and WSN use geographical routing protocol, and the authors took the inspiration and proposed a forwarding scheme that reduces the number of nanonodes taking part in the message forwarding process. In the underlying protocol, all the nanorouters will start broadcasting messages in the early stage and the nanonodes will choose the relevant nanorouter by broadcasting the transmission message. e nearest nanorouter will forward the data packet through nanocluster. e protocol is divided into following steps to make it more understandable.
(1) Nanorouter selection (2) Next-hop nanonode selection (3) Data transmission phase Following is the detailed description of abovementioned process: (a) Selection of nanorouter: the purpose of this step is to connect every nanonode to the nanorouter. All the nanonodes will calculate their current distances from the nanorouters available in their networking domain. Based on the smaller distance available from the set of distances, the nanonode will pick its nanorouter and broadcast its ID to which it is associated ( Figure 14). (b) Selection of nanonode from the nanocluster: after the completion of first phase, every nanonode will have its nearest nanorouter. ere are two ways to reach to its closest nanorouter as given: (1)  away from the sender nanonode, then every nanonode has to choose the nearest nanonode as next hop that will be a forwarding node until the data packet reaches to its destination Figure 15. e criterion to choose the next hop nanonode is as follows: (1) e neighboring should have the same nanorouter ID as the sender nanonode has. (2) e neighbor selected should be the nearest nanonode to the nearest nanorouter.
(c) Transmission phase: there will be the addition of two new fields in header of each data packet, that is, nearest nanorouter ID and next nanonode hop ID to carry the information needed to make forwarding decisions. As we know that all the data are destined to the nanointerface, there exist three cases to transmit a data packet. e cases are given as follows: (1) If the nanointerface is within the transmission range of nanonode, then nearest nanorouter ID and next nanonode hop ID will be the same, that is, nanointerface ID. is will overall reduce the number of nanonodes to participate in the transmission process ( Figure 16). (2) If the nearest nanorouter is within the range of nearest nanonode, then nearest nanorouter ID and next nanonode hop ID will be same and will become the ID of nearest nanorouter ( Figure 17). (3) If the nanointerface and the nanorouter both are not in the transmission range of sending nanonode, then next nanonode hop ID will be the ID of nearest nanonode. e data packet will be forwarded to that nanonode and will keep moving to the next-hop nanonodes until it reaches to the nearest nanorouter. e data    packet will then be forwarded by the nanorouter itself ( Figure 18).

Performance Analysis
e performance of the conceived protocol has been evaluated through computer simulation using different networking conditions. e comparison between general flooding-based routing mechanism and the proposed solution has been made. e comparison scheme has been considered in different contexts of nanonetwork [18]. e results have been shown in the form of graphs and are derived to study the system behavior. To avoid statistical fluctuation, these simulation results are averaged over 60 runs. e simulation parameters are mentioned in Table 4.
From Figures 19(a)-19(c), it is clear that the available energy and request rates are inversely proportional. With the increment in the amount of one parameter, the amount of second parameter decreases automatically. e reason being is that nanonodes use high energy to achieve the increased amount of requests. Moreover, the increase in the number of nanonodes per nanocluster minimizes the amount of energy stored in them. e charge stored in nanocapacitors indicates the number of nanonodes available in a nanocluster. e quantity of available nanonodes in each nanocluster also shows the same results as shown in Figure 19. e results show that the energy level decreases in nanonodes as the request rate per nanocluster increases or if the network size increases.
Here, Figures 20(a)-20(c) depict the packet loss ratio of the nanonetwork. e packet loss ratio can be fluctuated by the rate of requests coming from the external monitoring device or by the active number of nanonodes available in the nanocluster. One can easily observe from the simulation results that the packet loss ratio increases within the nanonetwork, if the rate of request increases over time. is increment is due to the consumption of energy by nanonodes as compared to the harvested energy to fulfill the rate of requests. e increase in the number of nanonodes also helps to satisfy more and more requests coming from external monitoring devices. e high number of nanonodes also makes sure high number of active nanonodes at a time that can work to satisfy the needs of the network. e proposed model also makes sure the less amount of packet loss ratio at the application layer and improves the overall behavior of external monitoring system. e results shown in Figures 21(a)-21(c) elaborate the rate of transmission at the physical layer of every nanocluster in nanonetwork.
e simulation results depict that the transmission rate increases when a number of transmitted packets increase. e rate of transmission expected from the nanonetwork is 40 bits per second to 60 bits per second that is quite different from traditional network operating in terahertz channel. e results also describe that how proposed model works well as compared to the flooding technique in all the scenarios that have been considered here. e results in Figures 22(a) and 22(b) elaborate the mean hop count (distance) [27] by comparing geographical greedy routing with the flooding technique. e results depict that the mean distance is way greater when comparing it to the greedy algorithm. In Figure 22(a), when the range of transmission is equal to 0.01 m, the mean distance in flooding scheme exceeds to 115 hops. In Figure 22(b), the mean hop count in simple flooding exceeds to 71 hops when the transmission range is equal to 0.005 m. While using greedy strategy, the nanonode chose the next hop or next nanorouter closer to the next nanorouter or nanointerface.
is overall reduces the energy consumption and distance comparative to flooding scheme.

Conclusion
In this work, the interaction between IoNT and monitoring devices of IoT has been described. Energy harvesting protocol has been designed, and a simulation has been run to check the competency of energy-efficient system. e proposed process checks the energy efficiency, and it also picks the greedy moves to choose the best route. From the behavior of proposed model, it has been observed that if the number of nanonodes increases in the nanocluster, the transmission rate increased gradually with low amount of energy consumed. It also shows the low amount of energy harvested limits the overall performance of IoNT. is work is implemented on a descriptive example that elaborated the working. A total number of requests coming from monitoring devices and the size of the network impact the behavior of the system. e output is shown in the form of graphs with different parameter values. e results show the change of behavior in the entire network by using proposed solution as compared to the flooding-based traditional routing mechanism. In the future, the obtained results will be used for the optimization of underlying solution. e behavior of conceived solution will further be investigated in more realistic, complex, and specific scenarios.
Data Availability e data are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that they have no conflicts of interest.