1. Introduction
This proposed work makes a proposal for a Dual Hash Authentication (DHA) [1] that can be used to ensure the safety of routing in mobile ad hoc networks. A comparison is also made between the proposed mechanism and other methods already in use, and the results obtained are plotted for a number of different parameters while malicious nodes are present. In this proposed work, a proposal and discussion are provided regarding the identification of malicious nodes through the use of a secured routing authentication. In a wireless setting, any nodes that are misbehaving will have their ability to participate in data transmission severely constrained. It is possible that this DHA will experience a significant degree of latency in the data transmission. DHA presents the delay combating Self Healing and Optimizing Routing Technique (SHORT) in order to get around the delay that it experiences. In addition, DHA and DHA-SHORT [2] are contrasted with the previously conducted research.
1.1 Dual Hash Authentication
This suggested technique includes the use of a hash chain for the purpose of authenticating the hop count of a Route Request (RREQ) and a Route Reply (RREP). [3] This is part of the methodology. It makes it possible for every node that receives the message, including an intermediate node and the node at the destination, to check that the hop count has not been reduced by an adversary in any way. A hash chain is created when a one-way hash function is applied many times in succession. Because a rogue node might relay a message without raising the hop count, the hop count authentication using a single hash chain is not foolproof. Because of this, the use of DHA is able to circumvent the limitations presented by single hash chain authentication. Instead of relying on digital signatures, the quick and efficient dual hash function is used to authenticate routing information. Assuming for the sake of argument that no two compromised nodes are working together and that they are not more than two hops apart from one another. In this dual hash authentication, one hash function is used to authenticate the routing packets that have been received, while another hash function is used to prevent the present nodes from changing the routing information themselves. [4] It is possible for a hacked node's surrounding nodes to instantly identify suspicious activity in the event that the routing information was altered. In the first stages of the process, each node will make use of the local node group in order to disseminate the common secret to the two hop node groups that it is connected to. In this, every node is tasked with disseminating a shared secret across the other nodes in its group of two hops. This secret key is guarded against its one-hop node group in order to maintain its secrecy. Private and public keys are associated with every node in the network (widely known). The source node creates a random key known as Ks and then encrypts it using the public keys of the nodes that are within two hops of it. After being given the key that has been encrypted, each node decrypts it using the private key that corresponds to it in order to get the shared secret key [5] Ks. Because of the mobility, the topology of an ad hoc network may vary, along with the organization of its local node group, and the distribution of the shared secret keys can be altered correspondingly. When some new nodes join the two-hop node group, the source node is required to distribute Ks to those new nodes. Additionally, if some nodes inside the two-hop become members of its one-hop node group (due to mobility), the source node is required to refresh and redistribute its Ks.
2. DHA Algorithm
The public one-way hash function H(.) is used to authenticate the RREQ twice, and thus, the routing packets carry not only the RREQ but also two hash values in addition to the RREQ (H1, H2). It is up to the H2 to determine whether or not the received routing packet has been altered, whereas it is up to the H1 to stop the present node from making any changes to the packet. The algorithm is described in the following way:
Step 1: Generate RREQ [6] from the source node using the following format: RREQ=S, L, H, R where S stands for "Source Identity."
L- Sequence number (RREQ) H - Count of hops
R - Information about routing
The second step is for the source to multicast S, L+1, H, R, H1, and 0 to its multicast group.
When a source node multicasts an RREQ packet, two hash values, designated H1 and H2, are appended to the packet. In the beginning, the hash value H1 is produced, and the value of H2 is set to 0 (this is the case only when it is broadcast by the source node).
Step 3: Any intermediary node that is a part of this group is able to validate the legitimacy of a packet using H1 and H2 respectively.
H1=H (S\L+1\H\R\Ks)
The source identity, the sequence number, the hop count value, the routing information, and the secret key Ks are all included in H1.
Ks is an abbreviation for the secret key that is shared between the two hop nodes and the source node [7].
Step 4: Before forwarding the packet, the intermediate node will increase the hop count by 1, copy H1 to H2, and compute the new H1. In other words, H1 = H (SL+1H+1RKi); H2 = H (SL+1HRKs), where Ki is the common secret key that is shared across intermediate nodes.
Step 5: Send the routing packet with the freshly created hash values to the multicast group for which it was intended.
Step 6: Upon receiving the routing packet "SL+1H+1RH1H2," nodes inside the group may utilize "S," "L+1," "H+1," and "R" in conjunction with a public hash function to compute H(SL+1HRKs).
The seventh step is to compare this value with H2 and determine whether or not the routing packet has been changed by an intermediary node.
Step 8 requires that the H2 value be forged if the packet is modified by an intermediary node, which must be done before the packet may be sent.
The same approach may be used for RREP when going from the destination node back to the source node. Figure 3.1 presents a flow chart that depicts the DHA algorithm's processing steps. In the beginning, the Route Request [8] (RREQ) packet is generated by each node. For every packet that is created, the hash values H1 and H2 are combined together and then multicasted. After receiving a packet, every intermediary node does a check to ensure that it is legitimate. If the packet is confirmed, the hop count will be increased, and the packet will be broadcast; otherwise, the route request will be generated once again. Finally, examine the contents of the RREQ and H2 fields, and if either of them has been changed, signal that the source material has been modified. If neither of those fields has been changed, send the packet along until it reaches its destination.
On-demand routing techniques provide solutions that are both scalable and cost-effective for the process of routing packets in mobile wireless ad hoc networks. Due to a lack of information about the global topology and the mobility of nodes, the pathways that are created by these protocols may stray farther from the path that is considered to be the ideal path. The optimality of the network's routing has an impact on both its performance and its energy consumption, particularly when the load is high. This proposed work provides Self-Healing and Optimizing Routing Techniques (SHORT) for mobile Adhoc networks. [9] SHORT is for Self-Healing and Optimizing Routing Techniques. While the SHORT protocol is being used, all of the adjacent nodes keep an eye on the route and work to improve it if a more advantageous local sub-path becomes available. The SHORT improves performance in terms of bandwidth as well as latency without imposing a considerable extra financial burden on the user.
Scalability becomes a difficulty for the existing ad hoc routing protocols as the size of the network, as well as the average length of routes, continues to grow. Table-driven proactive routing methods call for periodic marketing and the widespread broadcast of connection information. These details are not appropriate for use in more extensive networks. When it comes to routing in bigger ad hoc networks, on-demand routing protocols are more effective because they automatically keep track of the routes that are immediately required and begin the process of path discovery whenever a route is required for the transmission of a message. This method has been implemented in a number of notable ad hoc routing protocols, the most notable of which are AODV [10] and DSR. When using AODV, the routing table at each node stores the information about the next hop router for a destination, and it uses this information for as long as the next hop router is still operational (originates or relays at least one packet for that destination within a specified time-out period). In order to cut down on the delay that is often experienced, DHA [11] makes use of the SHORT method.
Take into consideration a situation in which there are six nodes in the network, numbered one through six and represented in Figure 6 along with some topology (an ad hoc network does not have a well-defined topology of its node mobility) [12].
Initial paths are discovered by the route discovery process from node 1 to node 6 in Figure 2 by passing through the intermediate nodes 2, 3, 4, and 5. The transmission of the packet from node 1 to node 6 involves a total of 5 hops. The mobility of a node will change over the course of time, which will ultimately result in a deviation from the original path, as depicted in Figure 3. When compared to Figure 4, the amount of delay experienced from node 1 all the way to node 6 is significantly higher. The shortest path algorithm is required in order to reduce the delay that is caused by the mobility of the nodes.
3. Experimental Results and Analysis
The Network Simulator (NSv2.28) [13] tool is used in order to implement the proposed DHA algorithm, and it is configured with the following parameters, which can be found in Table 1. For the simulation's network traffic, the Constant Bit Rate (CBR) [14] and User Datagram Protocol (UDP) are the protocols that are used.
Different graphs are plotted for the values that are obtained from the simulation, and these graphs are based on the input parameters. The plot of the Packet Delivery Ratio (PDR) versus the number of nodes is displayed in Figure 5. In this case, a maximum of 70 nodes are taken into consideration, and the pause time is 0.6 seconds. The result demonstrates that the PDR [15] of nodes decreases when there is an increase in the number of malicious nodes. The percentage of 10% of the total number of nodes is calculated taking into account the number of malicious nodes. Both the existing algorithm and the proposed algorithm have a nearly identical amount of packet delivery ratio with one node acting as an intruder in the beginning, when the number of nodes is at its smallest. At the same time, the PDR for DSA and CBDS falls by a significant amount whenever the number of nodes increases in proportion to the increase in the intruder. The proposed DHA performs better than both the DSA and CBDS that are currently in use. When the PDR falls below 80%, the simulation will immediately put a stop to the increase in the number of intruders
The comparison of throughput and the number of nodes for the existing DSA, CBDS, and proposed DHA methods is shown in Figure 6.
The throughput increases for DHA as the number of malicious nodes increases when compared with DSA and CBDS. DSA and DHA [16] provide better security and throughput when compared to CBDS with an almost minimal number of nodes. The variation in the throughput occurs when the regular nodes and malicious nodes increase due to mobility. Table 3 shows the throughput comparison of existing DSA, CBDS, and proposed DHA method.
The packet loss decreases for DHA as the number of nodes increases when compared with the DSA and CDBS as shown in Figure 7. Conventional packet loss increases when the number of regular and malicious nodes increases [17]. The authentication mechanism of DHA decreases the packet loss when compared with DSA and CBDS and the comparison for DSA, CBDS, and DHA is shown in Table 4.
The increase in delay for DHA is considerably less when compared to DSA and CBDS as shown in Figure 8. The increase in the delay is due to the increase in the number of nodes and it has to be brought down. So a delay-efficient algorithm has to be incorporated to encounter the significant delay. Even though DHA has a small delay variation with DSA and CBDS, it has to be reduced with a delay-efficient algorithm. The comparison of delay for DSA, CBDS, and DHA is shown in Table 5
4. Conclusion
DHA, which stands for the Secured Routing Authentication Algorithm, was designed, and NS2.28 was used to run a simulation of the performance study. Based on the findings, it is clear that the proposed DHA offers superior protection against harmful behavior shown by normal nodes. The latency that is experienced as the number of nodes rises is significant, despite the fact that it offers superior security than the systems that are now in use. The DHA-SHORT protocol was added both to cut down on the wait time and to give a considerable equivalent degree of protection. The performance result compares both approaches by analyzing their PDR, throughput, packet loss, and latency. The comparative findings demonstrated that our study is effective in moving MANET in the direction of secured authentication.
Funding: ―This research received no external funding‖
Conflicts of Interest: ―The authors declare no conflict of interest.‖