1 Introduction

To provide the large connectivity and applications like digital cities, smart agriculture, and intelligent healthcare, 5G becomes the integral part of the Internet of Things (IoT). To ensure the quality of service in the IoT applications the 5G acts as driving technology (Chettri and Bera 2020). In 5G and next generation cellular networks, the energy efficiency is a major factor which improves the overall performance. The device to device communication (D2D) ensures the energy efficiency in the wireless networks through different energy efficient algorithm and protocols. Due to its promising feature, the D2D communication becomes the subpart of 5G networks technologies (Hoyhtya et al. 2018).

In the present days, the numbers of IoT application are available in health sectors. In the pandemic COVID-19 situation, Indian government launched an Application named as Arogya Setu app to nurse the social distance by gathering the data of nearby surrounded persons. With keep in view of this problem, in the Arogya Setu app (an App by Indian government for gathering the information of and give awareness to the people during fight COVID-19), when we tried to use this application, the Bluetooth-ON prerequisite condition is imperative. But for these types of application, reliability and accessibility is exceedingly focal concern. Bluetooth requirement also drained the battery into some extent. To solve this problem, we have to provide a communication platform which ought to perform in licensed domain network and retain the power consumption. In our point of view device 2 device communication is probable solution for the above said problem.

We are highly motivated from this problem and try to give the solution through start working in the domain of D2D communication. As we studied that the energy efficient, low power device is always a concern for the purpose of communication, we work on the field of D2D communication and propose a novel Joint Low power and energy efficient resource management algorithm with mode selection for D2D communication in 5G and IoT application.

2 Related work

With the ingenious attribute and energy efficient spirit of D2D communication several underlay-in band cellular network models are optimized and analyzed to attain the resource allocation, mode selection, and power control strategies individually and jointly. For the mode selection the objective formulations are done based on maximization of quality of services (QoS) with the minimum transmit power (Shalmashi et al. 2014). A mode selection through the concept of guard-zone is proposed for the D2D communication network (Ye and Zhang 2015). Load balancing technique is used in the optimal mode selection by proposing the distributed algorithm (Liu 2016). Using the bandit model for the mode selection is done for the small cell D2D communication (Maghsudi and Niyato 2017). The resource management with dynamic power control for D2D communication shown using the Lagrangian decomposition method for optimal power allocation is illustrated (Jiang et al. 2018). For the optimal power control, the reuse of the orthogonal pilots describes the concept of sharing of resources (Ghazanfari et al. 2018). A joint algorithm mode selection, channel allocation and power assignment is represented to minimize the power consumption with the data rate requirement (Gao et al. 2014). A joint admission control, mode selection and power management problem is proposed to enhance the throughput with QoS and interference constraint (Azam 2016). The maximization problem in D2D femtocell with considering the mode selection, resource allocation and power assignment is represented and solved by using the Lagrangian dual composition method (Wang et al. 2016). Maximization of the energy efficiency is a significant paradigm of the D2D communication.

After studying and analyzing the above mentioned and energy efficient articles (Fodor et al. 2016; Han et al. 2011, 2019; Feng et al. 2013; Gandotra et al. 2017; Wang et al. 2014, 2018; Sheng et al. 2016; Xu et al. 2016; Cai et al. 2019; Awan et al. 2020; Lee and Lee 2019; Huang et al. 2019), we conclude that the several authors already epitomize the concept of energy efficient algorithms for the mode selection, resource allocation and power control individually or jointly. In the above-mentioned glimpse of the literatures, Shalmashi et al. (2014), Ye and Zhang (2015), Liu (2016), Maghsudi and Niyato (2017) represent the study of different methods of mode selection, literature (Maghsudi and Niyato 2017; Jiang et al. 2018; Han et al. 2019) discuss about the resource allocation with optimized power. The Joint algorithm with mode selection and channel allocation was done with optimal power distribution in Gao et al. (2014), Azam (2016), Wang et al. (2016). The data rate (Gao et al. 2014) and interference (Azam 2016) are the widely and singly used constraint for achieving the optimal results, via using Lagrange dual decomposition method (Wang et al. 2016) and it has been observed after literature review that several authors discuss about the different power control methods to achieve the low power and energy efficiency separately to resolve the mode selection and resource management issues. There is no work for building a model which ensures the optimal low power requirement with energy efficiency by including all (data rate, interference, low transmit power) constraints together with performing the mode selection, and resource allocation for the D2D communication.

In this paper, we study the individual and joint association of resource allocation, mode selection and power allocation for the energy efficient D2D communication. We propose a novel Joint Low power and energy efficient resource management algorithm with mode selection. To create the proposed algorithm, we formulate the combinatorial fractional optimization problem for the energy efficient D2D communication to address the resource allocation, mode selection and power control issues jointly. Mode selection is done by using the basic algorithm using probabilistic approach. For the attaining the maximum energy efficient value, iterative approach is applied to fractional objective function which is represented in the subtracted form. In each iteration the optimal power value with resource allocation with mode selection is achieved to maximize the energy efficiency (EE) and further Lagrange dual function having Lagrange multipliers optimize the power with low transmit power rate, data rate, and interference constraints as a Min–Max problem.

To propose the Joint Low power energy efficient resource management algorithm with mode selection, we utilize the concept of energy efficiency and Min–Max approach (Jiang et al. 2016; Mensah et al. 2016). The footprint of our proposed algorithm after the profound literature survey is mentioned below.

  1. 1.

    Formulate the novel problem which integrates the three problems mode selection, resource allocation and optimal power into one.

  2. 2.

    Propose the novel mode selection method with theorem for the D2D communication.

  3. 3.

    Use the concept of maximizing the energy efficiency (Jiang et al. 2016; Dinkelbach 1967)

  4. 4.

    Add the low transmit power rate, data rate, and interference constraints to the formulated problem to transform into Min–Max problem.

  5. 5.

    With help of Lagrange dual function and Lagrange multipliers (Mensah et al. 2016) concept (adding interference constraint), we further obtain the optimal transmit power with low transmit power rate, data rate, and interference constraints.

  6. 6.

    Finally, we propose novel joint Low power and energy efficient resource management algorithm with mode selection.

  7. 7.

    By evaluating the numerical results, we finally attain a framework which reflects the improvement in the related work of energy efficient resource management algorithms (Jiang et al. 2016) by keeping the view of Low power devices and power conservation with maximum energy efficiency.

The paper is organized as follows. Section 2 describes the formulated problem with system model. In Sect. 3, the proposed Joint Low power and energy efficient resource management algorithm with mode selection is presented. The algorithm for the mode selection, iterative algorithm for the maximum energy efficiency and the iterative algorithm using Lagrange dual function with Lagrange multipliers are described here. The numerical results using system parameters evaluate the different performance parameters of the proposed algorithm in Sect. 4. And, Sect. 5 concludes the proposed work with improvement in the past analogous efforts.

3 System model and problem formulation

We assume the uplink resources of cellular user equipment (CUE) are shared by the D2D user pairs (DU) and there is a random distribution of DU and CUE in the cell. In the single cell we consider that

$$\begin{aligned} & {\text{A}} = \left\{ {{1},{2},{3}, \, \ldots {\text{ A}}_{{{\text{cue}}}} } \right\}, \\ & {\text{B}} = \left\{ {{1},{2},{3}, \ldots ,{\text{B}}} \right\} \\ & {\text{C}} = \left\{ {{1},{2},{3}, \ldots ,{\text{ t}}} \right\} \\ & {\text{D}} = \left\{ {{1},{2},{3} \ldots {\text{t}} + {\text{A}}_{{{\text{cue}}}} } \right\} \\ & {\text{must}}\,{\text{satisfy}}\,{\text{that}}\,{\text{t}} \le {\text{A}}_{{{\text{cue}}}} = {\text{B}}\,{\text{and}}\,{\text{D}} = \left\{ {{\text{AUC}}} \right\} \\ \end{aligned}$$

where A, B, C denotes the set of CUE’s and the resource blocks RB and D2D users DU’s respectively, we assume that 1 time frequency resource block consists of one-time slot and 4 frequency subcarriers and jth resource block allocated to cellular user equipment are reused by the ithe mobile user MU with nth mode selection. Let us assume that Gij is the transmit power of the transmitter of the ith mobile user MU on the jth resource block RB and Gb denotes the base station transmission power. Let TDU and TCUE represent the data rate of DU and CUE respectively. By using the Shannon capacity formulae (Fan et al. 2017), we evaluate the mathematical formulae of TDU and TCUE (Fig. 1)

$$T_{CUE} (G_{ij} ) = B\log_{2} \left( {1 + \frac{{G_{b} hd_{b}^{ - \alpha } }}{{\sum\nolimits_{i = 0}^{t} {G_{ij} gd_{ib}^{ - \alpha } + N_{0} } }}} \right)$$
(1)
$$T_{DU} (G_{ij} ) = B\log_{2} \left( {1 + \frac{{G_{ij} gd_{ii}^{ - \alpha } }}{{G_{b} hd_{ib}^{ - \alpha } + N_{0} }}} \right)$$
(2)
$${\text{T}}\left( {{\text{G}}_{{{\text{ij}}}} } \right) \, = {\text{ T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right)\,when\,D2D\,user\,mode\,is\,active$$
(3)
$${\text{T}}\left( {{\text{G}}_{{{\text{ij}}}} } \right) \, = {\text{ T}}_{{{\text{CUE}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right)\,when\,Cellular\,mode\,is\,active$$
(4)

T(Gij) denotes as data rate of the communication, and whereas B, N0, dii, db, dib, α, t, h and g represents bandwidth, white gaussian noise, distance between the two user of ith D2D pair, separation between the base station and cellular user, distance between the ith D2D transmitter to base station, path loss exponent, number of D2D pair, shadow fading coefficient, and statistical distributed random effect of fading in the D2D pair environment respectively.

Fig. 1
figure 1

Cellular architecture with different DU and MU

Mode selection plays a vital role in the D2D communication. In order to achieve the mode selection, we consider the channel quality and the interference level with all fading or wireless issues. In the work, we adopt data rate metric for the mode selection of the communication.

When

$${\text{T}}_{{{\text{CUE}} }} > {\text{ T}}_{{{\text{DU}}}} ;{\text{represents}}\,{\text{that}}\,{\text{Cellular}}\,{\text{user}}\,{\text{Mode}}\,{\text{is}}\,{\text{active}}\,\left( {{\text{m}} = 0} \right)$$
(5)
$${\text{T}}_{{{\text{DU}} }} > {\text{ T}}_{{{\text{CUE}}}} ;{\text{represents}}\,{\text{tha}}\,{\text{D2D}}\,{\text{user}}\,{\text{Mode}}\,{\text{is}}\,{\text{active}}\,\left( {{\text{m}} = {1}} \right)$$
(6)

and

$${\text{T}}\left( {{\text{G}}_{{{\text{ij}}}} } \right) \, = {\text{ mT}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right) \, + \, \left( {{1} - {\text{m}}} \right){\text{T}}_{{{\text{CUE}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right)$$
(7)

The total power during the communication is

$$P = \sum\limits_{n = 1}^{{t + A_{cue} }} {\sum\limits_{i = 1}^{t} {\sum\limits_{j = 1}^{B} {y_{ijn} G_{ijn} m_{ijn} + P_{cd} + P_{cc} } } }$$
(8)

whereas, \(\sum {\sum {\sum {y_{ijn} G_{ijn} m_{ijn} } } }\), Pcd and Pcc denotes the total transmit power consumption, and the total circuit power consumption of DU and CUE respectively including battery backup

$${\text{P}}_{{{\text{cd}}}} = \, 0;\,{\text{for }}\left( {{\text{m}} = 0} \right)$$
(9)
$${\text{And}}\,{\text{P}}_{{{\text{cc}}}} = 0;{\text{ for }}\left( {{\text{m}} = {1}} \right)$$
(10)

In order to formulate the mathematical model of energy efficiency we use the Bit per joule metric and evaluate the optimal energy efficiency of the D2D communication after selecting the mode of the communication. The generalize formula of Energy efficiency is represented by ηEE

$$\upeta_{EE} = \frac{{\sum\nolimits_{n = 1}^{{t + A_{cue} }} {\sum\nolimits_{i = 1}^{t} {\sum\nolimits_{j = 1}^{B} {y_{ijn} T(G_{ijn} )m_{ijn} } } } }}{{\sum\nolimits_{n = 1}^{{t + A_{cue} }} {\sum\nolimits_{i = 1}^{t} {\sum\nolimits_{j = 1}^{B} {y_{ijn} G_{ijn} m_{ijn} + P_{cd} + P_{cc} } } } }}$$
(11)

Here, T(Gij) = mTDU(Gij) + (1 − m)TCUE(Gij) (for the D2D communication mode the value of m should be one only), and

  • yijn ∈ {0, 1} shows that jth resource block is allocated to the ith of the MU with nth selected mode.

  • mijn ∈ {0, 1} shows n mode selection with jth resource block is allocated to the ith of the MU.

The D2D energy efficient optimization problem can mathematically represent as

$$\mathop {Max}\limits_{{y_{ijn} G_{ijn} m_{ijn} }} \,\upeta_{EE}$$
(12)
$${\text{Subject to}}.{\text{ m}}_{{{\text{ijn}}}} \in \left\{ {0,{ 1}} \right\},\forall_{{\text{i}}} \in {\text{C}},\forall_{{\text{j}}} = {\text{B}}, \forall_{{\text{n}}} = {\text{D}}$$
(13)
$$\sum {\text{ m}}_{{{\text{ijn}}}} \ge {1},\forall_{{\text{n}}} \in {\text{C}}$$
(14)
$$\sum {\text{ m}}_{{{\text{ijn}}}} < { 1},\, \forall_{{\text{n}}} \in {\text{D }} \cap {\text{ C}}$$
(15)
$${\text{y}}_{{{\text{ijn}}}} \in \left\{ {0,{ 1}} \right\},\forall_{{\text{i}}} \in {\text{C}},\forall_{{\text{j}}} = {\text{B}}, \forall_{{\text{n}}} = {\text{D}}$$
(16)
$$\sum\limits_{j = 1}^{B} {y_{ijn} = 1,\forall_{i} \in C,\forall_{n} \in C}$$
(17)
$$\sum\limits_{i = 1}^{t} {\sum\limits_{n = 1}^{{t + A_{cue} }} {y_{ijn} \le 1,\forall_{j} = B} }$$
(18)
$${\text{T}}\left( {{\text{G}}_{{{\text{ijn}}}} } \right) = {\text{ T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \ge \, \upbeta ,\forall {\text{y}}_{{{\text{ijn}}}} \in {1}$$
(19)
$${\text{G}}_{{\text{b}}} {\text{h d}}_{{\text{b}}}^{{ - \upalpha }} \le \, \bar{\uplambda }, \forall {\text{y}}_{{{\text{ijn}}}} \in {1}$$
(20)
$${\text{G}}^{{{\text{min}}}} < {\text{G}}_{{{\text{ijn}}}} \le {\text{G}}^{{{\text{max}}}} ,\forall {\text{y}}_{{{\text{ijn}}}} \in {1}$$
(21)

whereas Gmin denotes the requirement of minimum transmit power of each DU for the purpose of the communication, Gmax shows the maximum transmit power of each DU, and β denotes the minimum rate requirement of each DU, λ shows the threshold value of the allowed interference from CU when shared the same resources with corresponding DU.

4 Proposed joint low power energy efficient resource management algorithm with mode selection

Our proposed joint algorithm has two subsections. One is iterative algorithm for the energy efficiency named as Algorithm II and the second is iterative algorithm to attain the optimal low power with all constraints using the Lagrange dual function and multipliers named as Algorithm III. In the work, due to the self-realizing quality of the novel proposed formulated problem Eq. 11, the Algorithm I automatically recalled for getting the solution according to the selection of the D2D user and CUE.

In the Fig. 2, the logical flow process of the proposed Joint low power and energy efficient algorithm with resource management and mode selection is illustrated. The aim of the process is to provide a framework that reflects journey for achieving the low power and energy efficient system with the resource management and mode selection for the D2D communication. The process starts with the initialization of all the variables mentioned in the above Eqs. 121. After attaining all the variables for the D2D communication scenario, the Algorithms No. 2 comes into the picture. The analyzer can use the Algorithm No. 2 for the attaining the energy efficient resource management with mode selection including power control. Inhibit quality of the Algorithm no. 2 (Step number 4) enforce the use of Algorithm no. 1 for the mode selection purpose. If the D2D mode is active, the process goes into the next step by following the Algorithm No. 3 to attain the optimized low power with low transmit power rate, data rate, and interference constraints with the use of lagrange dual function and lagrange multipliers otherwise go back into the first block for initiating the variables. The process would be complete after attaining the desired output from the proposed Joint Low power and energy efficient algorithm with resource management and mode selection.

Fig. 2
figure 2

Flow chart of proposed joint algorithm

4.1 Mode selection

In the mode selection, the selection of the D2D user and CUE is defined. In this approach it is decided by using the probabilistic theory that the particular Mobile user is going for the D2D communication or not.

figure a

Theorem 1

To prove

$${\text{T}}\left( {{\text{G}}_{{{\text{ijn}}}} } \right)\, = \,{\text{T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right)$$
(22)

when D2D mode is selected or active.

Proof

In this work the selection of mode depends upon the value of TDU and TCUE

  • TCUE > TDU; represents that Cellular user Mode is active (m = 0).

  • TDU > TCUE; represents that D2D user Mode is active (m = 1).

let assume that

$${\text{T}}_{{{\text{DU}} }} > {\text{ T}}_{{{\text{CUE}} }} \,{\text{and}}\,{\text{ T}}_{{{\text{DU}}}} >\upbeta$$

In this case the D2D user mode is active and value of m becomes one only.

From Eq. 7, we know that T(Gijn) = mTDU(Gijn) + (1 − m)TCUE(Gijn).

By putting the value of m = 1

$$\begin{aligned} {\text{T}}\left( {{\text{G}}_{{{\text{ijn}}}} } \right) \, & = {\text{1T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \, + \, \left( {{1} - {1}} \right){\text{T}}_{{{\text{CUE}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \\ {\text{T}}\left( {{\text{G}}_{{{\text{ijn}}}} } \right) \, & = {\text{ 1T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \, + \, \left( 0 \right){\text{T}}_{{{\text{CUE}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \\ {\text{T}}\left( {{\text{G}}_{{{\text{ijn}}}} } \right) \, & = {\text{ T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ijn}}}} } \right) \\ \end{aligned}$$
(23)

Hence proved. □

4.2 Iterative method for maximum energy efficiency

Our main objective is to maximize the ŋEE with subject to Eqs. 1321

Let k represents the maximum value of ŋEE, £ represents the value of the constraints Eqs. 1321. k may be defined as follows

$$k = \mathop {Max}\limits_{{y_{ijn,} G_{ijn,} m_{ijn} \in \pounds}} \left( {\frac{{\sum\nolimits_{n = 1}^{t + Acue} {\sum\nolimits_{i = 1}^{t} {\sum\nolimits_{j = 1}^{B} {y_{ijn} T(G_{ijn} )m_{ijn} } } } }}{{\sum\nolimits_{n = 1}^{t + Acue} {\sum\nolimits_{i = 1}^{t} {\sum\nolimits_{j = 1}^{B} {y_{ijn} G_{ijn} m_{ijn} } } } + P_{cd} + P_{cc} }}} \right).$$
(24)

Theorem 2

For the D2D communication the maximum ŋEE with joint mode selection is achieved if and only if

$$\mathop {Max}\limits_{{y_{ijn,} G_{ijn,} m_{ijn} \in \pounds}} \left\{ {\sum\limits_{n = 1}^{t + Acue} {\sum\limits_{i = 1}^{t} {\sum\limits_{j = 1}^{B} {y_{ijn} T(G_{ijn} )m_{ijn} } } } - k\left( {\sum\limits_{n = 1}^{t + Acue} {\sum\limits_{i = 1}^{t} {\sum\limits_{j = 1}^{B} {y_{ijn} G_{ijn} m_{ijn} } } } + P_{cd} + P_{cc} } \right)} \right\} = 0.$$
(25)

Proof

In this case for the D2D communication, joint mode selection is done in Eq. 25. By considering the Eqs. 7, 10, and 25 we get

$$\mathop {Max}\limits_{{y_{ijn,} G_{ijn,} m_{ijn} \in \pounds}} \left\{ {\sum\limits_{n = 1}^{t + Acue} {\sum\limits_{i = 1}^{t} {\sum\limits_{j = 1}^{B} {y_{ijn} T(G_{ijn} )m_{ijn} } } } - k\left( {\sum\limits_{n = 1}^{t + Acue} {\sum\limits_{i = 1}^{t} {\sum\limits_{j = 1}^{B} {y_{ijn} G_{ijn} m_{ijn} } } } + P_{cd} } \right)} \right\} = 0.$$
(26)

Now, the maximum ηEE is achieved if and if only Eq. 26 satisfies its conditions. □

The proof of this statement is similar with the proof in Dinkelbach (1967). It can be observed from Eq. 26 and Dinkelbach (1967) that the fractional objective function represented in the subtractive form same as the case (Ye and Zhang 2015). To obtain the objective function which is in the fractional form is solve by analyzing its subtractive form. Similarly, we focus on the objective function in the subtractive form.

Let kr denotes the temporary ηEE and γ1 denotes the convergence threshold value for the iterative algorithm.

figure b

4.3 Lagrange dual method use for optimum low power and energy efficient, resource allocation algorithm with mode selection

In this section we are using the Lagrange dual method for attaining the optimum minimum power for the above mentioned problem after following the (Algorithm I and II) mode selection, resource and power allocation. By using the Eq. 24, with considering Eqs. 1921, we can formulate the optimum power in Lagrangian form and can be written as follows:whereas u, v, w are the multipliers of transmission power constraint, data rate and allowed interference respectively. The Low Power optimization can be obtained by using Lagrange dual problem shown as

$${\text{L }}\left( {{\text{G}}_{{{\text{ij}}}} ,{\text{ u}},{\text{ v}},{\text{ w}}} \right) \, = {\text{ T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right) \, {-}{\text{ k }}\left( {{\text{G}}_{{{\text{ij}}}} + {\text{ P}}_{{{\text{cd}}}} } \right) \, - {\text{ u }}\left( {{\text{G}}_{{{\text{ij}}}} {-}{\text{ G}}^{{{\text{max}}}} } \right) \, {-}{\text{ v }}\left( {\upbeta \, {-}{\text{ T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right)} \right) \, {-}{\text{ w }}(\bar{\uplambda}-\bar{\uplambda}_{{{\text{ij}}}} )$$
$$\mathop {\min }\limits_{u,v,w} \mathop {\max }\limits_{{G_{ij} }} L(G_{ij} ,u,v,w);s.t.u,v,w \ge 0$$
(27)

By using the present Lagrange multipliers u, v, w, and Eqs. 1 and 22, we can find an optimal power allocation method shown as

$$G_{ij} = \left[ {\frac{(1 + v)B}{{(k + u)\ln 2}} - \frac{{(1 + w)(G_{b} hd_{b}^{ - \alpha } + N_{0} )}}{{gd_{ii}^{ - \alpha } }}} \right]^{ + }$$
(28)

where [x]+  = max [0, x], for updating the lagrange multipliers we use gradient method

$$\begin{aligned} {\text{u}}\left( {{\text{r}} + {1}} \right) \, & = {\text{ u}}\left( {\text{r}} \right) \, + \Omega_{{1}} \left( {{\text{G}}_{{{\text{max}}}} {-}{\text{ G}}_{{{\text{ij}}}} } \right) \\ {\text{v}}\left( {{\text{r}} + {1}} \right) \, & = {\text{ v}}\left( {\text{r}} \right) \, + \Omega_{{2}} \left( {{\text{T}}_{{{\text{DU}}}} \left( {{\text{G}}_{{{\text{ij}}}} } \right) \, {-} \,\upbeta } \right) \\ {\text{w}}\left( {{\text{r}} + {1}} \right) \, & = {\text{ w}}\left( {\text{r}} \right) \, + \Omega_{{3}} \left( {\bar{\uplambda}_{{{\text{ij}}}} -\bar{\uplambda}} \right) \\ \end{aligned}$$

whereas Ω1, Ω2, Ω3 are the step sizes.

The proposed algorithm for the optimal low power allocation using Lagrange dual function is mentioned in the Algorithm III.

Let rmax is the maximum number of iterations and γ2 denotes the maximum convergence threshold value for the iterative algorithm.

figure c

By following the above mentioned proposed algorithms one can achieve the low power energy efficient resource allocation with mode selection.

5 Results and discussions

In this section we evaluate the performance analysis of our proposed algorithm for D2D communication. We consider the single cell having Acue, t number of CUE and DU respectively within 200-m radius and the average power value of all D2D users are same. For the purpose of analysis, we considered the system parameters which are mentioned in Table 1.

Table 1 System parameter

By considering the above mentioned system parameters, first of the all, the mode selection is achieved which ensures that the particular mobile user is working as a D2D user or not by using Algorithm 1 and by following the Algorithms 2 and 3, we get the performance evaluation of low power energy efficient resource allocation with mode selection. Figures 2, 3, and 4 are representations are the outcomes of the Algorithm 2, and Fig. 5 illustrates the final step of proposed work using the algorithm 3.

Fig. 3
figure 3

EE versus iterations number

Fig. 4
figure 4

EE versus distance between D2D users

Fig. 5
figure 5

Data rate versus distance between D2D users

In Fig. 3, the EE versus number of iteration with t different number of D2D users (DU) is illustrated. It is observed that the Energy efficiency of the proposed algorithm increases with the number DU. As the number of D2D user increases we achieved the higher value of EE (Jiang et al. 2016). It is also observed that only 2 iteration process requires gaining the maximum energy efficiency (EE) value. In our proposed algorithm no. 2, by adding the optimal power with low transmission rate, data rate, and interference constraints using the (min–max problem) Lagrange dual function with Lagrange multiplier (Mensah et al. 2016), we achieve better performance that is shown in the Fig. 6.

Fig. 6
figure 6

Illustrate that our proposed algorithm, provide better performance in the terms of low transmit power value and energy efficiency

In Fig. 4, the energy efficiency versus distance between D2D users with different value of power value is represented. It is observed in the plot that the lower value of transmit power have the high energy efficiency and the energy efficiency is decreases as distance between the D2D user increases.

In Fig. 5, the data rate versus distance between D2D users with different value of power value is shown. Figure 5 shows the mutual relationship between the D2D distance and data rate. Higher power has high data rate and as the distance increases the data rate will decrease. As per Fig. 4 the low power object achieves the high energy efficiency and in the Fig. 5, it is shown that the high power attains the higher date rate, due to these behavioral representation of the Algorithm 2 requires the need of the importance to choose the optimal power value with including the data rate and all other constraints, which is further carried out by the Algorithm no 3. and Fig. 6 conclude the final representation of our proposed algorithm.

In Fig. 6, (EE) versus maximum transmitting power of D2D user is represented. Based on our proposed algorithm the resource allocation with mode selection, low power allocation strategies, and energy efficiency of the DU can be examined and is drawn in the figure. It is observed that higher value of maximum power threshold is required to achieve the greater energy efficiency to attain the optimal low power value Gmax. After numerical analysis the threshold value 0.002 w is obtained and set as a threshold for the proposed algorithm. It is observed that the energy efficiency increases with the increase of Gmax. When the proposed algorithm reaches the threshold value, the energy efficiency provides a fixed value which doesn’t varies with further raising the value of Gmax and we can get optimal low power energy efficient value.

In the Fig. 6, we can compare the performance evaluation of mentioned three scenarios proposed algorithm, Non-DR constraint, and Non- Interference constraint respectively. It is clearly visualized that proposed algorithm provides better energy efficiency (max value 5.32 × 108 bit/J/Hz) with increase in the maximum transmit power value comparison to the Non-DR constraint, and Non- Interference constraint. It is analyzed that the addition of optimal power with low transmit rate, data rate, and interference constraints improves our algorithm performance in comparison to the Non-DR constraint, and Non- Interference constraint.

It is seen from the Table 2 and numerical results that our proposed algorithm achieve better results from the prevailed researches carrying resource allocation with power management.

Table 2 Comparative table

6 Conclusion

In this paper, we proposed the novel low power energy efficient algorithm resource allocation algorithm with mode selection by formulating the optimal joint problem of mode selection, resource allocation, and power control using equivalent subtraction form of a fractional function problem to maximize the energy efficiency and further use the Lagrangian dual function with Lagrangian multipliers for attaining the optimal transmit power with low transmit power rate, data rate, and interference constraints. In the work, we conduct the numerical analysis for the validation of the algorithm, and the numerical result shows that with low power of 0.002 W we achieve the maximum energy efficiency of 5.32 × 108 bit/J/Hz along with the mode selection and resource allocation, and we get the improvement in the energy efficient joint resource allocation and power control for D2D communication (Jiang et al. 2016) and related research domain of the optimal energy efficient resource management for the D2D communication with advancement in the terms of optimal low power with maintaining the effectiveness of the communication considering the Interference, data rate, low transmit power constraints, and achieve the low power energy efficient resource allocation algorithm with mode selection for the D2D communication underlay in-band cellular networks. Our novel proposed algorithm can be further used in the low power and energy efficient devices for the D2D communication as an Integral element of IoT applications and 5G.