Bat Optimized Link State Routing Protocol for Energy-Aware Mobile Ad-Hoc Networks

Mobile ad hoc network (MANET) can be described as a group of wireless mobile nodes that form a temporary dynamic and independent infrastructure network or a central administration facility. High energy consumption is one of the main problems associated with the MANET technology. The wireless mobile nodes used in this process rely on batteries because the network does not have a steady power supply. Thus, the rapid battery drain reduces the lifespan of the network. In this paper, a new Bat Optimized Link State Routing (BOLSR) protocol is proposed to improve the energy usage of the Optimized Link State Routing (OLSR) protocol in the MANET. The symmetry between OLSR of MANET and Bat Algorithm (BA) is that both of them use the same mechanism for finding the path via sending and receiving specific signals. This symmetry resulted in the BOLSR protocol that determines the optimized path from a source node to a destination node according to the energy dynamics of the nodes. The BOLSR protocol is implemented in a MANET simulation by using MATLAB toolbox. Different scenarios are tested to compare the BOLSR protocol with the Cellular Automata African Buffalo Optimization (CAABO), Energy-Based OLSR (EBOLSR), and the standard OLSR. The performance metric consists of routing overhead ratios, energy consumption, and end-to-end delay which is applied to evaluate the performance of the routing protocols. The results of the tests reveal that the BOLSR protocol reduces the energy consumption and increases the lifespan of the network, compared with the CAABO, EBOLSR, and OLSR.


Introduction
In the world of computers, networking is defined as the electronic communication that occurs between one or more wireless or wired devices connected to each other for data sharing, resource In MANETs, direct communication between the source and the destination nodes is required by routing protocols, such as the Optimized Link State Routing (OLSR) and the Ad-hoc On-Demand Distance Vector (AODV) routing protocol [14,15]. Thus, routing is crucial to determine the required optimal path for the transfer of data between the source and the destination nodes [16]. Various routing protocols classified as reactive, AODV [15], proactive, OLSR [17,18], hybrid, and zone routing board [19] are available in the MANET. One of the commonly used algorithms in solving routing problems is the bat algorithm proposed by Yang [20,21]. In addition to addressing routing problems, this algorithm can also solve numeric, engineering, and optimization problems [22][23][24]. This paper presents the integration of the Bat Algorithm (BA) with the OLSR protocol to improve the path selection mechanism by using different parameters.
The remaining of the paper is organized as follows: Section 2 explains the literature review. Section 3 presents the related methods and materials of this work which include the OLSR, BA, and the quality of services parameters. Section 4 describes the main contribution of this work that is represented by the Bat Optimized Link State Routing (BOLSR) protocol. Sections 5 and 6 explain the In MANETs, direct communication between the source and the destination nodes is required by routing protocols, such as the Optimized Link State Routing (OLSR) and the Ad-hoc On-Demand Distance Vector (AODV) routing protocol [14,15]. Thus, routing is crucial to determine the required optimal path for the transfer of data between the source and the destination nodes [16]. Various routing protocols classified as reactive, AODV [15], proactive, OLSR [17,18], hybrid, and zone routing board [19] are available in the MANET. One of the commonly used algorithms in solving routing problems is the bat algorithm proposed by Yang [20,21]. In addition to addressing routing problems, this algorithm can also solve numeric, engineering, and optimization problems [22][23][24]. This paper presents the integration of the Bat Algorithm (BA) with the OLSR protocol to improve the path selection mechanism by using different parameters.
The remaining of the paper is organized as follows: Section 2 explains the literature review. Section 3 presents the related methods and materials of this work which include the OLSR, BA, and the quality of services parameters. Section 4 describes the main contribution of this work that is represented by the Bat Optimized Link State Routing (BOLSR) protocol. Sections 5 and 6 explain the simulation model and parameters, the evaluation metrics, and experimental results and discussion respectively. Finally, Section 7 concludes the work and suggested future work.

Literature Review
Mobile devices consume energy and rely on networks without infrastructures, such as the MANET, or networks with infrastructure. Different protocol problems are associated with MANETs, specifically, the procedure of discovering optimal paths between the source and the destination nodes, which involves high Energy Consumption (EC) from broad node communications [25]. When the source node sends data to the destination node, the appropriate path to their destination must first be identified by broadcasting routing requests. This activity consumes more power than data transmission, and the risk of connection failure is increased by the flexible processes of mobility-enhanced nodes. When the connection fails, routing requests must be re-initiated by the source nodes; this phenomenon increases the EC related to node operations [26]. The different routing protocols available in MANETs are classified as reactive, proactive, and hybrid [18]. The AODV is a typical example of a reactive protocol. In this protocol, routes are formed only when the source needs to transmit data to a destination [15]. An example of a proactive protocol is table-driven protocol, in which the updated information is maintained between the routes from every node to all other nodes present in the network [16]. Finally, the hybrid routing protocol attempts to integrate elements of the proactive and reactive routing protocols [18]. The central idea of hybrid routing is that proactive connections are available in areas with low mobility, whereas reactive connections are available in areas with high mobility [19]. Network routing problems have been recently solved through the implementation of different intelligent algorithms, such as African Buffalo Optimization (ABO) [6], ant colony optimization (ACO) [27], Genetic Algorithm (GA) [7,28], Artificial Bee Colony (ABC) [29], and Practical Swarm Optimization (PSO) algorithm [30].
Hassan et al. [6] introduce a new routing scheme cellular automata African Buffalo Optimization (CAABO) based on Cellular Automata (CA) and African Buffalo Optimization (ABO) algorithms. The CAABO attempts to discover the paths that fulfil the delay requirements and limitations as well as improving the energy usage of the network. Brindha et al. [31] propose a new energy-efficient routing protocol by using different Quality of Service (QoS) parameters such as hops count, End-To-End (E2E) delay, and bandwidth. These parameters are managed via the GA algorithm to get an optimal solution. The new protocol is called Energy-Based OLSR (EBOLSR). Narayanan et al. proposed a new energy-aware method called the ACO-EEOLSR that contains the ACO-enhanced approach to obtain an energy-efficient OLSR for the MANET technology [32]. Alternatively, a clustering algorithm to be used in the OLSR protocol for a new energy-aware method is proposed by [33]. This new method is aimed to decrease the E2E delay while increasing the lifespan of the network. A study by Sundaram et al. [34] proposed an invasive weed PSO, a hybrid algorithm that is combined with the OLSR protocol to reduce the E2E delay while improving the throughput of the network. A new hybrid algorithm called PSO sigmoid increasing inertia weight is proposed for the selection of Multipoint Relay (MPR) to improve the performance of OLSR [35]. In addition, a new OLSR protocol mechanism that uses the willing concept to improve EC and increase the lifespan of the network is also suggested [36].

Research Methods and Materials
This paper proposes an energy-aware routing protocol for the MANET. The major elements of the research are OLSR, bat algorithm, and tested network evaluation metrics.

Optimized Link State Routing (OLSR)
The OLSR is proposed by Clausen et al. [37] as a proactive routing protocol for ad hoc networks and is built based on the link-state (LS) protocol with reduced signaling packets and control traffic flooding [37]. Accordingly, the OLSR protocol broadcasts messages transmitted in the network by using MPRs, nodes that are specifically designed to broadcast only such messages [31,38]. The mechanisms of the OLSR protocol and MPR selection are shown in Figures 2 and 3 using MPRs, nodes that are specifically designed to broadcast only such messages [31,38]. The mechanisms of the OLSR protocol and MPR selection are shown in Figures 2 and 3, respectively.  The OLSR protocol functions in a fully distributed manner and does not rely on any kind of central entity. When transmitting control messages, this protocol does not require reliable transmission because the messages are occasionally transmitted and are exemplified by the sequence number which rearranges them. The OLSR is also known to support node mobility. As mentioned earlier, MPRs aim to reduce the duplicity in the retransmission within the same area [39]. Every node existing within the network selects a certain group of nodes in their neighborhood and marks them as the MPRs, thereby retransmitting the broadcast packets [40]. Therefore, the neighbors of the nodes, which do not exist in the MPR set, can read and process the data packets obtained from the specified node but cannot retransmit them [41].
The MPR set is selected by one-hop neighbors that are characterized by bidirectional links [37]. For this process, the neighboring nodes with direct links must be identified by every node. All the links must be examined in both directions to validate these nodes. In this regard, a period broadcast of the hello message, which contains data about the neighbors and their link statuses, must be created in every node. Through these messages, every node can obtain information about their neighbors until two hops and to subsequently select the MPR set . A node starts constructing the MPR selector table, a 1-hop  neighbor table, and the 2-hop neighbor table as soon as it obtains a hello message [37][38][39].
A different hello message will not further be transmitted to the entire network. This phenomenon indicates that various nodes that receive the messages do not transmit them [40]. A  using MPRs, nodes that are specifically designed to broadcast only such messages [31,38]. The mechanisms of the OLSR protocol and MPR selection are shown in Figures 2 and 3, respectively.  The OLSR protocol functions in a fully distributed manner and does not rely on any kind of central entity. When transmitting control messages, this protocol does not require reliable transmission because the messages are occasionally transmitted and are exemplified by the sequence number which rearranges them. The OLSR is also known to support node mobility. As mentioned earlier, MPRs aim to reduce the duplicity in the retransmission within the same area [39]. Every node existing within the network selects a certain group of nodes in their neighborhood and marks them as the MPRs, thereby retransmitting the broadcast packets [40]. Therefore, the neighbors of the nodes, which do not exist in the MPR set, can read and process the data packets obtained from the specified node but cannot retransmit them [41].
The MPR set is selected by one-hop neighbors that are characterized by bidirectional links [37]. For this process, the neighboring nodes with direct links must be identified by every node. All the links must be examined in both directions to validate these nodes. In this regard, a period broadcast of the hello message, which contains data about the neighbors and their link statuses, must be created in every node. Through these messages, every node can obtain information about their neighbors until two hops and to subsequently select the MPR set. A node starts constructing the MPR selector table, a 1-hop neighbor table, and the 2-hop neighbor table as soon as it obtains a hello message [37][38][39].
A different hello message will not further be transmitted to the entire network. This phenomenon indicates that various nodes that receive the messages do not transmit them [40]. A The OLSR protocol functions in a fully distributed manner and does not rely on any kind of central entity. When transmitting control messages, this protocol does not require reliable transmission because the messages are occasionally transmitted and are exemplified by the sequence number which rearranges them. The OLSR is also known to support node mobility. As mentioned earlier, MPRs aim to reduce the duplicity in the retransmission within the same area [39]. Every node existing within the network selects a certain group of nodes in their neighborhood and marks them as the MPRs, thereby retransmitting the broadcast packets [40]. Therefore, the neighbors of the nodes, which do not exist in the MPR set, can read and process the data packets obtained from the specified node but cannot retransmit them [41].
The MPR set is selected by one-hop neighbors that are characterized by bidirectional links [37]. For this process, the neighboring nodes with direct links must be identified by every node. All the links must be examined in both directions to validate these nodes. In this regard, a period broadcast of the hello message, which contains data about the neighbors and their link statuses, must be created in every node. Through these messages, every node can obtain information about their neighbors until two hops and to subsequently select the MPR set. A node starts constructing the MPR selector table, a 1-hop neighbor table, and the 2-hop neighbor table as soon as it obtains a hello message [37][38][39]. A different hello message will not further be transmitted to the entire network. This phenomenon indicates that various nodes that receive the messages do not transmit them [40]. A periodic broadcast of specified control messages known as Topology Control (TC) is performed by every node to build and maintain the data for a network topology that is needed for data packet routing. The TCs are forwarded by general broadcast data packets within the entire network [39]. Data obtained by the TC packets are then stored in an appropriate topology table. Every node maintains its routing table that helps the former to route the data packets to other destinations in a network. The TC messages received by the nodes are analyzed, and parts of these connected pairs are stored in a form (last hop and node), in which the node denotes the addresses that are detected in a TC message list [36]. The routing table is created from this database by following the linked pairs in descending order.
A group of connected pairs must be detected until the last hop node present in the source neighbor set is reached to discover an optimal route from the source to the destination [40]. The connected pairs, which are present on a minimal power usage route, are selected by the different forwarding nodes. If the bidirectional link is changed in the topology table or in the neighborhood, then the routing table must be recalculated [41].

The Bat Algorithm
In 2010, a meta-heuristic search algorithm known as the Bat Algorithm (BA) was proposed by Yang et al. [20]. This bat-inspired algorithm relies on the echolocation behavior of the bats to determine the location of prey and to differentiate the insects existing in extreme darkness with varying degrees of emission pulse rates and loudness [21].
This research involves the emission of bat calls to the outer environment, followed by an analysis of the resulting echo sounds that bounce back. The objects' locations are detected, and the distance between the various targets is calculated through an assessment of the sound delay. The emitting sounds are loud pulses with different properties depending on the hunting tactics and species. These echolocation sound pulses are then characterized according to three different characteristics, namely, pulse frequencies, pulse emission rate, and loudness/intensity. The echolocation of the bats and the associated parameters are then examined through numerical optimizing algorithms [22]. The resultant bat algorithm is tested empirically, and the use of single or multi-objective standardized functions is employed to further compare this algorithm with other algorithms [23]. Algorithm 1 shows the basic BA according to [20]: 11. Accept the new locations; 12. Increase r i and reduce a i ; 13. end-if 14. Rank the bats and find the current best x; Bats use echolocation to determine the distance and the differences between prey, food, and other obstacles. Assume that a random velocity of v i is used by the bats to fly to a fixed position x i with the Symmetry 2019, 11, 1409 6 of 22 frequency of f min with different wavelengths and loudness of l 0 in search of prey. The wavelengths or frequencies of the emitted pulses can be automatically adjusted, and the bats can calibrate their pulse emission rate r in the range (0, 1) depending on how close they are to their target. Regardless of the variance in their loudness, the loud volume varied between a huge positive value, l 0 and a minimal constant value of l min. Figure 4 shows the mathematical bat algorithm.
Symmetry 2019, 11, x FOR PEER REVIEW 6 of 20 target. Regardless of the variance in their loudness, the loud volume varied between a huge positive value, and a minimal constant value of . . Figure 4 shows the mathematical bat algorithm In the initial stage, the bat population and their position, i.e., , velocity and frequency , respectively, must be identified. The mobility of all these virtual bats can be discerned after updating their positions and velocities for the time step , using Equations (1)-(3) in the following manner: where; where; where β ϵ (0, 1) represents the vector arbitrarily derived according to the uniform distribution. The variable ~ denotes the current global best position (solution) that is located after the solutions obtained from m bats are compared. An arbitrary number is employed after the solutions from the current best bat solutions are selected. Nonetheless, the pulse emission rate , is less than the number, and a different solution is accepted based on the present best solutions and is explained as follows: where ε ϵ (−1, 1) represents a random number, and = < > refers to the average loud volume of the bats present in the generation. Moreover, the loud volume along with the pulse emission rate In the initial stage, the bat population and their position, i.e., x i , velocity v i and frequency f min , respectively, must be identified. The mobility of all these virtual bats can be discerned after updating their positions and velocities for the time step t , using Equations (1)-(3) in the following manner: where where; where β (0, 1) represents the vector arbitrarily derived according to the uniform distribution.
The variable x denotes the current global best position (solution) that is located after the solutions obtained from m bats are compared. An arbitrary number is employed after the solutions from the current best bat solutions are selected. Nonetheless, the pulse emission rate r i , is less than the number, and a different solution is accepted based on the present best solutions and is explained as follows: where ε (−1, 1) represents a random number, and l t = <l t i > refers to the average loud volume of the bats present in the generation. Moreover, the loud volume l i along with the pulse emission rate r i would be updated. If the random number is less than the loud volume, l i and f (x i )< f ( x), then a solution will be selected. The values of l i and r i are updated as follows: where in Equations (5) and (6), α and γ have constant values. The bat algorithm can be repeated until a maximum cycle number is reached.

Quality of Services Parameters
General network quality is described or measured by the QoS and presents the amount of data sent from a source node and received by a destination node within a given period of time. Different parameters, such as throughput, packet delivery ratio, E2E delay, packet loss, jitter, and energy are used to quantitatively measure QoS and evaluate the network quality. The behavior of the MANET routing protocol is influenced by all these parameters [6]. Energy consumption, routing overhead, and delay are used in this study because of their comprehensive assessment to the performance of the MANET.

•
Routing overhead parameter: this value is the total number of routing packets divided by the total number of delivered data packets. The additional bandwidth, which has been consumed by the overhead for delivering data network, can be measured using this parameter. The robustness of the network is influenced by the routing overhead in terms of the battery power consumption of the nodes and the utilization of the bandwidth [6]. • EC parameter: route discovery is implemented to calculate every probable path from the source to the destination node. The optimum path is then selected by the protocol based on its criteria, such as the minimum number of hops and the shortest path. The selected path is used until it gets destroyed. Thus, the node energy in this route decreases. In a situation when a node loses its energy, the messages cannot be sent and consequently leads to the exclusion of the node from the network. This occurrence negatively affects the lifespan of the ad hoc network. Part of the initial energy is taken as an energy constraint [9]. • Delay parameter: it is considered as one of the most important parameters in the telecommunication system. Delay refers to the total time that is spent to send the packets from source to destination nodes via the network. Different aspects of the network are responsible for increasing/decreasing the delay: (1) processing, (2) queuing, (3) transmission, and (4) propagation.

BOLSR Protocol
The OSLR is described as a mechanism used in the discovery of the LS and for the dissemination of information in the entire ad hoc network. The disseminated information can be utilized by individual nodes to detect neighbor nodes and compute the next hop logic. Despite the advantages of the OSLR, it has limitations associated with the route remaining fixed onto a set of nodes. The fitness or quality of the nodes that are selected for the route cannot be determined using this protocol. This phenomenon results in the excess drain of resources, such as bandwidth and charge, along with the route. The rest of the nodes are left untouched.
The BA, which is based on the echolocation or bio-sonar characteristics of micro-bats [20], is an optimization algorithm that can obtain variables required for the improvement of route node selection.
The following section provides details of the integration between the bat algorithm and the OLSR protocol. This integration aims to improve the performance of the OLSR.

Criteria Function
A Criteria Function (CF) is used to improve the effectiveness of the OSLR protocol through the provision of the node quality logic to the algorithm. With this function, a summation of a set of characteristics for each possible route is effectively provided. Weights are given to the functions in terms of the priority and the sustainability of the route. This sum is considered as a measurement of fitness for a given route and is used to measure the appropriateness of using a node for a specific route. Below is the CF used in the analysis: where r = w(1) chargeMean + w(2) chargeVar/w(3) chargeMean + w(4)/chargeVar and w denotes the weight ratio and it has the range of 1,2, . . . , n.
The CF aims to explain the proportional and inversely proportional correlation between the variables and the nodes' fitness factors. If the correlation between the route length variable and the fitness factor is inversely proportional, then the weight w1 is set to zero but not w4. This function can also be implemented in a system of nodes to optimize the energy variance and overhead values.

General Optimization Scheme
A feedback mechanism, in which the route given by the fitness variable is processed by the OLSR protocol, is employed to optimize the values of the weighting ratios. The Objective Function (OF) computes the objective value, ∂, from the overhead, energy variance, and Packet Delivery Ratio (PDR) values using the following formula: The actual effectiveness of the selected route is provided by the objective function. This value can be employed in the optimization scheme by comparing it with the values for routes that are selected before the current selection. This process would provide insights into the suitability of the weight values. The most appropriate values of weight ratios are provided by continuous feedback as described earlier. Figure 5 shows the overall optimization scheme for the BOLSR protocol. fitness factor is inversely proportional, then the weight 1 is set to zero but not 4. This function can also be implemented in a system of nodes to optimize the energy variance and overhead values.

General Optimization Scheme
A feedback mechanism, in which the route given by the fitness variable is processed by the OLSR protocol, is employed to optimize the values of the weighting ratios. The Objective Function (OF) computes the objective value, ∂, from the overhead, energy variance, and Packet Delivery Ratio (PDR) values using the following formula: The actual effectiveness of the selected route is provided by the objective function. This value can be employed in the optimization scheme by comparing it with the values for routes that are selected before the current selection. This process would provide insights into the suitability of the weight values. The most appropriate values of weight ratios are provided by continuous feedback as described earlier. Figure 5 shows the overall optimization scheme for the BOLSR protocol. The weight values are presented in Table 1. These values are used to further optimize the weight ratio selection and consequently the objective function. Optimization mainly aims to reduce the values of the overhead and energy variance.  The weight values are presented in Table 1. These values are used to further optimize the weight ratio selection and consequently the objective function. Optimization mainly aims to reduce the values of the overhead and energy variance.

Bat Algorithm Design
The BA uses the echolocation of bats to produce a metaheuristic algorithm used in optimization schemes. The effectiveness of the weight ratios w 1 , w 2 , . . . , w n can be effectively identified through the optimization algorithm in terms of alteration in the values of the objective function. As previously described, OSLR uses the nodes that are selected based on the fitness variable. Energy variance, the E2E delay, the PDR, and the overhead values are then measured. The OF is calculated and then used in the BA to optimize the weight values that are utilized in calculating the fitness variable. A new set of nodes defined by the new fitness value is then processed continuously until the desired degree of optimization for the OF is achieved. The three major equations used in the BA are Equations (1)-(3). The parameters utilized in the optimization are presented in Table 1.
The bat, which is a vector of four elements, represents each solution. The weighting factors of the terms that are used in the CF represent the element of this vector in which the Bat, w, and weight ratio are equals and have the range of (1-4) values. The ∂ that is given by Equation (7), provides an estimated value for the overall performance of a selected route. The equation assumes that minimizing the value of the OF will lead to a balanced node loading which will reflect positively on the node charge variance, overhead, and E2E delay across the entire system of nodes. This ∂ thus provides an easy optimization metric, as simply minimizing this quantity would optimize the performance of the whole system. The value of this ∂ is a key variable used in the proposed BOLSR.

Simulation and Result
This section presents the experimental work for evaluating BOLSR and comparing its performance with those of three approaches, the state-of-the-art approach CAABO, EBOLSR, and OLSR. The simulation was implemented using the MATLAB toolbox. Figure 6 shows the implementation of the routing protocols in the MATLAB simulation.
There are different reasons that motivated us to use MATLAB instead of other tools such as NS2 or NS3. The state-of-the-art related work such as the work of [42] used MATLAB in MANET research. MATLAB is defined as a computer programming tool that offers to the user a suitable environment for implementing numerous types of calculations in simple, swift, and efficient ways [43]. It is employed to implement differential mathematical equations and algorithms such as the bat algorithm. Unlike other tools, MATLAB facilitates the process of implementing algorithms that require iterations and specific functions in order to investigate optimal solutions. Moreover, it includes libraries that provide a symbolic solution, data analysis, and graphic plots of the results. The simulation model and parameters are presented in Section 5.1. Next, the evaluation metrics are provided in Section 5.2. After that, experimental results and discussion are presented in Section 5.3.

Simulation and Result
This section presents the experimental work for evaluating BOLSR and comparing its performance with those of three approaches, the state-of-the-art approach CAABO, EBOLSR, and OLSR. The simulation was implemented using the MATLAB toolbox. Figure 6 shows the implementation of the routing protocols in the MATLAB simulation. There are different reasons that motivated us to use MATLAB instead of other tools such as NS2 or NS3. The state-of-the-art related work such as the work of [42] used MATLAB in MANET research. MATLAB is defined as a computer programming tool that offers to the user a suitable environment for implementing numerous types of calculations in simple, swift, and efficient ways [43]. It is employed to implement differential mathematical equations and algorithms such as the bat algorithm. Unlike other tools, MATLAB facilitates the process of implementing algorithms that require iterations and specific functions in order to investigate optimal solutions. Moreover, it includes libraries that provide a symbolic solution, data analysis, and graphic plots of the results. The simulation model and parameters are presented in Section 5.1. Next, the evaluation metrics are provided in Section 5.2. After that, experimental results and discussion are presented in Section 5.3.

Simulation Model and Parameters
The simulation of the proposed BOLSR protocol is discussed in this section. The aim of the experimental tests of the simulation is to improve the MANET performance and prolong its lifespan [42]. The objective is to use the BOLSR to find the path with the highest levels of energy and a minimum delay. Afterwards, three routing protocols along with the BOLSR are tested and their results are compared. Figure 7 represents the main steps that were used to implement the simulation of the BOLSR and other protocols. The simulation model consists of four main modules. Firstly, the MANET environment Module A was employed to create simulation environments. This module was achieved by integrating the main characteristics of MANET, such as network size, a number of nodes, bandwidth and so on. The next step was implementing the routing protocols as Module B in which several optimization algorithms were used to address the progress of the solution. Three different scenarios (node speed, number of nodes, and simulation time) with various parameters were implemented in Module C to assess the performance quality of the protocols. The scenarios were altered in each set of runs of a particular protocol. In Module D, the performance metrics of PDR, E2E, Routing overhead ratio (ROR), and EC were implemented to evaluate the protocols. Finally, a results visualization graphical user interface module is included to view the results and related analysis. The simulation of the proposed BOLSR protocol is discussed in this section. The aim of the experimental tests of the simulation is to improve the MANET performance and prolong its lifespan [42]. The objective is to use the BOLSR to find the path with the highest levels of energy and a minimum delay. Afterwards, three routing protocols along with the BOLSR are tested and their results are compared. Figure 7 represents the main steps that were used to implement the simulation of the BOLSR and other protocols. The simulation model consists of four main modules. Firstly, the MANET environment Module A was employed to create simulation environments. This module was achieved by integrating the main characteristics of MANET, such as network size, a number of nodes, bandwidth and so on. The next step was implementing the routing protocols as Module B in which several optimization algorithms were used to address the progress of the solution. Three different scenarios (node speed, number of nodes, and simulation time) with various parameters were implemented in Module C to assess the performance quality of the protocols. The scenarios were altered in each set of runs of a particular protocol. In Module D, the performance metrics of PDR, E2E, Routing overhead ratio (ROR), and EC were implemented to evaluate the protocols. Finally, a results visualization graphical user interface module is included to view the results and related analysis.  Table 2 describes all the parameters used for the setting of the simulation.  The setting of the simulation's parameters was adopted from [4,[6][7][8][9]25,44]. Table 2 describes all the parameters used for the setting of the simulation.

The Evaluation Metrics
Varying metrics are used to evaluate network performance in general [43][44][45][46]. The major challenges for MANET routing include the overhead, E2E delay, energy efficiency, and PDR [9, 23,46]. Different solutions have been provided for various routing problems, such as security, EC, bandwidth, and QoS [5][6][7]. The metrics discussed in the following subsections were used to measure the performance of the BOLSR.

Routing Overhead Ratio (ROR)
ROR is the total routing packet (RP) divided by the total number of RP and delivered data packets (DDP), where the RP indicates the packet that is spent to discover all the nodes in the network. On the other hand, the DDP refers to the actual data that is transmitted from source to destination nodes. The ROR is calculated as follows:

Energy Consumption
EC is the energy used by the nodes within the network during specific simulation time. EC can be calculated using the energy level of each node after simulation, and the basic energy level of each node considered during the calculation. EC is calculated as follows: In Equation (9), the node number is referred to as n, and the counter is represented by i, ini denotes the initial energy level for each node while ene denotes the node energy levels after the simulation.

E2E Delay
E2E delay refers to the accumulative time that is spent to send all data packets across the network. The average E2E delay is calculated as follows: where n refers to the successful packets that are received by destination nodes, i refers to the unique packet identifier, Ri refers to the receiving time of the packet with the indexing number i, and Ri denotes the sending time of the packet with the indexing number i.

Experimental Results and Discussion
This section provides a brief discussion of the results of the proposed BOLSR protocol compared with three other protocols. The performance metric that was used to assess the performance of the proposed protocol includes the parameters of PDR, E2E delay, EC, and ROR. The three key network scenarios of the tests were related to the parameters of a number of nodes, node speed, and simulation time. These parameters were altered to observe their effects on the PDR, E2E delay, EC, and ROR of the BOLSR, CAABO, EBOLSR, and OLSR protocols. It is worth mentioning, that the figures below depict the effects of EC, ROR, and E2E delay parameters in different scenarios as the BOLSR protocol is focused on reducing energy consumption, overhead, and delay.
The results obtained from implementing the three scenarios are presented in Tables 3-5. Each scenario was implemented five times to obtain the required results. The mean was used to evaluate the performance of the network routing protocols and the Standard Deviation (SD) was used to evaluate the variation in the behavior of the routing protocols within the five runs.
The results obtained during the implementation of the first scenario are shown in Figure 8. Figure 8a shows the average effect of the number of nodes in the ROR of the BOLSR, CAABO, EBOLSR, and OLSR protocols. Figure 8b shows the ROR SD of the routing protocols. The results show that the overhead ratio of the four routing protocols is increased with the increase of the number of nodes . In MANET, the nodes of the network are dynamically collecting information about each other. Furthermore, during the nodes' movement, there might be link failures between these nodes which results in recalculating the routing tables. These issues lead to an increase in the overhead ratio and the energy consumption of the network. The results further show that the BOLSR maintains the lowest overhead ratio among the rest which implies finding the optimal path in terms of overhead ratio and energy consumption. Consequently, the effect of the number of nodes on EC for the BOLSR, CAABO, EBOLSR, and OLSR under the different number of runs is shown in Figure 9. The EC of the nodes are steadily increased when the number of nodes is increased, and the highest EC is recorded in the OLSR. On the other hand, the BOLSR consumes less energy than other protocols as the calculations of its optimal paths are constrained by the dynamics of nodes energy measures. of nodes . In MANET, the nodes of the network are dynamically collecting information about each other. Furthermore, during the nodes' movement, there might be link failures between these nodes which results in recalculating the routing tables. These issues lead to an increase in the overhead ratio and the energy consumption of the network. The results further show that the BOLSR maintains the lowest overhead ratio among the rest which implies finding the optimal path in terms of overhead ratio and energy consumption. Consequently, the effect of the number of nodes on EC for the BOLSR, CAABO, EBOLSR, and OLSR under the different number of runs is shown in Figure 9. The EC of the nodes are steadily increased when the number of nodes is increased, and the highest EC is recorded in the OLSR. On the other hand, the BOLSR consumes less energy than other protocols as the calculations of its optimal paths are constrained by the dynamics of nodes energy measures. The effect of the number of nodes on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR is depicted in Figure 10. The E2E delay of the nodes is steadily decreased when the number of nodes is increased, and the highest E2E delay is recorded in the OLSR as Figure 10a,b shows. In all the four protocols, the increase of the number of nodes makes the connection between the nodes easier and requires less time. The BOLSR achieves the lowest E2E delay because the increase of the number of nodes gives it the flexibility to identify nodes with high energy capacity which stabilizes the paths. In the second scenario, the variation of the speed of nodes is evaluated against PDR, E2E delay, EC, and ROR. The results of the node speed scenario are shown in Table 4.  The effect of the number of nodes on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR is depicted in Figure 10. The E2E delay of the nodes is steadily decreased when the number of nodes is increased, and the highest E2E delay is recorded in the OLSR as Figure 10a,b shows. In all the four protocols, the increase of the number of nodes makes the connection between the nodes easier and requires less time. The BOLSR achieves the lowest E2E delay because the increase of the number of nodes gives it the flexibility to identify nodes with high energy capacity which stabilizes the paths. Consequently, the effect of the number of nodes on EC for the BOLSR, CAABO, EBOLSR, and OLSR under the different number of runs is shown in Figure 9. The EC of the nodes are steadily increased when the number of nodes is increased, and the highest EC is recorded in the OLSR. On the other hand, the BOLSR consumes less energy than other protocols as the calculations of its optimal paths are constrained by the dynamics of nodes energy measures. The effect of the number of nodes on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR is depicted in Figure 10. The E2E delay of the nodes is steadily decreased when the number of nodes is increased, and the highest E2E delay is recorded in the OLSR as Figure 10a,b shows. In all the four protocols, the increase of the number of nodes makes the connection between the nodes easier and requires less time. The BOLSR achieves the lowest E2E delay because the increase of the number of nodes gives it the flexibility to identify nodes with high energy capacity which stabilizes the paths. In the second scenario, the variation of the speed of nodes is evaluated against PDR, E2E delay, EC, and ROR. The results of the node speed scenario are shown in Table 4.  In the second scenario, the variation of the speed of nodes is evaluated against PDR, E2E delay, EC, and ROR. The results of the node speed scenario are shown in Table 4.
Based on Table 4, the effect of the node speed on the routing overhead of the four protocols is shown in Figure 11. In general, when the node speed increases from 1 to 11 m/s, the routing overhead ratio increases too. As the previous results, the performance of the BOLSR is better than the CAABO, EBOLSR, and OLSR protocols with regards to the ROR. The BOLSR set's up robust and steadier routes as is shown in the ROR and EC measures in which there are less likelihoods of route failure, and hence, reducing the need for the route discovery process. Based on Table 4, the effect of the node speed on the routing overhead of the four protocols is shown in Figure 11. In general, when the node speed increases from 1 to 11 m/s, the routing overhead ratio increases too. As the previous results, the performance of the BOLSR is better than the CAABO, EBOLSR, and OLSR protocols with regards to the ROR. The BOLSR set's up robust and steadier routes as is shown in the ROR and EC measures in which there are less likelihoods of route failure, and hence, reducing the need for the route discovery process. The effect of the node speed on the EC for the BOLSR, CAABO, EBOLSR, and OLSR are shown in Figure 12. The results show that the EC of the nodes is dramatically increased when the node speed is increased as high node speed increases the probability of the link failure between nodes. Again, the EC of the BOLSR routing protocol is lesser than the CAABO, EBOLSR, and OLSR for the same mentioned reasons. The effect of the node speed on the EC for the BOLSR, CAABO, EBOLSR, and OLSR are shown in Figure 12. The results show that the EC of the nodes is dramatically increased when the node speed is increased as high node speed increases the probability of the link failure between nodes. Again, the EC of the BOLSR routing protocol is lesser than the CAABO, EBOLSR, and OLSR for the same mentioned reasons. The effect of the node speed on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR are shown in Figure 13. The node speed causes a higher probability of link failure which dramatically increases the E2E delay of the nodes. The SD results of Figure 12b clearly show that the BOLSR outperforms the other protocols as it optimizes routes based on various parameters. The effect of the node speed on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR are shown in Figure 13. The node speed causes a higher probability of link failure which dramatically increases the E2E delay of the nodes. The SD results of Figure 12b clearly show that the BOLSR outperforms the other protocols as it optimizes routes based on various parameters.

EC
In the third scenario, the protocols were evaluated against the simulation time. Generally, the increase in the simulation time exhausts the energy of the nodes which increases the ROR and E2E of the network. The results of this scenario are shown in Table 5. The effect of the node speed on the E2E delay for the BOLSR, CAABO, EBOLSR, and OLSR are shown in Figure 13. The node speed causes a higher probability of link failure which dramatically increases the E2E delay of the nodes. The SD results of Figure 12b clearly show that the BOLSR outperforms the other protocols as it optimizes routes based on various parameters. In the third scenario, the protocols were evaluated against the simulation time. Generally, the increase in the simulation time exhausts the energy of the nodes which increases the ROR and E2E of the network. The results of this scenario are shown in Table 5.  Based on Table 5, the effect of the simulation time on the routing overhead of the four protocols is shown in Figure 14. In general, when the simulation time is increased (10-70 s), the ROR is tremendously increased. The lowest ROR is recorded in the BOLSR and the highest ROR is recorded in the OLSR protocol while the EBOLSR and CAABO maintain adjacent ROR results. Based on Table 5, the effect of the simulation time on the routing overhead of the four protocols is shown in Figure 14. In general, when the simulation time is increased (10-70 s), the ROR is tremendously increased. The lowest ROR is recorded in the BOLSR and the highest ROR is recorded in the OLSR protocol while the EBOLSR and CAABO maintain adjacent ROR results. The effect of the simulation time is shown in Figure 15. Like the first and second scenarios, the EC of the nodes increases when the simulation time is increased. The BOLSR routing protocol consumes less energy compared to the CAABO, OLSR, and EBOLSR. The BOLSR protocol chooses a stable path with the highest energy for the same reasons mentioned previously. The effect of the simulation time is shown in Figure 15. Like the first and second scenarios, the EC of the nodes increases when the simulation time is increased. The BOLSR routing protocol consumes less energy compared to the CAABO, OLSR, and EBOLSR. The BOLSR protocol chooses a stable path with the highest energy for the same reasons mentioned previously. The effect of the simulation time of the four protocols on the E2E delay is shown in Figure 16. Whilst, the simulation time increases the E2E delay increases too. Consequently, the BOLSR protocol has less E2E delay when compared with CAABO, OLSR, and EBOLSR as it selects a steady path with the maximum energy which increases the network lifetime and ultimately decreases the E2E. The effect of the simulation time of the four protocols on the E2E delay is shown in Figure 16. Whilst, the simulation time increases the E2E delay increases too. Consequently, the BOLSR protocol has less E2E delay when compared with CAABO, OLSR, and EBOLSR as it selects a steady path with the maximum energy which increases the network lifetime and ultimately decreases the E2E. The effect of the simulation time of the four protocols on the E2E delay is shown in Figure 16. Whilst, the simulation time increases the E2E delay increases too. Consequently, the BOLSR protocol has less E2E delay when compared with CAABO, OLSR, and EBOLSR as it selects a steady path with the maximum energy which increases the network lifetime and ultimately decreases the E2E.

Discussion
This work proposes an improved BOLSR routing protocol based on the OSLR protocol. It is compared with the performance of the CAABO, EBOLSR, and OLSR according to the number of nodes, node speed, and simulation time scenarios in terms of energy consumption, end to end delay, and routing overhead ratio. These comparisons are made to check and evaluate the ability and the performance of the BOLSR in MANET. The BOLSR maintains the lowest overhead ratio, delay, and energy among the rest which implies its ability to find the optimal path based on three quality parameters (energy, overhead, and delay). This in return ensures producing a stable network by decreasing the probability of the link failure and ensuring the successful transmission for the highest amount of data to the destination nodes.
The results of energy consumption, overhead ratio, and E2E delay for all routing protocols in the three scenarios reveal that every scenario has a different impact on the performance of the routing protocols. In all routing protocols, the energy consumption and overhead ratio increases with the increase of the number of nodes, node speed, and simulation time. It is because the nodes need to exchange information through flooding mechanisms for route discovery. Subsequently, the route discovery process consumes higher energy compared to the normal data exchange between MANET nodes. On the other hand, the E2E delay decreases when increasing the number of nodes, as the connections between nodes are becoming easier and require less time. Whilst, when increasing the node speed and simulation time the delay is increased because the node speed and the simulation

Discussion
This work proposes an improved BOLSR routing protocol based on the OSLR protocol. It is compared with the performance of the CAABO, EBOLSR, and OLSR according to the number of nodes, node speed, and simulation time scenarios in terms of energy consumption, end to end delay, and routing overhead ratio. These comparisons are made to check and evaluate the ability and the performance of the BOLSR in MANET. The BOLSR maintains the lowest overhead ratio, delay, and energy among the rest which implies its ability to find the optimal path based on three quality parameters (energy, overhead, and delay). This in return ensures producing a stable network by decreasing the probability of the link failure and ensuring the successful transmission for the highest amount of data to the destination nodes.
The results of energy consumption, overhead ratio, and E2E delay for all routing protocols in the three scenarios reveal that every scenario has a different impact on the performance of the routing protocols. In all routing protocols, the energy consumption and overhead ratio increases with the increase of the number of nodes, node speed, and simulation time. It is because the nodes need to exchange information through flooding mechanisms for route discovery. Subsequently, the route discovery process consumes higher energy compared to the normal data exchange between MANET nodes. On the other hand, the E2E delay decreases when increasing the number of nodes, as the connections between nodes are becoming easier and require less time. Whilst, when increasing the node speed and simulation time the delay is increased because the node speed and the simulation time have negative effects on the link stability which, in turn, increases the delay. The results clearly show that the node speed scenario has a greater negative impact on the performance of the four routing protocols in which it tremendously increases the probability of link failure. The stability of the network under the node speed scenario depends on the mobility of the node in which the best stability is when the nodes are staying near their initial position (static network). This issue reduces the need for reconstructing new routes. On the other hand, the change in node speed changes the topology of the network and makes the network unstable.
The standard deviation values of the five runs state the variance in the performance of the protocols. The protocols aim to find the optimal routes from all possible routes within the network dynamics. The lesser variation in the SD values refers to the high stability of the network, and vice versa. The performance metric assessed for each routing protocol under three different scenarios and the results show that the SD of the metrics is lower in the number of nodes, and simulation time scenarios than the node speed scenario. As a result, node speed represents the bottleneck of the test. As the node speed decreases, the stability of the network increases until the nodes become near to their initial position and the network reaches the static state. The static network has stable routes and less route reconstruction. However, one of the most advanced features of the MANET is node mobility and hence the routing protocols should be resistant to node speed.
The research scope limited this paper to focus on energy consumption, delay, and overhead parameters in finding the best route. Nevertheless, the BOLSR maintains the shortest route and a maximum number of connections of the conventional OLSR. There are some other parameters studied in the literature such as the number of hops and bandwidth that are not covered in this work.

Conclusions and Future Work
The technology of MANETs has evolved into a fascinating field of research because of its many promising characteristics. The MANET is popularly employed as wireless networking technology due to its simplicity, cost-effectiveness, and ease of use. MANET technology has been used by many researchers to improve energy usage and bandwidth. The development of the MANET can be useful in many applications in which traditional networks are less efficient. In this paper, a BOLSR protocol was proposed and simulated in the MANET environment using MATLAB. Four different performance metrics of PDR, EC, ROR, and E2E delay were estimated to evaluate the performance of the protocols. Based on the simulation results, the BOLSR protocol outperforms three other protocols which are CAABO, EBOLSR, and the conventional OLSR protocols for all the studied parameters. It is because the BOLSR protocol chooses a robust path of nodes that have the highest energy. Future research should focus on the security problems in the routing protocols such as black hole attack.