Introduction

Wireless Sensor Networks (WSNs) have been a major breakthrough in recent years, achieving significant advancements in both commercial and research fields worldwide. They have been applied in various domains such as weather tracking, defense, surveillance, and numerous industrial applications. A WSN typically consists of sensors that detect natural or structural environmental events and transmit the collected data to a ground station. WSN routers employ a wide range of protocols to optimize power consumption and maximize network lifespan. Energy efficiency and reliable sensory perception are two of the most critical factors in sensor deployment. The sensors, which are generally compact, possess the capability to accurately observe and analyze information. One of the primary areas of research in WSNs focuses on enhancing overall network capacity, which is considered a crucial challenge. Additionally, a cellular communication system, known as Global System for Mobile Communications (GSM), operates using Time Division Multiple Access (TDMA) technology to support both voice and data transmission. The GSM system comprises three main components: the Universal Mobile Telecommunications System (UMTS), the access network (3G), and the GSM backbone network.

Figure 1 illustrates the architecture of the GSM module. The Network Switching Subsystem (NSS), Base Station Subsystem (BSS), and Operational Support Subsystem (OSS) are interconnected components within the network. Typically, a mobile station includes both an International Mobile Equipment Identity (IMEI) and a Subscriber Identity Module (SIM) to help prevent theft1. In the BSS, the Base Transceiver Station (BTS) and the Base Station Controller (BSC) are two independent entities. The transceivers in the BTS create and define cells, while the BSC manages and controls radio signals from one or more BTS units. The NSS includes the Mobile Switching Center (MSC), which provides additional functionalities such as mobile station authentication, registration, location updates, handovers, and call routing for roaming subscribers2,3.

Fig. 1
figure 1

GSM system architecture.

Globally, billions of people use the GSM network. As the number of subscribers increases, traffic congestion at Points of Interaction (POI) also rises4, leading to an expansion in network size. A POI serves as a connection point between network components, helping to manage and reduce traffic congestion5. When designing or deploying a sensor, several criteria must be considered to meet application demands and objectives. Network Lifetime (NL) is influenced by multiple factors, including channel characteristics, topology, resource constraints, interference management, bit error rate, and other Quality of Reception (QoR) requirements6. The design criteria and objectives can only be effectively addressed if the network remains operational. In this study, we primarily focus on Network Lifetime (NL) and examine the trade-off between NL and Bit Error Rate (BER), as BER is a critical metric for ensuring Quality of Service (QoS).

Several routing algorithms have been considered for maximizing Network Lifetime (NL). We analyze the most efficient Advanced Exhaustive Search Algorithm (AESA) for NL, which is achieved by deploying a low-complexity genetic routing algorithm operating in a low-interference environment. Various studies have explored NL maximization through low-complexity routing algorithms while also maintaining Quality of Service (QoS) requirements. In7, the authors examined how transmit power and data rate could be optimally designed together. However, in8, scheduling and routing were studied over an Additive White Gaussian Noise (AWGN) channel to optimize NL. The study in9 proposed a data collection method that evaluates multiple performance metrics, including NL maximization and end-to-end reliability, to meet the required QoS criteria. According to10, a distributed method for reducing energy dissipation was implemented in a low-complexity network architecture. A non-linear optimization problem for NL maximization—considering routing, scheduling, and transmission power allocation in Rayleigh fading and AWGN channels—was analyzed in11. However, this study focused only on the string topology and did not evaluate the impact of routing on NL. An interesting finding in12 was the influence of physical layer characteristics on NL in a string topology with the lowest Signal-to-Interference-plus-Noise Ratio (SINR) per link. In13, the authors proposed an evolutionary algorithm with low complexity to optimize integrated link scheduling and routing for efficient traffic delivery. Unlike14, a simpler evolutionary algorithm was used in15 to maximize throughput in cognitive radio-based Wireless Mesh Networks (WMNs) by optimizing channel assignment and other operations. However, in the context of Wireless Sensor Networks (WSNs), little attention has been given to energy efficiency and NL optimization, despite16,17 introducing evolutionary approaches for solving cross-layer operational challenges. Battery-powered Machine-to-Machine (M2M) devices in Long-Term Evolution (LTE) networks could benefit from both an optimal and a simple suboptimal method to improve NL, as discussed in18,19. These methods involve uplink scheduling and transmit power management techniques.

It is possible to achieve near-optimal Network Lifetime (NL) performance with reduced complexity using a suboptimal approach. Both optimal and near-optimal routing optimization algorithms have been studied in20; however, inter-node interference has not been taken into consideration. For maximizing NL, the authors of21 concluded that a distributed approach could meet performance requirements while also reducing computational complexity.

According to22, an algorithm utilizing a mobile sink to balance the network’s traffic load was explored. To prevent excessive reliance on specific hotspots and to enhance NL, the mobile sink node moves across the network, collecting data over a specified period. Similarly, in23, a genetic algorithm was proposed to improve both coverage and NL maximization in multi-hop WSNs. However, their primary objective was minimizing energy dissipation, which consequently enhanced NL. To maximize NL, energy conservation is essential; however, this is not always the case when attempting to prolong the lifespan of NL. These differences arise primarily due to network topologies that are dependent on specific application requirements. The studies discussed above primarily considered less complex network topologies. However, fully connected sensor nodes are the focus of this research, as they introduce greater challenges in network design and optimization, making the process more time-consuming and computationally intensive. In a fully interconnected sensor network, any given sensor can communicate directly with another. Here, a low-complexity algorithm is designed to meet end-to-end bit error rate (E2EB) requirements24. This study emphasizes routing, scheduling, and power allocation as the key factors for improving the Signal-to-Interference-plus-Noise Ratio (SINR). With multiple nodes and a near-optimal Single Objective Genetic Algorithm (SOGA) to reduce complexity in fully connected WSNs, the accompanying figures illustrate an advanced Exhaustive Search Algorithm (ESA).

The motivations of the paper are listed below

  • WSNs require energy-efficient algorithms to prolong NL while maintaining communication reliability.

  • Current routing algorithms struggle to optimize energy consumption and network longevity simultaneously.

  • Existing approaches often fail to balance energy efficiency with key quality metrics like proximity ranging, interaction counting, and link effectiveness.

  • There is a need for advanced optimization techniques that can enhance NL while considering real-world constraints like latency and packet delivery ratio.

Similarly the contributions of the paper are

  • Developed the AESA and SOGA for optimizing NL in fully connected WSNs.

  • The proposed technique considers four critical parameters—proximity ranging, network lifetime, interaction counting, and link effectiveness—to enhance routing efficiency.

  • Conducted simulations comparing the proposed approach with existing routing protocols based on metrics such as average edge delay, latency, and packet delivery ratio.

  • Demonstrated that NL can be maximized while maintaining a balance with essential service quality criteria, ensuring improved performance in WSNs.

The rest of the paper is structured as follows. Section "System model" presents a comprehensive description about system models, section "Proposed Model" describes the proposed methodology, detailing the AESA and SOGA for network lifetime maximization. Section "Experimental results and discussions" provides simulation results and a comparative analysis with existing routing protocols. Finally, Sect. 5 concludes the paper with key insights and suggestions for future research directions.

System model

In a fully networked Wireless Sensor Network (WSN), sensors are distributed randomly and uniformly throughout the sensor field. Figure 2 illustrates the process of sensor nodes joining a WSN network. To establish communication with any other sensor in the network, a node must first initiate a session. Additionally, sensor nodes continuously monitor and update the distances (d1, d2, d3, …) between themselves and other nodes, transmitting this information to the destination whenever changes occur. As the number of nodes increases, network complexity also rises.

Fig. 2
figure 2

Fully connected WSN with allowed and pending sensor nodes.

Ideally, sensors should be positioned at opposite ends of the field to maximize the distance between them. For example, in a scenario where S, A, and B are sensor nodes, only the source (S) transmits information to other nodes (A and B), while A and B act purely as relays. However, in a fully connected WSN, the source can transmit directly to the destination without requiring intermediate relays. Since we are considering a fully connected network, multiple routes may be available for the source to reach the destination25. Therefore, choosing the optimal path is crucial, as the source continues broadcasting until its battery is depleted. In our model, only one Source-to-Destination route is activated at a time to ensure efficient data transmission.

According to Fig.ure 3, Route Lifetime (RL) is defined as the minimum lifespan of the nodes that form a given route. Routes R-1 through R-5 are the only ones that do not loop back on themselves. To determine Network Lifetime (NL), the highest RL values are summed after the Source battery is fully depleted. In the first iteration, we assume RL values for each route in the network as follows: R-1 = 100 hours, R-2 = 200 hours, R-3 = 300 hours, R-4 = 400 hours, and R-5 = 500 hours. To accumulate the longest RL values, the battery level of the Source must be monitored after every RL calculation. If residual power remains after the first iteration, data transmission can continue via alternate routes that do not depend on the depleted sensor nodes. This allows us to calculate the lifespan of all WSN sensor nodes while excluding nodes that have run out of power. Selecting the optimal NL route in a fully connected WSN is challenging due to the large number of available paths for data transmission. Therefore, the battery levels of all sensor nodes involved in transmission must be continuously updated, including the Source battery, which is checked after each end-to-end transmission. The RL calculation repeats until the Source battery is completely depleted26,27. Thus, the calculation of any Source-to-Destination (S-D) route depends on the RL calculation. As a result, NL can be determined in just a few RL cycles. Extracted from Fig. 3 omnidirectional communication network, Fig. 4 illustrates a one-way communication path.

Fig. 3
figure 3

NL and RL computations are shown using a small WSN with four sensor nodes.

Fig. 4
figure 4

A simple route extracted from Fig. 2

From Fig. 4, we observe that the nodes have the capability to transmit information to neighboring nodes unidirectionally as they utilize a single-string topology. We employ Spatially Periodic Time Sharing (SPTS)28 to establish the Time Slot (TS), where H hops between two nodes are considered simultaneously at time T for each extracted route. There are several techniques for Network Lifetime (NL) maximization, each with different definitions and optimization approaches depending on the specific application29,30,31.

Numerous strategies, including sleep–wake scheduling, resource allocation, routing and clustering, mobility, opportunistic transmission systems, and opportunistic resource distribution, play a crucial role in Network Lifetime (NL) maximization system design, as represented in Fig. 5. Resource allocation is one of the most important and widely studied NL maximization methods, covered extensively in academic literature32,33,34. Cross-layer optimization is commonly employed to address various design constraints, such as transmission and routing reliability, power management scheduling, optimal node deployment, throughput maximization, estimation quality, and rate adaptability in resource allocation. Consequently, multiple NL maximization strategies can be combined with resource allocation, as all these techniques incorporate some form of resource allocation algorithm. Multihop routing, traffic load balancing, interference control, and spatial reuse were found to significantly extend NL in an AWGN channel35. After sensors gather data, they transmit it to the sink node. Therefore, careful consideration is required in determining which sensors should transmit data to the destination node (DN) and at what time, especially when dealing with faded networks. Energy conservation can be achieved by temporarily activating sensors with access to stronger channels36. Based on existing channel characteristics, Phan et al.37 proposed an energy-efficient transmission strategy for NL maximization. In fading channels, broadcasts were initiated only when the channel quality exceeded a predetermined threshold. Another approach, described in38, considers end-to-end transmission costs, remaining battery charge in each sensor, and the probability of a successful transmission at every relay node. Using a coalition formation game-theory framework, Wu et al.39 developed an optimal transmission strategy for NL maximization. Sleep–wake scheduling can further extend network lifespan, even in cases where packet arrivals are infrequent40. This technique relies on selecting the appropriate sensors to remain inactive, thereby improving energy efficiency and route diversity. As a result, network reliability and NL are significantly enhanced. According to the virtual backbone scheduling philosophy41, traffic is routed exclusively through backbone sensor nodes, which consist of non-correlated sensors. This represents a novel approach to sleep scheduling, further optimizing network performance. Decisions regarding routing have a significant impact on network lifetime (NL) and energy distribution (ED) within a wireless sensor network (WSN). Maximizing ED by prioritizing sensors with the highest remaining battery power enhances the overall network longevity. These sensors should be utilized whenever a transmission from source to destination is initiated42. Route reuse depletes the battery power of sensors along frequently used paths faster than those on alternative routes, ultimately reducing NL. A more balanced routing approach that leverages the remaining battery energy of active sensors can prolong NL, making route optimization crucial for sustainable network operation43. The maximum-lifetime routing strategy balances traffic loads among sensor nodes near the sink node to prevent sensor overload. However, in battery-powered WSNs, the energy demand (ED) for long-distance communication with remote nodes remains a challenge. A multi-tiered network architecture can help sustain network activity over an extended period. To further enhance WSN longevity, the network can be divided into multiple clusters, each managed by a high-energy cluster head44.

Fig. 5
figure 5

Techniques for NL maximization.

An alternative approach involves mobile sensors or mobile sinks, where each mobile sensor dynamically determines its travel path to ensure an equitable distribution of traffic load across the network45. This method prevents excessive burden on specific nodes and enhances network efficiency. Coverage refers to a sensor’s ability to detect events within a specific field or region, commonly known as sensing coverage. Multiple sensors may capture data from the same location, improving data quality and reliability but leading to redundancy and unnecessary energy consumption. To optimize energy usage, it is essential to critically evaluate which data should be transmitted to the base station. If an insufficient number of sensors are deployed, establishing a reliable connection to the base station or other sensors may become challenging. The network must ensure that sensors have predefined high-quality communication links to facilitate data transmission. Traffic balancing can be employed to activate the minimal number of sensor nodes required for complete coverage of a sensing area at any given moment, thus conserving energy46. For WSN sensor nodes to maintain full connectivity, they require omni-directional antennas. Establishing an efficient routing path from source to destination depends on the omni-directional strategy47. Once the optimal route is determined, unidirectional communication takes over, ensuring data flows exclusively along the selected path. Sensor nodes typically use half-duplex communication, meaning they can only transmit or receive at any given time, not both simultaneously. The characteristics of an Additive White Gaussian Noise (AWGN) channel are determined by noise power at the receiver and the path-loss model. To enhance system performance, Bit Error Rate (BER) vs. Signal-to-Interference-plus-Noise Ratio (SINR) look-up tables (LUTs) define the required SINR for maintaining a specified BER target. In SINR calculations, interference is treated as equivalent to noise. The system model demonstrates that Convolutional Coded (CC) soft QPSK outperforms CC hard QPSK and uncoded BPSK in AWGN transmission, provided that SINRs exceed 4 dB. CC soft QPSK ensures the lowest possible SINR while maintaining a BER of 10⁻2, making it highly efficient. On the other hand, CC hard QPSK prioritizes power savings, making it the most energy-efficient option. Thus, the WSN system model should adopt a similar approach for maximizing NL, optimizing energy consumption, and improving network sustainability.

Proposed model

Our model introduces a unique two-stage lifespan assessment method to evaluate network longevity (NL) in a simplified scenario48. The first stage is linked to the Minimal Node Lifetime Maximization (RL) phase, where the goal is to maximize the operational lifespan of individual sensor nodes. Since communication is lost when any node in the route fails, the routing strategy ensures that data is transmitted through as many nodes as possible before reaching its final destination. Each route node can only communicate with nodes within a two-hop radius. The maximum RL for each node can only be determined after its battery is fully depleted. Therefore, the second stage of the NL computation involves summing the maximum RL values across all nodes. At the end of each RL computation, end-to-end transmission is used to update the remaining battery levels of the sensor nodes along the optimal route. The process continues until all nodes are completely drained of energy. To determine the final NL, the highest and lowest RL values are summed and subtracted iteratively until the source node’s battery is exhausted. The NL computation considers several factors, including node availability, connectivity, and service interruption tolerance. A parameterized version of the NL specification, as detailed in49, enables flexible adaptation to various network conditions. The NL definition allows for customization by including or omitting specific objectives, making it applicable to a wide range of wireless sensor network (WSN) scenarios.

Route lifetime maximization

The maximization of NL criteria is divided into two stages. The first stage involves the formulation of the system model, which establishes the string topology. The second stage focuses on selecting the best-known route50. In the second step, an algorithm is developed to maximize the net gain (NL) by summarizing all RL values in the WSN. After discussing the system model, we proceed to define the general optimization problem, which serves as the initial step in NL maximization. To maximize node lifespans, we optimize transmission range (TR) to the greatest extent possible while adhering to the system model’s constraints. All other network actions are assumed to have minimal energy dissipation (ED) in our estimates. Since sensors only consume energy during transmission, we set Psp = 0 and ui = 1 to simplify calculations. This problem can be solved using linear programming techniques, as it is a convex optimization problem. CPLEX is employed to determine the maximum RL of routes in a fully connected WSN. Consequently, calculating RL values and selecting the best RL-aware path are the first steps in maximizing NL51.

By deploying and distributing S nodes randomly and uniformly, the NL of the Wireless Mesh Network (WMN) is maximized when sensor node (SN) batteries are depleted52.

To determine the optimal routing path, the following algorithms are used:

  • Single Objective Genetic Algorithm (SOGA): Explores the largest feasible solution space to find the simplest yet optimal route.

  • Advanced Exhaustive Search Algorithm (AESA): Focuses on identifying high-traffic paths to enhance network efficiency.

By implementing these approaches, the network achieves efficient traffic balancing and prolongs the lifespan of WSNs.

As shown in Fig. 6, each algorithm begins by forming a fully connected network. The proposed algorithms then introduce mechanisms for efficient route discovery and evaluation. For each route selection technique, route information is utilized to compute RL values. It is crucial for NL calculations to account for remaining battery life, as sensor nodes (SNs) depend on it. When the number of nodes in a fully connected network increases, the number of possible paths grows exponentially53. Before describing our proposed methods, we first analyze the complexity of a fully connected network. Many real-world applications benefit from short-range, densely deployed sensor networks54,55, where each sensor between the source and destination can function as a relay. For instance, in battle zones, non-rechargeable sensors may be widely dispersed to maximize network uptime while minimizing power consumption. To achieve a fully connected WSN, such applications may require direct communication between nodes. A fully connected WSN enables multiple communication pathways. However, as S increases, the exponential growth in the number of possible non-looping paths introduces significant complexity concerns. Table 1 illustrates how the total number of different non-looping paths increases with node count56, considering the associated complexity trade-offs. Table 1 demonstrates that as S increases, complexity escalates exponentially. The complexity of an algorithm is directly related to the number of cost function evaluations (CFEs) it performs, which serves as a measure of algorithmic complexity.

Fig. 6
figure 6

AESA and GA general-purpose NL computations.

Table 1 Number of non-repeating routes.

Advanced exhaustive search algorithm (AESA)

The Advanced Exhaustive Search Algorithm (AESA) is used to maximize the NL, as shown in this algorithm. The input section of S allows the selection of several parameters, including the desired SINR, the number of trials n, and the initial battery capacity Ex. To summarize, the Source is always the first node, while the Destination is always the last node in the graph. Assume a WSN with 10 sensor nodes is fully operational. The Source is uniquely assigned a value of 0, and the Destination is assigned a value of 9. A fully connected network with S nodes is then established. The sensor field is defined as an (xmax, ymax) m2 area, with a single sensor source at (0,0) and a destination node at (xmax, ymax). This setup ensures that the maximum possible distance exists between the source and destination. Meanwhile, all other sensors are mobile and are distributed uniformly. As a result, a distance matrix can be used to efficiently record the distance between any two nodes in the network. For a specific NL calculation, the positions of all sensors in the WSN remain fixed, as the network is stationary. When the routing matrix for each route is properly arranged for RL computation, the network’s pathways are systematically connected. Interference terms are identified and calculated for each SPTS parameter T using active connections for each TSn. This method detects interference nodes and their gain matrices Gi,j within the same TS. RL values are computed for each optimization function call based on all pathways identified by the ESA. In the WSN study, RL results are now available for all possible routes in a fully connected network. When multiple routes have the same maximum RL value, RSSs are introduced to differentiate them. Four different RSS strategies are analyzed based on their potential applications. RSS-LTED (Lowest Total Energy Dissipation) selects the path with the lowest overall energy dissipation (ED). RSS-MNOH (Minimum Number of Hops) assumes a one-time unit delay for all sensors due to transmission delays at SNs and intermediate nodes, preferring the shortest path for data transmission. RSS-LLBAT (Largest Remaining Battery Power) considers battery power levels in route selection and chooses the route with the sensor node having the highest remaining battery power. RSS-RRSEL (Random Route Selection) uses a stochastic approach for route selection, considering all routes with the highest RL value and selecting one randomly. Since the route selection process is based only on paths with the highest RL values, we expect that the NL results from these different RSS strategies will be comparable. For end-to-end transmission, the RSS of the best-selected RL route is utilized.

The “transmission phase” refers to end-to-end transmission57,58. It is evident that a transmission phase for RL-aware traffic will occur along the reference route. This communication depletes the batteries of the sensor nodes involved. While the SN battery is still available, an enhanced ESA can utilize the remaining battery power to identify the next optimal RL-aware route for a fully connected WSN, starting from transmission phase one. In other words, Algorithm 1 will attempt to find the best route again if the Source has sufficient battery power. The summation of past transmission phase maximum RL values is used to determine NL in cases where the battery is completely depleted. Depending on the current battery status of the sensor nodes, this process of route computation or transmission phase may be repeated multiple times59.

The upper BER limit of the WSN can be determined by identifying the network’s highest E2EB. Consequently, the E2EB path is widely used within the RL community. In other words, the best RL-aware routes may exhibit the highest E2EB, as they efficiently manage power consumption. This optimization problem focuses on maximizing net loss (NL) while minimizing quality of service (QoS) degradation. Therefore, identifying the optimal RL-aware route with the highest E2EB is sufficient to determine the maximum limit of the WSN’s E2EB. To reduce transmit power per link, we demonstrate that each connection attains the exact SINR values required. The only way to minimize transmit power is to maintain SINR as close to the target as possible for each link. This implies that the network’s worst-case E2EB performance60 can be assessed by computing E2EB using Eq. (3) along the best RL routes and then using the route with the highest E2EB as an upper bound on the BER for the WSN. To initiate NL calculation, the ESA searches for the most feasible paths. For a fully connected 6-node scenario, as illustrated in Fig. 7, the ESA identifies four potential routes with the same maximum RL.

Fig. 7
figure 7

Fully connected WSN with 6 nodes.

The four routes in this WSN are [Source-A-B-Destination], [Source-A-B-C-Destination], [Source-D-A-B-Destination], and [Source-D-A-B-C-Destination]. This scenario considers only RSS-LTED, as it selects the route with the lowest overall ED. With this information, we can determine the most suitable approach based on specific requirements. Since NL depends on the Source battery level, the remaining battery (RBAT) after each RL calculation cycle is also recorded. If the Source battery is completely depleted, the information cannot be generated or transmitted to the Destination. A single NL computation experiment may involve multiple iterations of RL calculations, and the number of iterations is not fixed. The energy consumed at the SN after each RL calculation may also impact the recharge time of the SN. For this reason, the Destination is excluded from the battery charge update list, as it is already connected to a power source. Figure 7 illustrates a six-node, fully connected WSN for updating battery charge. This means that while a sensor node is actively involved in end-to-end transmission, its battery capacity is updated and reserved at 5,000 Joules per sensor node in the order of [Source-A-B-C-D]. Depending on the selected transmission route, each sensor node’s battery drains after every RL computation cycle in the WSN.

Single objective genetic algorithm (SOGA)

In the ESA run-time simulation study, S = 6 nodes were used, but the approach can be easily adapted to any number of nodes. The complexity of a route in the WSN plays a crucial role in determining its NL. For example, when AESA is used to compute NL, the S = 6 scenario in Fig. 7 explores 65 possible non-looping alternative routes, whereas the S = 10 case in Table 1 introduces 109,601 distinct routes. To prevent excessive computational complexity, the exponential growth in the number of different routes (from 65 to 109,601) should be controlled, as exhaustive searches through the entire WSN during each iteration would be computationally intensive61. For instance, a large-scale distributed network with numerous sensor nodes may have several unique paths. Our WSN methodology is not restricted to fully connected networks but can also be applied to any real-world network. To reduce the computational complexity of AESA in WSNs with numerous distinct routes, a Singular-Objective Genetic Algorithm (SOGA) is employed. SOGA is inspired by evolutionary biology and incorporates genetic mechanisms such as inheritance, selection, and crossover. Before delving into the mechanics of SOGA, it is essential to understand some fundamental evolutionary biology concepts and their relevance to this study. SOGA’s genome consists of sequences of numbers representing individual routes with unique sensor node indices. In this context, a sensor node is referred to as a chromosome-specific node62. A chromosome corresponds to a SOGA member that contains information about a particular route. The fitness function evaluates a chromosome’s ability to achieve a given objective. It is used to analyze route data for each participant and compute the RL fitness value. The fitness function determines the quality of an individual solution, as a better route results in a higher fitness value when maximizing NL. Figure 8 illustrates the entire operation of SOGA. The first step in identifying optimal solutions involves creating a population and evaluating its fitness functions. While a genetic algorithm remains fundamentally the same, modifications to its operators enhance its efficiency in this specific application.

Fig. 8
figure 8

General SOGA architecture for NL maximization.

Either a superior solution has been identified, or the maximum number of economically viable generations has been reached. The number of generations in SOGA can be adjusted to strike a balance between performance and complexity63. Since a population consists of many individuals, selecting the most promising candidates is essential for improving the overall solution quality. As shown in Fig. 8, the selection operator enhances population quality by increasing the likelihood that high-quality individuals will pass on their fitness traits to the next generation. A binary tournament selection (BTS) is used to divide the existing population into two sets, with the best individuals in each set competing against each other. A random member from each set is then selected for a fitness competition, and ultimately, a parent is chosen based on their ability to produce a strong and fit offspring. During crossover, chromosomes may be split at a common gene (sensor node), allowing one half of an individual to be combined with the other half, and vice versa. This process, known as the single-point crossover technique, produces new individuals referred to as children, who are expected to inherit beneficial traits from their parents. In our scenarios, when applying a mutation operation to a gene, one of three distinct mutation procedures—node replacement, node removal, or node insertion—is selected with equal probability. More details on SOGA will be provided in the next section. By testing the fitness of new candidate solutions, the mutation operation enhances the diversity of the population. Consequently, using the genetic approaches described above, we can infer that the first generation (iteration) consists of multiple individuals (potential solutions). Over successive generations, individuals are expected to evolve, ultimately leading to improved solutions64.

The solution space is searched using brute-force methods by AESA, which examines all possible permutations, whereas SOGA employs genetic operators to conduct an intelligent search across the solution space65. The initial step is to construct a fully connected, randomly and uniformly distributed WSN using sensor coordinates. When a population of ind = 48 individuals is generated, a random route from the WSN’s fully connected network is assigned to each member. In this case, a fitness function is not evaluated since the route information of the participants is merely gathered. Consequently, the fitness values of these individuals remain unknown. Dual-simplex optimization is used to evaluate these routes and their associated distance matrices, with each RL evaluation described by its fitness value. The fitness array returned by our dual-simplex optimization approach includes RLs, node energy consumption, and link transmit power for each function call. Transmission distance can be increased by using multiple single-antenna-aided transmitters, which create distributed antenna arrays that generate phase-coherent combined waves directed toward the intended receiver. Since the ED is shared among multiple transmitters, each emitter can reduce its transmission power. However, repeatedly using the same transmitters may fully deplete the battery of these sensors. As a result, coverage may be reduced in a specific region due to malfunctioning or depleted transmitters.

Maximizing NL in WSNs involves trade-offs with key performance metrics. Energy-efficient techniques can reduce transmission frequency, potentially lowering the Packet Delivery Ratio (PDR), but adaptive transmission and multi-path routing help maintain reliability. Similarly, NL-focused routing may increase latency, requiring hybrid approaches to balance energy efficiency and low delay. While reducing energy consumption is crucial for extending NL, it may weaken network connectivity, which can be mitigated using clustering and data aggregation. Additionally, prioritizing energy-efficient paths can lead to unstable links, making it necessary to integrate link quality metrics into routing decisions. Furthermore, optimization techniques like Genetic Algorithm (GA) and Exhaustive Search Algorithm (ESA) improve NL but introduce computational complexity, which can be managed through lightweight heuristics. Scalability is another challenge, as NL-focused algorithms may not perform efficiently in large networks; hierarchical clustering and localized decision-making address this issue. The proposed AESA and SOGA methods optimize NL while effectively balancing these trade-offs.

Experimental results and discussions

The number of nodes in a fully connected network is S = 4, 5, 6, 7, 8, 10, 15, 20. In S = 7, there are 326 non-looping routes, while in S = 10, there are 109,601 non-looping routes. Although the number of connections in a fully connected network is not directly considered when analyzing the complexity of specific WSN routes, it is factored in when evaluating the overall complexity. This means that any dispersed network with many nodes but fewer communication links may benefit from our approach, which is designed for fully connected networks. For a WSN with S sensor nodes, a sensor field of 20 × 20 m2 is considered. To ensure the maximum possible distance between the source and destination, the sensors are positioned at the corners of the sensor field, at (0,0) and (20,20). This ensures that the source and destination always maintain the same distance. To achieve the most efficient single-hop transmission across the longest possible distance among various available paths, the precise locations of both the source and destination play a crucial role. By evaluating the various routes available within the WSN, end-to-end transmission is designed to maximize the number of nodes (NL) used in routing. The experimental results for NL are obtained under a continuous transmission scenario, referred to as "continuous-time NL." The term “NL” in this work specifically refers to continuous-time NL. However, the NL values in this study are projected to be significantly higher than those reported in our previous publications33,35. A sensor cannot transmit through a lower-dissipation route due to the constraints identified in our prior studies33,35, where NL was calculated for a string topology. However, in our case, the source is able to employ a greedy-ED strategy to select the most RL-aware route for transmitting information until the source battery is completely exhausted. This approach allows the source to utilize alternate routes, ensuring efficient transmission even as battery levels deplete.

Additionally, the NL calculation consists of summing multiple distinct RL values, significantly extending the NL until the source battery is completely drained32,33 by utilizing the largest RL value calculated across the alternative routes. With p = 3 and a receiver noise level Np = 60 dBm, we develop an assumed AWGN channel propagation path loss model. An SPTS scheduling approach is implemented, which is a TDMA-based scheduling method with TS = 3, where each link operates within a TDMA frame containing NTS = 3 TDMA slots per sensor. To evaluate the NL performance of the WSN, different target SINR thresholds, ranging from 0 to 10 dB, are tested. The sensors are powered by 5000-J alkaline batteries. For clarity, our simulation settings are as follows: in all SOGA cases, we used ind = 48. These parameters are applied to calculate the RL for each NL trial, and the RL is averaged over 5000 trials. This process is performed when AESA and SOGA generate an NL value using the dual-simplex function. In some evaluations, we do not specify a target SINR or RSS, as the focus is solely on comparing the computational complexity of the algorithms. Since CFEs are not influenced by the planned SINR or RSS, we observe the same level of complexity across all techniques. Table 2 presents the various simulation parameters used for the analysis.

Table 2 Simulation parameters.

To maximize NL, the SOGA’s optimality analysis is illustrated in Fig. 9 for S = 4 and S = 6 sensor nodes. It is also shown for S = 8 and S = 10 sensor nodes when gen = 3 and gen = 12 generations are used. SINR targets are set at 0, 0.5, 1, …, 9, 9.5, and 10. However, other RSS values exhibit trends similar to RSS-NL. The LTED’s ideal NL can be achieved more quickly with fewer generations when using a smaller number of nodes. This trend has been observed in the analysis. The graphs indicate that after a few generations, for S = 4, the NL outcomes consistently match the ideal values, as shown in Fig. 9. Increasing Ngen for S = 4 does not improve the NL results and only adds unnecessary complexity. Increasing V requires higher computational complexity to achieve the best NL. For example, the SOGA’s performance slightly declines when compared to ESA’s optimal NL for S = 6 if gen = 3 is used. In fixed-generation systems, increasing S widens the gap between optimal and suboptimal NL values due to an exponential increase in the number of possible non-looping paths. To achieve a near-optimal NL, computational complexity must be increased, necessitating a higher gen value. For S = 10, significant differences in NL solutions are observed for different gen values, such as gen = 9 and gen = 21. Lower complexity results in a suboptimal number of zeroes (SOGA), whereas SOGA can only approach the ideal number of zeroes at higher complexity (S = 10 and number of zeroes = 21). The complexity of the system model has a significant impact compared to its deviation from the optimal model, which will be discussed later in this section. According to assumptions based on a 2 dB SINR, adding a fifth sensor node to a four-node fully connected WSN or a sixth sensor node to a five-node fully connected WSN can extend the network lifetime by 45,000 h. However, when the WSN operates at an SNR of 10 dB, the NL improvement is reduced to approximately 5,500 h. As the number of nodes in the network increases, the computational complexity of the method also rises. NL evaluation using the ESA is widely regarded as the most practical approach available today and is used to determine the upper limit of the true NL achievable by SOGA. As shown in Fig. 10, SOGA is capable of achieving the optimal NL when S = 4 or S = 5 with gen = 3. However, for S = 6, 7, 8, and 10, an increased gen is required to reach the optimal NL. For example, when S = 6 or S = 7, SOGA provides suboptimal NL solutions with gen = 3. In the case of S = 7, the NL-AESA gap is significantly reduced, whereas for S = 6, the NL is close to the ideal value. For S = 4, 5, 6, 7, 9, and 10, we find that using gen = 3 strikes a good balance between achieving near-optimal NL values and maintaining a system that remains sophisticated yet manageable. Figure 11 illustrates the NL in AESA for different values of S.

Fig. 9
figure 9

To optimize the NL, SOGA’s NL was activated.

Fig. 10
figure 10

A comparison of AESA values for SOGA NL with various SOGA NL values.

Fig. 11
figure 11

NL in AESA with different values of S.

There are a number of different S and values that may be used to describe ESA RSSs in Fig. 12. Several routes have the same maximum RL, requiring the use of RSS. It’s important to choose a good route in this stage since the best route selected will be utilized for transmission, and sensors used are exhausted for the following iteration, therefore they must be updated. The differences between the RSSs are minimal for S values as low as 4, for example. Nevertheless, when S = 7, the NL of the RSSs analyzed is only slightly different. Because there are so many non-looping paths. There are a number of possible optimum routes in terms of LTED, MNOH, LLBAT, and RRS for the fully connected network. When S = 7 is used, the best NL for RSS-LTED is at 2 dB SINR, followed by RSS-LLBAT, RSS-RRS, and RSS-LNOH, and then RSS-RRS and RSS-RRS, before RSS-LTED. For RSS-LLBAT and RSS-LTED, we believe that their energy-awareness will result in a somewhat better NL than the other two RSS. RSS-LLBAT depends on the SN’s battery level, while RSS-LTED relies on the route’s total ED. As a result, in our situations, RSS-LLBAT and RSS-LTED often perform better in terms of their NL than RSS-RANR and RSS-MNOH, as shown in Figs. 12 and 13. In particular, the difference in NL is easily apparent when considering a larger number of nodes S. Instead of the NL discoveries associated with all of the gen values for different WSNs made up of S sensor nodes, as shown in Fig. 12, the near-optimal NL characteristics associated with SOGA’s near-optimal gen choices are shown in Fig. 13. Near-optimal generation choices and WSNs with S sensor nodes are shown in Fig. 13 to have the maximum NLs attained by SOGA, which is close to the benchmark values presented in Fig. 11. SOGA achieves a near-optimal NL identical to that in Fig. 12 for the equivalent RSSs in Fig. 13.

Fig. 12
figure 12

For various values of S, the NL of RSS.

Fig. 13
figure 13

Complexity differences between NL vs. SOGA.

The trade-off between NL and routing complexity is an important part of describing the system model under consideration. SOGA may produce near-optimal NLs with gen = 15 at a much lower degree of complexity for a WSN with S = 8 nodes. An almost-ideal NL value may be found by using the SOGA routing algorithm on a S = 10 node WSN. WSNs with S > 8 nodes and more than 1,957 different non-looping routes cannot employ ESA’s optimum NL because of the high computational cost of the AESA method. According to some, the complexity of a system doesn’t change much as S goes from 8 to 10. The computational complexity of a fully linked WSN is much higher in our cases because of the numerous non-looping routes. Because the number of non-looping pathways grows from 1957 to 109,601 from S = 8 to S = 10, the SOGA can manage the increased complexity, but the AESA is unable to.A certain NL value requires an average number of CFEs to be computed by both the AESA and SOGA, which increases the computational complexity of both systems. As a result, Fig. 13 depicts the achievable NL in relation to the needed number of CFEs.

The optimum convergence of the computed NL, as shown in Picture 13, explains the best gen choices provided in Fig. 12, as indicated in the figure above. It is shown in Fig. 13 that each generation’s projected NL value is enhanced by three points for each fully connected WSN with S nodes. It is not better, but it is more complicated. For S = 4, 5 situations, raising gen from 3 to 12 with 3-interval intervals hardly improves NL at all, whereas for S = 6, 7 scenarios, it barely improves the NL at all by increasing gen from 3 to 12. It’s clear that increasing gen from 3 to 21 improves net loss significantly in the S = 10 situation, and this is the case even after the net loss has reached its ideal value of 21.

Figure 14 gives the Comparative study of AESA and SOGA for a range of S values. CFEs required to compute NL using ESA and SOGA for each generation are displayed in Fig. 15 when the number of nodes is S. As an upper limit on the real NL, one may compare the number of CFEs required to get the ideal NL for a WSN with S nodes. For a WSN with S sensor nodes, Fig. 15 displays the number of CFEs required to obtain a near-optimal NL. The AESA beats the SOGA when striving for near-optimal NL values, as seen in Fig. 15. This is due to the fact that each iteration of gen evaluates a larger number of people, i.e., ind = 48. Consequently, each iteration of the RL calculation needs at least 48 CFEs to assess the paths represented by the ind = 48 people. Keeping in mind that one NL calculation may need multiple RL computation iterations, leading to a bigger number of CFEs, is important to keep in mind while doing this analysis. It takes 48 CFEs to do the simplest of real-time (RL) calculations, which uses the battery entirely and returns the NL result.This is more than twice as many as in the scenarios of S 7 for the ESA. Figure 15 shows that the AESA’s computational complexity is equivalent to the SOGA’s at S = 7, and that it increases exponentially for S greater than that value. If S is more than 7, we may deduce that SOGA is less complicated to implement than AESA. Look at Fig. 15, which shows that the SOGA is 2.56 times more efficient than the ESA in locating a nearly ideal NLS for S = 8, as shown in Fig. 15. Raising S in SOGA finds near-optimal NL values, but raising S to find the optimum NL values is exponential. For example, getting the ideal NL for S = 8 is 5.46 times more hard than getting the optimum NL for S = 7. As shown in Fig. 15, the S = 10 scenario begins at 20 h of near-optimal NL with gen = 3 and ends at 55 h of near-optimal NL with gen = 21. As you can see, there are markers for 3, 6, 9, 12, 15, 18, and 21 generations piled vertically. From the bottom to the top, each generation is increased by three. As seen in Fig. 15, the "Near-optimal NL" points in Fig. 15 were selected because they are close to the "Near-optimal NL" values in Fig. 14. Using the S = 10 situation as an example, the NL converges to its ideal value at gen = 21 in Fig. 14, which is denoted by a diamond-marker in Fig. 15.

Fig. 14
figure 14

Comparative study of AESA and SOGA for a range of S values.

Fig. 15
figure 15

S = 4 E2EB vs SINR comparison.

What follows is a comparison of WSNs employing uncoded (BPSK) and half-rate CC decoding of QPSK schemes with respect to E2EB vs. SINR. Figures 15 and 16 shows a variety of RSS values for S = 4–10 nodes for the SOGA. E2EB for half-rate-CC soft-decoded QPSK is the lowest in all SOGA circumstances, as shown in Figs. 15 and 16 (except for one). A longer end-to-end hop is more likely when S is raised, which results in more accumulated bit errors throughout the message’s route to the Destination and decreases the E2EB of the system model under evaluation. The E2EB performance of RSS-MNOH is superior to that of the other RSSs in the majority of circumstances, particularly at lower S values. Because RSS-MNOH is a delay-aware system that relies on the shortest path, this is the primary reason for this. There are fewer hops and less bit errors on routes when each connection works at the same SINR. At larger S values, such S=10, the difference in E2EB performance between RSSs seems to be less pronounced, as seen in Fig. 16 by how closely the E2EB curves overlap. For a large number of different routes, RSS is unnecessary since the probability that just one route carries the maximum number of connections is extremely high for a high S and many distinct routes. Some routes may have the same amount of hops while others may have the maximum number of NLs. RSSs always deliver E2EB with the same number of hops since there are always the same number of RL iterations. As a result, regardless of the RSSs, the E2EB performance will be comparable. Note that AESA’s performance is similar to SOGA’s if they are both measured within their measurement error.

Fig. 16
figure 16

E2EB vs SINR for S = 10.

This research examines the E2EB and SINR performance of WSNs with V sensor nodes using uncoded BPSK, half-rate CCI hard-coded and soft-coded QPSK MCSs over an AWGN channel. Only RSS-LTED is taken into account in Fig. 17 for fully linked WSNs with S = 4, 6, 8, 10 nodes in the SOGA. Figure 17 demonstrates how E2EB performance improves with node count. The SOGA WSN with S = 10 nodes has a higher E2EB than WSNs with fewer nodes. As a result, larger WSNs are more likely to get the maximum RL by using the optimum route with longer hops in each RL calculation iteration. Second, it is critical to use the worst-case E2EB estimate. We chose the longest hop route from each RL calculation’s optimal path. The NL calculation needs three rounds in order to be accurate, so we’ll assume that’s how it works. After that, we get the optimal route and the RL value associated with each iteration, based on the RSS. E2EB is computed for each route after three iterations have been completed and the worst E2EB value is picked, as we are trying to identify the top limit of the E2EB for the WSN study. Due to the special structure of the E2EB calculation, choosing the worst E2EB necessitates selecting the route associated with the longest hop. In bigger networks, as shown in Fig. 17, choosing the route with the worst-case E2EB results in greater E2EB since the longer the hops, the higher the E2EB. Figure 17 compares AESA and SOGA within the measurement error.

Fig. 17
figure 17

E2EB Vs SINR performance considering RSS-LTED.

The QoS of the system model under consideration is strongly influenced by the average NL vs E2EB trade-off. An AWGN channel-based soft-decoded QPSK MCS is used to evaluate WSNs’ average NL to E2EB performance. AESA and SOGA fully linked WSNs with S = 4, 5, 6, 7 and S = 10 nodes, respectively, are shown in Figs. 18, 19 for different RSSs. CC soft-decoded QPSK MCS 1/2-rate exceeds all others in E2EB performance in AESA and SOGA. When taking the E2EB of 103 as an example, the NL gain of the soft-decoded QPSK MCS is nearly four times more than that of the hard-decoded QPSK MCS in the ESA S = 4 situation. Over six times as long as uncoded QPSK MCS has an E2EB of 103, and more than four times as long as 1/2-rate QPSK MCS with an E2EB of the same value has an NL gain of 6 104 h. A significant increase in NL gain is shown with the addition of additional sensor nodes, with the NL gain in the S = 6 scenario reaching roughly 810 h of NL in contrast to uncoded BPSK and 515 h in comparison to 1/2-rate CC hard-decoded QPSK MCS. This gain is almost seven times more than that of hard-decoded QPSK MCS at half the rate, or about 10 times the NL of uncoded BPSK at S = 7. Figures 18, 19 and 20 indicate that for situations with the same number of nodes, the E2EB performance of SOGA and ESA are similar within measurement error, as revealed in the NL results.

Fig. 18
figure 18

Percentage of time spent in NL vs E2EB.

Fig. 19
figure 19

Percentage of time spent playing NL vs. E2EB.

Fig. 20
figure 20

For S = 6, the average NL against E2EB performance.

The E2EB analysis of S = 4, 5, 6, 7 nodes provided by ESA is thus performed for the appropriate SOGA scenarios. According to Fig. 21, an NL gain of 17 hours is achieved for the SOGA’s S = 10 scenario, which is shown in the figure, and 10 hours for the half-rate QPSK MCS at the same E2EB of 103 at the same S = 10. Note that the ESA’s S = 10 NL against E2EB performance curves could not be generated because of the system’s excessively complicated computations. Since the average NL vs. E2EB tradeoff for various RSSs and MCSs in the examined V sensor node-based full-connected WSNs offers network designers an understanding of how these two technologies interact for various applications

Fig. 21
figure 21

Percentage of time spent in the NL against E2EB.

For the WSN under consideration, we have found that our new NL maximizing strategy greatly increases its lifespan in comparison to our earlier investigations14,15. Applications needing long-term network connections, like as climate change monitoring, benefit greatly from NL maximizing. Environmentally hostile terrain may become inaccessible, and sensors’ batteries cannot be replaced, therefore network operations on the battlefield must be prolonged. To the base station, a specialized sensor may be needed. A sensor or a network of sensors near hostile targets may be the most vital source of intelligence. To maximize the NL, we assume that all other sensors are relaying these important bits of information, and hence utilizing these sensors as the more significant ones may help us preserve more energy. Figure 22 represents the average NL versus E2EB for S = 10.

Fig. 22
figure 22

Average NL versus E2EB for S = 10.

Conclusion

To verify that the system model assures the employment of alternate routes for end-to-end transmission, this study considers interference-limited fully linked WSNs formed of V nodes associated with a single source and destination, positioned at opposite corners of the sensor field. Using a system model that includes relays and decoders that can decode, and transfer information communicated, it is hoped that the source information will be sent to the destination. Allow SPTS TDMA scheduling to limit the possibility of interference by scheduling nodes to only communicate with each other at a certain distance T if they are scheduled at the same time slot (TS). A set battery capacity for each sensor node means we just consider the transmitting power when we evaluate the system. In addition, the worst case BER of a fully linked WSN is represented by E2EB. Each route’s linear optimization issue was solved using the AESA and SOGA. Notably, the ESA identifies optimum NL by comparing the SOGA’s NL performance against all the available solution candidates in the complete solution search space. Genetic operators are used to intelligently search over a small portion of the solution space in the SOGA, although this is a limitation of the design. Two stages have been defined for this system model, because the NL is a two-step process: Once all the battery power has been used, the first stage takes over from there. This is done by using the maximum-RL-aware routes to transmit all the data from the SN to the system model’s end. There are two stages to this process. The first is to acquire RLs until the SN battery is empty. The route with the greatest RL is chosen from a group of paths for end-to-end transmission. In addition to the RSS-LTED and RSS-MNOH formats, RSS-LLBAT and RSS-RRS are also offered. For networks with a high S, computing the NL may be difficult owing to the computational cost, which might lead to a large number of alternative routes that need to be assessed for their RL. When there are more nodes, the number of viable routes rises exponentially, hence NL maximization needs a technique with much lower complexity.