1 Introduction

The next-generation wireless sensor networks (WSNs) environment will be powered by a large number of tiny sensor-enabled devices that are designed to operate in the fields like smart building initiatives, automated location monitoring, indoor localizations, self-sustaining environment assessment and evaluation, smart home environment monitoring, intelligent systems for healthcare, future accurate forecasting of weather, fighting and controlling in battlefield, and intelligent operation of range of transport systems [1]. These sensor-enabled smart devices are used to effectively monitor various types of events which are purpose of interest in specified sensing fields and communicate their sensed observation data through wireless medium to the sinks, where computations are carried out and decisions are made [2].

However, these sensors are operated by coin-sized batteries and require human intervention to replace when required. Due to the limited and non-rechargeable batteries that are used as an energy or power source for the sensors, energy efficiency is a major concern, which has an effect on the network lifetime [3]. Hence, the major concern is to design a protocol which can reduce the energy consumption of individual nodes and thus support longer overall network lifetime for the next-generation WSNs environments. The sensors can be deployed in either planned or random fashion, depending on whether the sensing environment is known (planned) or not (random). Many research studies show that the clustering is used for energy constrain and maximizing network lifetime. In order to accomplish high energy efficiency and maximize network lifetime, sensors can be organized into cluster [4]. The cluster head election is an important aspect of WSNs, as designing a protocol for cluster-based communication, researchers face many problems due to complex nature of network topology to attain better energy efficiency [5]. The cluster head formation is based on the average energy consumption and residual energy of the neighboring sensors. To achieve the better energy efficiency, the sensor having no data packets to transfer to cluster head node can go into sleep mode, while sensor nodes with data can request to assign more time slot for transmitting the data. The cluster head receives the data packets from the cluster members, which forward data packets to sink node after data aggregation to omit redundant data, which in turn amortize the number of transmissions for saving the energy and bandwidth resources [6].

In WSNs, it is an essential aspect to balance the energy usage among sensors to improve network lifetime and reliability. The uniformly distributed nodes in a network balance the energy usage among nodes to prolong network lifetime, while non-uniform sensor distribution is considered less efficient [7]. Additionally, in a uniformly distributed sensor nodes, cluster head has uniform size which results in balanced energy consumption within the sensors, compared to the non-uniform sensor distribution, where energy usage of the sensors is more imbalanced [8]. The communication in WSNs can be intra-cluster or inter-cluster, in which the cluster head sensor uses time-division multiple access (TDMA) communication scheme to broadcast the schedule packet which contain the member information and slot number allocated to specific member sensor. The cluster head node allocates time slot to member sensors according to TDMA scheduling [9]. In low-energy adaptive clustering hierarchy (LEACH) protocol, the head of cluster node actually allocates the time slots for communication and provides information about timing and synchronization for all the sensors in the cluster, and the data packets are transmitted by only one node in the cluster for every allocated time slot for communication [10]. For a clustering-based communication, the sensor-enabled nodes liaise with their head sensor node in the cluster. Similarly, the head of the cluster in the group liaises with only the base station (BS) node using a uniform time slot assignment scheme for same next-generation WSNs environment [11]. This way of communication is not appropriate for the nodes existing in different environment.

To overcome this situation, the head of the sensors in clustering can dynamically adjust the transmission slots to the member of the clustered sensors devices on demand. This should to done without using any uniform time slot assignment for the candidate sensors nodes for communication within the overall network. The sensors that fail to obtain timeslot are chosen to go to sleep mode for time and resource conservation and wait for next sessions to wake up and query cluster head for allotting time slots for transmitting data packets. The major contributions of the paper are as follows:

  • A clustering of sensors centric green routing protocol, called prediction oriented distributed clustering (PODC), is proposed for non-uniform distributed nodes inside wireless sensor networks. Here, the cluster head election is based on the average energy consumption and average residual energy of the neighboring sensors. For energy consumption constraint, the proposed algorithm dynamically allocates the time slot using round robin method.

  • A network model is presented, while categorizing PODC mechanism in two activities including setting up clusters of sensors and state of steady activity of sensors. Further, the cluster setting of sensors activity is described while categorizing in four subcategories including local information and information gathering activity, cluster head competition activity, sensor redundancy check and activation activity, and cluster design activity.

  • Finally, the proposed protocol framework is assessed to comparatively evaluate the experimental performance with the state-of-the-art techniques such as energy awareness and distributed networking mode of clustering (EADC) and scheduled sensor activity-based individual sensor energy awareness and distributed networking mode of clustering (SA-EADC) considering the green computing-related metrics including the overall lifetime of the sensor network and individual energy consumption in sensor enabled devices in the next-generation WSNs environment.

The rest of the sections in the paper is organized as follows. In Section 2, a qualitative review on green computing techniques for the next-generation WSNs is carried out. In Section 3, the details of proposed green computing model for next-generation WSNs are presented. A discussion on simulation setup and analysis of experimental results are performed in Section 5 followed by the conclusion and future work in Section 5.

2 Related work

Here, few energy-efficient cluster-based schemes are described along with scheduling algorithms for sensor nodes to exploit the redundant sensors and activity scheduling problems in WSNs. In [12], the authors suggested a cluster-based routing protocol, EADC along with routing algorithm for cluster-based communication for non-uniformly distributed nodes in wireless sensor networks. This algorithm makes cluster of even sizes considering competition range for balancing the energy usage among cluster nodes. In [13], the authors presented an improvement EADC as SA-EADC. It has utilized effective activity scheduling for enhancing the energy consumption performance of distributed clustering. The redundant sensors are selected to work by considering their residual energy. The proposed algorithm prevents unwanted sensing and data transmission unnecessary, which minimizes the overall energy usage of the sensors and increase life time of the network. In [14], the authors proposed local energy consumption prediction-based clustering protocol (LECP-CP). This protocol optimizes cluster radius size for minimizing the energy usage in the network. The proposed routing tree algorithm and clustering head election mechanism for communication between clusters considering prediction of local energy consumption ratio of the sensor nodes, shows an improvement in the lifespan of the network and energy requirement of the sensors.

In [9], the author presented a novel TDMA-based medium access control (MAC) protocol for energy conservation to improve the efficiency of transmitting the data for sensor nodes in cluster-based WSNs. In this protocol, the sensors which have no data to transmit, go to sleep mode while sensors with more data to transmit query the cluster head for allotting more time for transmitting the data. To achieve this, the round robin selection-based algorithm is implemented for the cluster head to minimize energy consumption and to improve latency. In [15], the author proposed a universal clustering-based routing (UCR) protocol for solving the hot spot problem in WSNs. It groups the sensors in to the clusters of unequal size. The UCR consists of an energy-efficient clustering algorithm for topology management, and a greedy geographic and energy aware routing protocol for communication between clusters.

In [16], a contiguous link scheduling algorithm has been proposed which is a novel interference free TDMA-based algorithm. For reducing the frequency of the state transmission, consecutive time slots are allotted to sensor nodes. The authors in [17] investigated an energy-efficient distributed clustering and scheduling algorithm for better performance of network. With this novel approach, the energy consumed by non-uniform sensor nodes is balanced for increasing the lifespan of the network. The literature review reveals that the clustering algorithms do not consider the efficient utilization of energy for improving the network lifetime particularly for large scale WSNs. In this paper, we consider this issue for intra and inter cluster communication with even and uneven node distribution.

A joint optimization problem, considering the network topology and unequal energy charge scheme for sensor nodes, has been formulated, and solved in order to extend the network lifetime and network coverage [18]. Authors proposed an energy-efficient traffic prioritization for medium access control protocol inside wireless body area networks. This protocol allocates slots with higher bandwidth and guards bands for reducing channel’s interference which causes longer delay [19]. Author proposed wireless energy harvesting, wake-up radio scheme, and error control to enhance the performance of wireless sensor networks while reducing its carbon footprint. Author solved joint maximization problem and network life time. The packet loss and data utilization are incorporated to provide more realistic data loss and utilization model for the wireless sensor network system [20]. A traffic priority aware wireless access technique has been suggested focusing on reducing energy consumption and delay for green computing in wireless body networks [21]. Similarly, for green computing in cloud environment, energy centric computing algorithms has been suggested focusing on reducing service layer agreement violation during executing tasks on cloud servers [22]. Toward green computing-oriented communication, various techniques have been reviewed considering their strengths and weaknesses for underwater wireless network environment [23]. Similarly, another green computing-oriented critical investigation has been presented focusing on medium access control design [24]. These recent works majorly focuses on green computing and communication in wireless network environment which is the main theme of this research in the paper.

3 Proposed green computing framework—PODC

3.1 System model

The design issue for the proposed algorithm PODC is to consider the efficient utilization of energy for improving the network lifetime. Further, the considerations and assumptions of the algorithms are as follows: There are n sensors deployed in 푀 × 푀 square field region in the network. The following assumptions and control messages are considered for deploying the network model (see Table 1). The symbols considered are described in Table 2.

Table 1 Nomenclature
Table 2 Control messaging in PODC
  • The sensors and sink node are stationary after deployment.

  • The (n—number of sensors) are evenly distributed within the square field.

  • The sensors are heterogeneous, w. r. to, energy and location information.

  • The nodes continuously communicate their cluster head which in turn communicate to the base station.

  • The nodes are distributed randomly within the network field.

  • All sensors use power control approach to vary sensor transmission power.

The radio dissipation model adopted from [25] is used for the energy consumption in the transmission of sensors. The energy consumption is depending on the sum of constant electronic components for energy consumption and amplifier energy which is proportional to the receiver distance. The energy consumed by radio for transmitting the l bits message is described in Eq. (1).

$$ {E}_{Tx}\left(l,d\right)=\left\{\begin{array}{c}l\left(\varphi +\alpha {d}_{\left(i,j\right)}^2\right)\kern2em {d}_{\left(i,j\right)}\le {d}_0\\ {}l\left(\varphi +\beta {d}_{\left(i,j\right)}^4\right)\kern2em {d}_{\left(i,j\right)}>{d}_0\end{array}\right. $$
(1)

where φ is the constant energy by electronic, α and β are the amount of energy per bit dissipated in the transmitter amplifier, and d(i, j) is the distance between sensor i and sensor j. The energy consumed by ERx(l) to receive the l bits message is given by Eq. 2.

$$ {\boldsymbol{E}}_{\boldsymbol{Rx}}\left(\boldsymbol{l}\right)=\boldsymbol{l}\times \boldsymbol{\varphi} $$
(2)

3.2 PODC

In this section, we describe the details of suggested protocol, PODC. The entire operation is accomplished in a round. The round is categorized into two activities: cluster set up activity and steady state activity. The cluster setup activity consists of four activities: local information and information gathering activity, cluster head competition activity, sensor redundancy check and activation activity, and cluster design activity. In the steady-state activity of transmission activity, it consists of k sessions with fixed period. A session is divided into contention period, data transmission period, and idle period. Assuming there is n number of non-cluster head required for n number of slot of communication. Since the TDMA slot is not allocated to the member sensors, the non-cluster head sensors will have no data to transmit in the current round. More time slot is assigned if the sensor detects any sensor data.

Finally, the sensor which have not detected or observed any sensor data goes into sleep mode for reducing the energy usage. The cluster head election process is based on local observation function, which consists of ratio of average energy consumption and average residual energy of neighboring sensor to the residual energy and expected consumption of the sensor itself to balance the energy consumption among the cluster head.

3.2.1 Cluster setup activity

In the cluster setup activity, the entire process consists of five activities: the information gathering activity of time duration T1, cluster head competition activity of time duration T2, sensor redundancy check and activation activity of time duration T3, and cluster formation activity of time duration T4.

Local observation and information gathering activity

The activity duration is defined as T1. In this activity, a node broadcasts the Node_Message to neighboring sensor with the transmission range r. The message has information: sensor id and residual energy. In response to the message, a node gets Node_Message from the neighboring sensors and it calculates the neighboring sensor distance through the receiver signal strength. Therefore, each sensor si calculates the average residual energy Eia of the neighboring sensor and average energy consumption Eiac of the neighboring sensor. Every sensor si can be defined if local observation (i) from their neighboring sensor by the Eq. 3 below.

$$ o(i)=\frac{E_{ia c}}{E_{ic}}\ast \frac{E_{ia}}{E_{ir}} $$
(3)

where Eic represents the energy consumed by si node and Ei represents the residual energy of si node. We describe the method to calculate the waiting time ti to broadcast Head_Message by

Eq. (4) below.

$$ {t}_i=o(i)\ast {T}_2\ast {V}_r $$
(4)

Here, T2 is the time duration for cluster head competition activity and Vrrepresents a real value for uniformly distributed nodes, which reduces the probability of broadcasting Head Message at the same time by two nodes [26].

Cluster head competition activity

After the completion of local observation and information gathering activity, the cluster head competition activity is started. In this activity, if a sensor si do not receive any Head_Message during time ti, the sensor itself broadcast a Head_Message to their neighboring sensors in competition radius Rc, or else it will not participate in competing for and becomes the plain sensor.

After the sensor si broadcast Head_Message, the sensor will wait 2*∆ti time to make sure that there exists a sensor in the cluster range. Here, the time ∆t denotes the time interval that guarantees that all neighboring sensors can receive Head_Message.

Activation activity and checking for redundant sensors

The activation activity and checking for redundant sensors begins at time duration T3. In this activity nodes, redundancy and activity checking is performed by plain nodes. All sensor knows their status (i.e., plain or cluster head). All plain sensors in the network cooperatively participate without considering to which cluster they belong. To achieve complete coverage, each plain sensor executes crossing coverage for redundancy check [7]. The sensors with more battery power have higher chances to be active in each round. If the nodes identifies itself a redundant one, it reacts by setting time in proportional to the residual energy. If redundant node does not receives Sleep_Message within its set time limit, a Sleep_Message is broadcasted by the node for the range of 2Rs along with current round status change as inactive and enters into sleeping mode of networking to reduce unnecessary energy consumption.

Cluster formation activity

The last activity of PODC algorithm begins at time duration T4. All the active plain sensor will choose the nearest cluster head according to the receiver’s signal power. The plain sensors will transmit a Join_Message to the nearest cluster head. After receiving the Join_Message, each cluster head creates a sensor scheduling list based on the received “Join_Message.” The cluster head also creates a Schedule_Message and send the message to the member nodes, which is used for identifying the transmission time of data for the nodes going into sleep mode for energy saving. Figure 1 below shows the cluster flowchart followed by the cluster setup algorithm.

figure a
Fig. 1
figure 1

Algorithm for setting up different clusters during the process

Once the cluster head is selected, the TDMA schedules transmission scheme (Schedule_Message) and starts a broadcast to the plain sensor within the range Ra and once the plain node is known, the TDMA schedule cluster formation activity is completed and the next activity steady-state activity (data transmission) begins.

3.2.2 Steady-state activity

The steady-state activity is consisting of K sessions for a round and a session has contention period, advertisement period, idle period, and data transmission period. In each session, data transmission period is variable; however, the data transmission period along with idle period is always fixed; also, all the sensors become active during this contention period. The contention period follows TDMA time slot schedule and each sensor is allocated a specific time slot to transmit 20-bytes of control message. In this slot time, the sensors will transmit the data if it had any or else it will keep the slot time empty. Figure 2 depicts the design of single round.

Fig. 2
figure 2

Design of a single round transmission

The transmission schedule is implemented using round robin-based method for assigning the slot for the observed data from a source sensor. The sensors with no data change to sleeping mode. If the sensors have observed data from environment, it will request to cluster head for allotting more time slots for transmitting the data. Here, the energy can be conserved by all sensors if they have no data to send and on the other hand, more time slot is allocated to the sensors that have more data to send. In this paper, a scheduling algorithm has been designed which allots the time slots for the nodes using round robin approach and maintain fairness. Assuming that the number of slots required is equal to the number of plain sensors within the cluster, considering some sensors have no data to send while other sensor have more data to send. In this situation, the sensors with more data will be given priority and allocated more time slot for transmission in round robin fashion so that fair allocation of slots can be possible.

As depicted in Fig. 3 below, the sensor S1 uses two slots for transmitting the observed data from environment; S2 sensor uses two slots for transmitting observed data from environment; S3 and S4 has no sensed data from environment; S5 uses one time slot for transmitting observed data from environment; S6 and S7 needs no sensed data from environment; S8 uses three time slots for transmitting data from environment; S9 needs no sensed data from environment and S10 uses two time slot for transmitting data from environment is given by slot allotment algorithm below.

Fig. 3
figure 3

TDMA slot allotment for cluster member sensor sensors

figure b

4 Results and discussion

In this section, the performance evaluation of the proposed protocol PODC is presented and is compared with SA-EADC and EADC protocols. For validation in terms of performance of the PODC, it is simulated over the Matlab with clustered wireless network for the area of dimension 200*200 m2. Some results are omitted which are caused by the signal collision and interference on wireless channels. The parameters used for simulation is provided in Table 3. For the simulation, two test contexts are considered and they are as follows:

  1. (i)

    Context 1: 100 sensors are randomly distributed over the area of 200*200 m2.

  2. (ii)

    Context 2: 100 sensors are non-uniformly deployed over the area 200*200 m2.

Table 3 Simulation parameters

The aforementioned contexts are used for validating the applicability of PODC protocol to save the energy and for increasing the lifespan of the network.

4.1 Network lifetime

Figure 4 depicts the network lifetime per round versus cluster range for context 1. The network life time is expressed when all the sensors are alive. The cluster range is set up between 100 and 220 m for both contexts. For precisely studying the impact of range of sensing on the life time of the overall networking configuration, the sensing range is set to between 20 and 25 m for both contexts. The results obtained in the simulation shows that the network life time per round increases as compared to EADC and SA-EADC. It can be also observed that the increase in the sensing range also increases the network life time of the system.

Fig. 4
figure 4

Network life time (context 1)

Figure 4 (context 1) presents the slightly longer network life time per round for the proposal as compared to the existing literature considered with 20 m of range for sensing. However, significant improvement in network life time is observed by increasing the sensing range to 25 m. The network life time is improved by 7.5% and 11% for the sensing range of 20 m as compared with the SA-EADC and EADC respectively. Also, the network lifetime improvement is achieved for sensing range 25 m is 23% and 27% as compared with the SA-EADC and EADC protocols respectively.

In Fig. 5 (context 2), for sensing range 20 m, network lifetime is improved by 7.6% and 10.3% as compared to SA-EADC and EADC respectively. Also, an improvement of 23% and 26% is noticed as compared with the protocol SA-EADC and EADC respectively for sensing range of 25 m. It can be observed that the performance of the proposed framework PODC has durable network lifetime per round as compared to the state-of-the-art techniques considered including EADC and SA-EADC. In particular, with 100-m cluster range, the network lifetime is 500 and 580 rounds, whereas it is 460 and 470 rounds for EADC and SA-EADC respectively. Similarly, the network lifetime is 480 and 540 rounds for PODC with 200-m cluster range, whereas it is 410 and 420 rounds for EADC and SA-EADC.

Fig. 5
figure 5

Network life time (context 2)

4.2 Energy consumption

Figures 6 and 7 show the average energy consumption by sensor nodes in constructing the network topology, transmitting data, and ideal stage energy wastage in sleeping state in each networking round. This is measured in terms of dissipated energy in joules versus cluster range in meters. The result obtained from the simulation shows that PODC sustains for increasing the lifetime of the network w. r. to EADC and SA-EADC. The average energy requirement for the sensors for every round increases slowly with the increase of the cluster size and there is decrement in the energy consumption per round is also observed when the sensing range of the protocol is increased.

Fig. 6
figure 6

Average energy dissipation per round (context 1)

Fig. 7
figure 7

Comparison of energy dissipation in each round considering context 2

In Fig. 6 (context 1), it can be seen the decrement in energy consumption by 15% and 24% for the sensing range of 20 m as compared with the SA-EADC and EADC, respectively. Also, a more decrement in energy consumption is noticed around 24% and 32% at a range of 25 m by PODC compared to SA-EADC and EADC protocol. It can be noticed that the performance of the proposed framework PODC is better in terms of lower dissipated energy in comparison with those of the state-of-the-art techniques considered including EADC and SA-EADC. For example, with 100-m cluster range, the dissipated energy is 0.27 J and 0.28 J for PODC, whereas it is 0.34 J and 0.37 rounds for EADC and SA-EADC respectively. Similarly, the dissipated energy reaches to 0.30 J and 0.31 J for PODC with 200-m cluster range, whereas it is 0.35 J and 0.48 J for EADC and SA-EADC.

In Fig. 7 (context 2), for the sensing of range 20 m, decrement in energy consumption of 15% and 24% is observed as compared to SA-EADC and EADC, respectively. It is also observed that the decrement in energy consumption of 24% and 32% for PODC at sensing range of 25 m as compared with the SA-EADC and EADC protocols.

4.3 Standard deviation of residual energy

In this section, standard deviation of residual energy (SDE) of sensor in each round is studied focusing on construction of network topology, transmission of data, and sleeping sensor node mode. Figures 8 and 9 illustrate standard deviation of residual energy versus simulation time. The comparison of standard deviation of energy at the end of simulation between PODC and state of art techniques is presented. The results obtained in the simulation show that the standard deviation of energy of PODC is lesser as compared with the SA-EADC and EADC.

Fig. 8
figure 8

Standard deviation of residual energy (context 1)

Fig. 9
figure 9

Standard deviation of residual energy (context 2)

In context 1 when 20 m is considered as sensing range, standard deviation of residual energy in the case of PODC is 0.1 and 0.01 SDE higher than state of the art protocol SA-EADC and EADC at the end of simulation. Because for PODC, the standard deviation of residual energy (SDE) is 0.34 SDE, and for EADC and SA-EADC are 0.44 and 0.35 SDE.

In context 2, when the sensing range is set to 25 m, the standard deviation of residual energy (SDE) in the case of PODC is 0.1 and 0.01 SDE higher than the state-of-the-art protocol SA-EADC and EADC at the end of simulation. Because for PODC, the standard deviation of residual energy is 0.32 SDE, and for EADC and SA-EADC are 0.42 and 0.33 SDE. It can be observed that the performance of the proposed framework PODC is better in terms of standard deviation of energy in comparison with those of the state-of-the-art techniques considered including EADC and SA-EADC. For example, with 50-s simulation time, the standard deviation of energy is approximately 0.15 for PODC, whereas it is 0.16 and 0.22 for SA-EADC and EADC respectively. Similarly, the standard deviation of energy reaches to 0.32 for PODC with 150-s simulation time, whereas it is 0.33 and 0.42 for SA-EADC and EADC.

5 Conclusion

In this paper, a novel clustering protocol, PODC, is suggested for WSNs, in which a new cluster head strategy for non-uniformly distributed nodes and network lifespan is introduced. Mathematical models are derived for scientific understanding of consumption of energy by sensors and the lifetime of overall wireless sensor network. The simulation results and analysis proves that overall energy consumption in sensors can be reduced by putting the sensors, which plays no part in transmitting the data into a sleep mode and given more priority and bigger time slots for the sensors who play important role in data transmission. The result shows the improvement in network lifetime and energy dissipation among sensor nodes. The suggested protocol is compared with SA-EADC and EADC, in terms of network lifetime and average energy dissipation among sensors with multiple contexts and it is observed that the PODC performs far better than them. Therefore, it can be safely concluded that PODC improves the network life span while maintaining original sensing coverage level for the network.