1 Introduction

The connection of embedded devices within an existing Internet infrastructure, where the devices are uniquely identified and computing environment is created, is referred to IoT paradigm [1]. In traditional IoT, data captured by the sensor nodes are transferred to the servers through a mobile device. The cloud servers process and maintain the received data. The mobile device is linked with the cloud servers via a base station or an access point. Nowadays femtocell is used as a low power indoor base station [2]. The transmission power of a femtocell is less than a large cell base station and provides good signal strength to the users at indoor region. A femtocell can switch to active and idle modes based on user’s presence inside its coverage, to reduce the power consumption [3,4,5]. The users can access the cloud servers through the femtocell at indoor region. However, data processing inside the remote cloud servers increases communication delay and power consumption [6]. For hard deadline applications, a delay is a vital parameter and battery life is a major concern for the mobile devices. For delay and energy optimization, fog computing is introduced [7]. Integration of IoT and fog computing is an emerging field. In a fog network, the data processing occurs inside the intermediate devices, e.g. gateway, router between the end node, e.g. sensor nodes and the remote cloud servers (see Fig. 1).

Fig. 1
figure 1

Fog-based IoT framework with sensor nodes, mobile devices, fog devices and cloud servers

A mobile device is connected to the cloud servers through the fog devices, and the mobile device is connected with the fog device through an access point or base station. However, an indoor base station with computation ability (e.g. Femtolet [8], small cell cloud-enhanced e-nodeB [9]) can also work as a fog device and in that case the mobile device is connected with the cloud servers through that device. Small cell cloud-enhanced e-nodeB (SCceNB) is an indoor base station with limited computation and storage ability [9]. On the other hand, Femtolet is a device possessing the attributes of femtocell and cloudlet [8]. Femtolet is an indoor base station that contains storage as well as has the computation ability. The users under a Femtolet can store data as well as offload applications inside it. Use of Femtolet as a fog device for code offloading has been discussed in [10].

In fog-based IoT framework, the sensor nodes are used to collect environmental object status, and the collected data are sent to the cloud servers, where the intermediate fog devices also perform data processing. The fog-based IoT framework using sensors, mobile devices, fog devices (e.g. switch, routers), and cloud servers, is presented in Fig. 1. In the present work an IoT framework is proposed where the Femtolet is used as a fog device. The proposed architecture is referred as IoT using Femtolet-based Fog Network (IoT-F2N).

There are several application areas of IoT such as smart home, health care. However, all the real-time applications require energy-efficiency and delay optimization in service provisioning. In existing cloud-centric real-time IoT applications such as smart home [11], health care [12,13,14], the use of remote cloud increases the energy consumption of the user device as well as the delay in providing service. If IoT-F2N is applied in such real-time applications the delay as well as energy consumption of the user device will be reduced. IoT-F2N can be applied in smart home monitoring for faster decision making in adverse situation. If the Femtolet detects any abnormality in the collected data from the IoT devices in a smart home environment, for example, very high room temperature, gas leakage, it sends an alert message to the local cloud server admin to take care of the incident. Health monitoring is another application where latency is a crucial parameter. If IoT-F2N is applied in health monitoring, at low latency indoor health monitoring will be possible due to the use of indoor base station as a fog device. Explosive detection [15] is another application of IoT where the use of Femtolet can help to alert people if an explosive is detected. In this way IoT-F2N can be applied in several real-time applications to provide energy as well as delay optimization.

The rest of the paper is organized as follows: Sect. 2 explains related works on fog computing and IoT. Section 3 proposes the IoT-F2N architecture and its working model. Section 4 evaluates the performance of IoT-F2N in terms of theoretical and simulation analysis. Finally Sect. 5 concludes along with future research scope of IoT-F2N.

2 Related work

IoT has become an emerging domain in the field of smart computing. Sensor network is a major component of IoT. A Wireless Sensor Network (WSN) is formed with huge number of sensor nodes, which sense and report to a central node [16, 17]. These embedded devices connect with each other through Internet and form an infrastructure which is known as IoT. IoT has the potentiality and capability to find out novel solutions in different areas like healthcare, industrial automation, transportation business, environmental monitoring, etc. [16,17,18].

Cloud Computing (CC) [19, 20] offers new opportunities in the area of IoT. Sensor cloud platform has been created to assemble data from sensors as per application and direct it to the cloud [21]. However, for real-time applications only cloud-based framework suffers from the increase in delay and energy. To give service to the end users at low latency and low energy, fog computing has come. Energy management in IoT has been discussed in [22, 23]. For large scale IoT applications fog computing has been used in [24]. A resource allocation process for the three-tier IoT-fog network has been discussed in [25]. In the three-tier architecture, the intermediate fog devices between the end nodes and cloud servers participate in data processing.

To minimize the energy and latency than the cloud only framework, cloudlet has also been used [26, 27]. Cloudlet provides cloud services at low power and latency by working as an agent [26, 27]. In mobile cloud computing middleware is used for task delegation [28]. Cloudlet is a middleware which plays a vital role for power and latency aware offloading. Mobile devices offload their data and applications inside the cloud let instead of using the cloud servers [6]. For reducing energy consumption and enhancing the indoor signal strength, femtocell base station is used in cellular network [3,4,5]. An enhanced device of femtocell, SCceNB, has been proposed in [9], which is nothing but a small cell base station with limited computation ability. To integrate the properties of femtocell and cloudlet Femtolet has been proposed in [8]. Use of Femtolet as a fog device for code offloading has been discussed in [10]. Fog computing enables computation inside the network devices at different classified levels with several degrees of computational and storage capabilities [7].

The combination of IoT and fog network increases the development of wireless network as well as reduces the energy consumption because data are processed nearer than cloud servers [24, 25]. Quality of Service (QoS) in fog-based IoT has been discussed in [29]. The QoS in IoT has been discussed in [30]. In [31,32,33] security and privacy issues related to fog computing have been discussed. The use of blockchain for security in IoT has been highlighted in [34, 35]. Use of blockchain has been highlighted in these articles. An IoT security middleware for cloud and fog has been discussed in [36]. Offloading in fog-based IoT has been discussed in [37]. A service management framework for cloud-based IoT has been discussed in [38]. The relationships between different aspects of IoT, e.g. Internet of Everything (IoE), Internet of Mobile Things (IoMT), Internet of Mission-Critical Things (IoMCT), Internet of Nano Things (IoNT), etc. has been studied in [39]. To find smart solutions in daily life, IoT is a principle component. For monitoring and control home appliances in a smart home environment, natural language processing has been used with text and audio commands in [40]. For indoor environment monitoring, machine learning has been used in [41]. From the real life perspective such as health care, traffic manufacturing, IoT network has been discussed in [42]. The role of 5G enabled devices in IoT has been highlighted in [43]. For smart health care, fog-based IoT has been discussed in [44]. For health care system, fog computing has been used in [14] also. Energy-efficient offloading for fog-cloud network-based IoT applications has been discussed in [45].

The fog-based IoT has solved the difficulties in energy and delay management with respect to the only-cloud-based IoT system. However, for accessing a fog device, an end user has to be connected with the base station or access point. Our motivation is to propose an IoT framework, which will use a base station as a fog device to reduce the delay and energy even than the fog-based existing IoT framework. To store and process data inside a nearby fog device, Femtolet is used in this paper, which is an indoor base station with storage and computation ability. Our aim is to use Femtolet-based fog computing to create an energy-efficient and low-latency IoT framework for indoor zone. In our paper adaptable Femtolet is used. In [46] adaptable femtocell has been proposed based on octopus algorithm [46]. The octopus algorithm has been proposed based on the arm expansion and shrinking features of the Pacific creature octopus during its feeding [46]. An octopus expands its arm to capture and hold food when it is available. The octopus shrinks its arm to put the food into the mouth. Following this feature adaptable femtocell has been discussed in [46]. An adaptable femtocell shrinks and expands coverage according to user’s location inside its coverage [46]. In our present article, adaptable Femtolet is used, that can shrink and expand coverage according to user’s location inside its coverage. Table 1 illustrates the contributions and novelty of the proposed architectural model with respect to the existing fog computing-based IoT systems. From the table, it is observed that in this work an adaptable indoor base station that can expand and shrink coverage based on user’s location, is used as fog device for faster service provisioning, and this is the uniqueness of the proposed framework with respect to the existing models [22, 23, 37].

Table 1 Comparison between IoT-F2N and existing fog computing-based IoT paradigms

2.1 Motivation and contributions

From the discussions on the existing works, it has been observed that energy and delay are two vital parameters in the field of QoS-aware IoT. Our motivation is to introduce an energy and latency aware IoT paradigm. The contributions of this article are:

  1. 1.

    A new architectural model for IoT is proposed for indoor users based on 5G device Femtolet. In the proposed IoT-F2N architecture, Femtolet works as a fog device for data processing and storage. The mathematical model of IoT-F2N is developed.

  2. 2.

    Based on octopus algorithm, the Femtolet expands and shrinks coverage according to the user’s presence. By using adaptable Femtolet the energy consumption is reduced.

  3. 3.

    The delay and power consumption in proposed IoT-F2N model are calculated and compared with the existing IoT models. The simulation results explain that IoT-F2N is energy-efficient as well as reduces delay than the existing IoT architectures.

3 IoT-F2N architectural model

This section proposes the architecture of IoT-F2N with its working model. IoT-F2N contains the following principle components:

  1. 1.

    Sensors,

  2. 2.

    Mobile device as edge device,

  3. 3.

    Adaptable Femtolet as fog device,

  4. 4.

    Security-gateway,

  5. 5.

    Home node base station-gateway,

  6. 6.

    Local cloud servers,

  7. 7.

    Remote cloud servers.

The pictorial representation of the architecture of IoT-F2N is shown in Fig. 2.

Fig. 2
figure 2

Architecture and working model of IoT-F2N

3.1 Three-layer architecture of IoT-F2N

The IoT-F2N architecture is divided into three layers, which are described as follows.

3.1.1 Layer 1: sensors as IoT devices

The sensor devices are attached with different objects. These sensors collect object status and send it to the sensor base station. The sensor base station forwards the collected data to the edge device with which it is connected. These sensor nodes are referred as IoT devices in our approach.

3.1.2 Layer 2: edge device and fog device

The mobile device works as an edge device in IoT-F2N. The edge device processes the incoming sensor data (raw data) and then sends the processed data to the Femtolet under which the mobile device is registered. If the edge device cannot process the raw data due to limited processing ability, then the raw data are forwarded to the Femtolet for processing. The mobile device accesses the data inside the Femtolet, or the data maintained inside the remote cloud servers via Femtolet. If the mobile device wants to get back the processed data, it attaches its ID.

The Femtolet is a home base station possessing storage and computation power. Femtolet incorporates the attributes of femtocell and cloudlet [8]. Femtolet contains radio frequency receiver (RFR), field programmable gate array (FPGA) and radio frequency transmitter (RFT) like femtocell, to act as a home base station [8]. Femtolet comprises high storage as well as can offload applications, like cloudlet [8]. The common components of femtocell and cloudlet which are contained in Femtolet are power amplifier, microprocessor and random access memory (RAM) [8]. The Femtolet if receives processed data from the edge device, it stores the data. Otherwise the Femtolet first processes the incoming raw data and then stores the processed data. If the ID of the mobile device is attached, the processed data are sent back to the device. If the data are to be accessed by other agencies, the data are forwarded to the remote cloud servers through the security-gateway (Se-GW) and home node base station-gateway (HNB-GW). Se-GW securely transmits the data through a security tunnel as shown in Fig. 1. If the Femtolet cannot process the data, it sends the data to the local cloud servers.

The Femtolet follows octopus algorithm [46] to shrink and expand its coverage according to the user’s presence. The octopus algorithm is based on the feeding behaviour of the Pacific creature octopus [46]. An octopus expands its arm to capture food and then holds it. After that the octopus shrinks the arm and put the food into mouth. Based on this feeding behaviour, adaptable femtocell has been discussed in [46]. As Femtolet is a femtocell with storage and computation ability, the octopus feeding logic can be used in Femtolet also to make it adaptable. In our IoT-F2N such an adaptable Femtolet is used, which can expand and shrink coverage based on user’s presence. The Femtolet can cover maximum 20 m area. If the mobile device is located at a distance less than the Femtolet’s coverage, the Femtolet shrinks its coverage to the location of the mobile device. If the IoT and edge devices are in idle mode, the Femtolet also goes to idle mode.

3.1.3 Layer 3: local and remote cloud servers

If the local cloud receives raw data, it processes the data and returns the processed data to the Femtolet. If other agency will access the processed data, the local cloud sends the processed data to the remote cloud servers along with the Femtolet ID. If the local cloud is unable to process the raw data, it forwards the data to the remote cloud servers. In this case, the Femtolet ID is sent with the data, so that the remote cloud servers can directly communicate with the Femtolet without involving the local cloud servers. The remote cloud sends the processed data to the Femtolet. If other agency will access the processed data, the remote cloud keeps a copy of the processed data.

3.2 Working model of IoT-F2N

In our architecture, the computation on sensor data is performed inside the intermediate devices between the sensors and the remote cloud servers. The steps of the working model of IoT-F2N are:

  1. 1.

    Sensor nodes collect object status and send the raw data to the mobile device via sensor base station.

  2. 2.

    If the mobile device has the ability to process the data, the mobile device works as an edge device, processes the data and sends the result to the Femtolet. Otherwise the mobile device forwards the raw data to the Femtolet.

  3. 3.

    If the Femtolet receives raw data and it has the ability to process the data, it works as fog device and processes and then stores the data. If the data is to be accessed by an agency, the Femtolet forwards a copy of the processed data to the remote cloud servers. The intended agency accesses the data in the remote cloud servers.

  4. 4.

    If the Femtolet is unable to process the data, the Femtolet forwards the data to the local cloud servers. If the local cloud is able to process the data, the local cloud processes the data and returns it to the Femtolet. If the processed data is to be accessed by an agency, the local cloud forwards the data to the remote cloud servers along with the Femtolet ID.

  5. 5.

    If the Femtolet and local cloud both are unable to process the data, the local cloud servers forward the raw data to the remote cloud servers along with the Femtolet ID. The remote cloud then processes the data and sends back the result to the Femtolet. If the processed data is to be accessed by an agency, the remote cloud keeps a copy of the processed data.

As the Femtolet has a large internal storage, the processed data are stored inside it, from where the users can access their data while belonging to the Femtolet’s coverage. If the data are to be accessed by an agency, then only the data are stored inside the remote cloud servers. The distance between the Femtolet and the mobile device is very small as compared to the distance between the mobile device and the remote cloud servers. The processing occurs inside the edge and fog device in most of the cases. Therefore the communication and propagation delays are reduced. Consequently the power consumption of the mobile device is also reduced.

The proposed system is based on Femtolet that contains a cryptographic processor [8, 47]. The Femtolet is connected with the network through the Se-GW and the data is transmitted through a security tunnel. For security purpose, Internet Protocol Security (IPSec) connection is used. Authentication is performed using a hash function and key, referred as Keyed-Hash Message Authentication Code (HMAC)-Secure Hash Algorithm (SHA) [47]. Tripple Data Encryption Standard (Tripple DES)-based Cipher Block Chaining (CBC) and Advanced Data Encryption Standard (AES)-based Cipher Block Chaining (CBC) can also be used [47]. For secure data storage, Elliptic-Curve Cryptography (ECC) and Hierarchical Identity-Based Cryptography (HIBC) can be used [47]. For security purpose in IoT blockchain can also be used [34, 35].

3.3 Mathematical model of IoT-F2N

The entities of IoT-F2N and their operational functionalities are mathematically defined in this section. It is assumed that the total number of IoT devices straddling transversely and all fog devices are constant eventually. Furthermore, the fog device gives complete coverage for all the IoT devices. The physical and virtual components of IoT-F2N are described as follows.

3.3.1 Mathematical definition of layer-1 components

In IoT-F2N, layer-1 contains the IoT devices which are used to collect object status.

Definition 1

IoT device (IoTD) An IoTD is denoted by I and defined as [22],

$$I = (I_{\text{id}} ,I_{\text{st}} ,I_{\text{s}} ,A_{\text{IoT}} )$$

where Iid is the ID of the IoTD that uniquely identifies the device, Ist denotes the status of the device, Is denotes the event type sensed by the device and AIoT denotes the application.

Definition 2

(Status of IoTD) The status of an IoTD is denoted by Ist. It can hold either 0 or 1. If Ist = 0, the device is in active state and if Ist = 0, the device is in inactive state.

Definition 3

(Type of IoTD) The type of an IoTD(Is) refers to the type of an event that the IoTD senses. If a set \(i = (i_{1} ,i_{2} , \ldots ,i_{\text{p}} )\) is considered, then an element of the set denotes the type, here I denotes the set of events monitored by IoTD, and p is the number of distinct event types.

Definition 4

(Application of IoTD) An application AIoT is defined as [22],

$$A_{\text{IoT}} = \left( {AI_{\text{id}} , \, AI_{\text{t}} , \, AI_{\text{sp}} } \right)$$

where AIid is the ID of the application and AIt refers to the use of the application, AIsp states the least amount of system configuration specifications such as primary and secondary memory, processor configuration, version of the operating system, required for executing the application.

3.3.2 Mathematical definition of layer-2 components

In IoT-F2N layer-2 describes the virtual components. Each IoT device from layer-1 is mapped to the edge and fog devices for their computations. The edge and fog computing components defined which reside in the middle of the IoT devices and cloud servers, are defined.

Definition 5

(Edge device computing instance (EDI)) EDI is defined as [22],

$$EDI = \left( {E_{id} , \, FD, \, d\left[ s \right]} \right)$$

where Eid is the distinctive identity of the edge device, FD is the fog device through which the EDI is associated with the local or remote cloud servers, and d[s] is the third tuple, refers to an array of size s that contains the device IDs of all the edge devices of an EDI.

The mapping from the IoT devices of layer-1 to the edge device of layer-2 is many-to-one and it is denoted as,

$$M^{\prime } (.):I^{\prime } \to EDI^{\prime }$$

Definition 6

(Fog computing device (FD)) FD is defined as [22, 47],

$$FD = \left( {FD_{\text{id}} , \, FD_{\text{type}} , \, FD_{\text{sp}} } \right)$$

where FDid and FDtype are the ID and the type of the fog computing device. FDsp tuple defines the hardware related specification.

The mapping from edge devices to the fog device of layer-2 is many-to-one and it is denoted as,

$$M^{\prime } (.):EDI^{\prime } \to FD^{\prime }$$

3.3.3 Mathematical definition of layer-3 components

If the data sent from the IoT devices are not processed in layer-2, then the data are sent to the cloud servers. The local and remote cloud servers are in layer-3.

Definition 7

(Cloud computing instance (CI)) CI is defined as [22, 47],

$$CI = \left( {C_{\text{id}} ,Cd\left[ s \right]} \right)$$

where Cid is the distinctive identity of the cloud component, Cd[s] is the tuple defining an array of size s which contains the processing unit IDs of all the essential cloud servers of a CI.

The mapping from the layer-2 to layer-3 components is many-to-one and it is denoted as:

$$M^{\prime } (.):FD^{\prime } \to CI^{\prime }$$

Definition 8

(Cloud Server (CS)) CS is defined as [22, 47],

$$CS = \left( {CS_{\text{id}} ,CS_{\text{type}} ,CS_{\text{sp}} } \right)$$

where CSid and CStype are ID and type of the cloud server. Type can be local or remote. CSsp tuple defines the hardware related specification.

4 Performance evaluation

In this section both the theoretical and simulation-based evaluations of IoT-F2N are carried out.

4.1 Theoretical analysis

The amount of sensor data transmission is assumed 100–400 MB. The speed of the fog device Femtolet is assumed 5 Gbps. The speed of the cloud server is assumed 8 Gbps. The delay and power consumption in the IoT-F2N is determined. The parameters used for calculating power and delay are given in Table 2.

Table 2 Parameters used in power and delay calculation

4.1.1 Delay

If data processing occurs inside the edge device (mobile device), the delay is calculated as,

$$Del_{1} = \sum\limits_{N} {Dl_{\text{s}} } + \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + \frac{{D_{\text{raw}} }}{{S_{\text{m}} }} + \frac{{D_{\text{proc}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{fr}} }}(1 + U_{\text{f4}} )$$
(1)

where pab ≤ 1.

If data processing occurs inside the fog device (Femtolet), the delay is given as,

$$Del_{2} = \sum\limits_{N} {Dl_{\text{s}} } + \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + \frac{{D_{\text{raw}} }}{{S_{\text{f}} }} + p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{fr}} }}(1 + U_{\text{f4}} )$$
(2)

If data processing occurs inside the local cloud, the delay is determined as,

$$\begin{aligned} Del_{3} & = \sum\limits_{N} {Dl_{\text{s}} } + \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + \frac{{D_{\text{raw}} }}{{R_{\text{fl}} }}(1 + U_{\text{f3}} ) \\ & \quad + \frac{{D_{\text{raw}} }}{{S_{\text{l}} }} + \frac{{D_{\text{proc}} }}{{R_{\text{lf}} }}(1 + D_{\text{f3}} ) + p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{lr}} }}(1 + U_{\text{f5}} ) \\ \end{aligned}$$
(3)

If data processing occurs inside the remote cloud, the delay is calculated as,

$$\begin{aligned} Del_{4} & = \sum\limits_{N} {Dl_{\text{s}} } + \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + \frac{{D_{\text{raw}} }}{{R_{\text{fl}} }}(1 + U_{\text{f3}} ) \\ & \quad + \frac{{D_{\text{raw}} }}{{R_{\text{lr}} }}(1 + U_{\text{f5}} ) + \frac{{D_{\text{raw}} }}{{S_{\text{r}} }} + \frac{{D_{\text{proc}} }}{{R_{\text{rf}} }}(1 + D_{\text{f4}} ) \\ \end{aligned}$$
(4)

If the probabilities of data processing inside the edge device, fog device, local cloud and remote cloud are α, β, γ and δ respectively, the delay is given by,

$$Del_{\text{prop}} = \alpha \cdot Del_{1} + \beta \cdot Del_{2} + \gamma \cdot Del_{3} + \delta \cdot Del_{4}$$
(5)

where α ≤ 1, β ≤ 1, γ ≤ 1, δ ≤ 1 and α + β + γ + δ = 1.

If (femtocell + cloudlet) scenario is used in IoT, the cloudlet performs data processing and the mobile device works as an edge device. The mobile device is connected with the network through a femtocell base station, which is connected with the cloudlet. The data captured by the sensor nodes are transmitted to the mobile device. The mobile device either processes the data and sends the result to the cloudlet via the femtocell, or sends the raw data to the cloudlet via the femtocell. If the cloudlet receives processed data, it stores the data. Otherwise it processes the raw data and stores it. If the cloudlet is unable to process the data, then local or remote cloud is used. It is observed that in (femtocell + cloudlet) scenario an additional communication delay between the femtocell and cloudlet is involved. Therefore, the delay in this case is given as,

$$\begin{aligned} Del_{\text{clet}} & = \alpha \cdot (Del_{1} + \frac{{D_{\text{proc}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) + \beta \cdot (Del_{2} + \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) \\ & \quad + \gamma \cdot (Del_{3} + \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) + \delta \cdot (Del_{4} + \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) \\ \end{aligned}$$
(6)

If Eqs. (5) and (6) are compared, it is observed Delprop < Delclet. Hence it is observed that the use of Femtolet reduces the delay than that of using (femtocell + cloudlet) scenario.

The delay while using IoT-F2N is determined using Eq. (5). Then the results are compared with the existing IoT frameworks [22, 23]. Figure 3 compares the delay of the proposed IoT-F2N with the fog computing-based existing IoT architectures. The delay is measured in second (s).

Fig. 3
figure 3

Delay in proposed IoT-F2N and existing IoT architectures

Figure 3 shows that IoT-F2N reduces the delay by approximately 18% than the IoT using (femtocell + cloudlet) based network, 25% than the IoT using fog network [22] and 55% than the existing approach energy-management-as-a-service [23].

4.1.2 Power consumption

If data processing occurs inside the edge device, the power consumption is calculated as,

$$\begin{aligned} P_{1} & = \sum\limits_{N} {P_{\text{sen}} } + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + P_{\text{p}} \cdot \frac{{D_{\text{raw}} }}{{S_{\text{m}} }} \\ & \quad + P_{\text{s}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + P_{\text{s}} \cdot p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{fr}} }}(1 + U_{\text{f4}} ) \\ \end{aligned}$$
(7)

If data processing occurs inside the fog device, the power consumption is given as,

$$\begin{aligned} P_{2} & = \sum\limits_{N} {P_{\text{sen}} } + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) \\ & \quad + P_{\text{p}} \cdot \frac{{D_{\text{raw}} }}{{S_{\text{f}} }} + P_{\text{s}} \cdot p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{fr}} }}(1 + U_{\text{f4}} ) \\ \end{aligned}$$
(8)

When data processing occurs inside the local cloud, the power consumption is given as,

$$\begin{aligned} P_{3} & = \sum\limits_{N} {P_{\text{sen}} } + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{fl}} }}(1 + U_{\text{f3}} ) \\ & \quad + P_{\text{p}} \cdot \frac{{D_{\text{raw}} }}{{S_{\text{l}} }} + P_{\text{r}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{lf}} }}(1 + D_{\text{f3}} ) + P_{\text{s}} \cdot p_{\text{ab}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{lr}} }}(1 + U_{\text{f5}} ) \\ \end{aligned}$$
(9)

If data processing occurs inside the remote cloud, the power consumption is given as,

$$\begin{aligned} P_{4} & = \sum\limits_{N} {P_{\text{sen}} } + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{sm}} }}(1 + U_{\text{f1}} ) + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{mf}} }}(1 + U_{\text{f2}} ) + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{fl}} }}(1 + U_{\text{f3}} ) \\ & \quad + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{lr}} }}(1 + U_{\text{f5}} ) + P_{\text{p}} \cdot \frac{{D_{\text{raw}} }}{{S_{\text{r}} }} + P_{\text{r}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{rf}} }}(1 + D_{\text{f4}} ) \\ \end{aligned}$$
(10)

If the probability of data processing inside the edge device, fog device, local cloud and remote cloud are α, β, γ and δ respectively, the power consumption is calculated as,

$$P_{\text{prop}} = \alpha \cdot P_{1} + \beta \cdot P_{2} + \gamma \cdot P_{3} + \delta \cdot P_{4}$$
(11)

In case of (femtocell + cloudlet) scenario, the delay is calculated using Eq. (6). The power consumption in (femtocell + cloudlet) scenario is given as,

$$\begin{aligned} P_{\text{clet}} & = \alpha \cdot (P_{1} + P_{\text{s}} \cdot \frac{{D_{\text{proc}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) + \beta \cdot (P_{2} + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) \\ & \quad + \gamma \cdot (P_{3} + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) + \delta \cdot (P_{4} + P_{\text{s}} \cdot \frac{{D_{\text{raw}} }}{{R_{\text{fcl}} }}(1 + U_{\text{f6}} )) \\ \end{aligned}$$
(12)

If Eqs. (11) and (12) are compared, it is observed Pprop < Pclet. Hence it is observed that the use of Femtolet reduces the power consumption than that of using (femtocell + cloudlet) scenario.

The power consumption while using IoT-F2N is determined using Eq. (11). Figure 4 compares the power consumption of the proposed IoT-F2N with the fog computing-based existing IoT architectures. The power is measured in Watt (W). Figure 4 shows that IoT-F2N reduces the power by approximately 16% than the IoT using (femtocell + cloudlet)-based network, 43% than the IoT using fog network [22] and 53% than the existing method energy-management-as-a-service [23].

Fig. 4
figure 4

Power consumption in proposed IoT-F2N and existing IoT architectures

Mathematically it is already proved that proposed IoT-F2N has lower delay and power consumption than the (femtocell + cloudlet)-based network, which is also observed from the theoretical analysis presented in Figs. 3 and 4. In existing fog-based IoT framework [22], the sensor data are processed inside the fog devices. The cloud servers store the data. In energy-management-as-a-service [23], the sensor data are processed inside the fog devices. Different controlling units are used for managing the devices. The cloud servers store the data. But in IoT-F2N the data processing occurs inside the edge device (mobile device) or the fog device (Femtolet) in most cases. If none of them is able, then only the local or remote cloud servers process the data. Hence the storage and processing overload of the remote cloud is reduced. If the data are to be accessed by other parties, then only the data are forwarded and stored in the remote cloud servers. Thus the communication delay and power consumption are reduced than the existing frameworks.

4.2 Scenario simulation using Quanlet

AIoT-F2N scenario is simulated using Qualnet 7 to evaluate its performance with respect to delay, jitter, throughput and energy consumption. Qualnet [48] is a network simulation platform where different types of network scenarios can be created, which contains routers, switches, access points, computers, radios, antennas, mobile devices, and the protocols for data transmission between the nodes of the network. The execution of the created network scenario evaluates the performance of that network in terms of delay, jitter, energy consumption, throughput, etc.

The parameters of simulation are given in Table 3 and the scenario simulated is given in Fig. 5. In the created scenario, nodes 1, 2 and 3 are sensor nodes, node 4 is sensor base station, node 5 is the mobile device (edge device), node 6 is Femtolet (fog device), and nodes 7 and 8 are the local and remote cloud respectively.

Table 3 Simulation parameters
Fig. 5
figure 5

Simulated model of IoT-F2N

Average delay

Delay refers to the time period of data transmission from the sender to the receiver. Figure 6 shows that the average delay in proposed IoT-F2N paradigm is 0.01–0.03 s approximately for 225–900 kB data transmission between the nodes.

Fig. 6
figure 6

Average delay in IoT-F2N

Average jitter

Jitter refers to the difference between the delay of the arrival of the present packet and that of the previous packet. Figure 7 shows that the average jitter in proposed IoT-F2N paradigm is 0.005–0.025 s approximately for 225–900 kB data transmission between the nodes.

Fig. 7
figure 7

Average jitter in IoT-F2N

Unicast received throughput

The successful message delivery rate is referred as the throughput. Figure 8 shows that the unicast received throughput in proposed IoT-F2N paradigm is 10,000–60,000 bits/s approximately for 225–900 kB data transmission between the nodes.

Fig. 8
figure 8

Unicast received throughput in IoT-F2N

Energy consumption

The total energy consumption in transmitting and receiving data is determined. Figure 9 shows that the energy consumption in proposed IoT-F2N paradigm is 0.2–0.6 mW h approximately for 225–900 kB data transmission between the nodes.

Fig. 9
figure 9

Energy consumption in IoT-F2N

5 Conclusions and future scope

This paper has proposed an IoT paradigm using Femtolet-based fog network. The proposed paradigm is referred as IoT-F2N. In IoT-F2N the sensor nodes collect sensor data and send to the mobile device that works as edge device. The edge devices are registered under the fog device Femtolet. Femtolet is an indoor base station with data storage and processing ability. The mobile device sends the sensor data to the Femtolet. The processed sensor data are maintained inside the fog device Femtolet. If the data are to be accessed by some other parties then only Femtolet sends the data to the remote cloud servers. If the Femtolet is incapable to process, then either the local or the remote cloud servers process the sensor data. Theoretical analysis shows that IoT-F2N reduces the delay and power by approximately 18% and 16%, respectively, than the IoT using femtocell plus cloudlet-based network. The theoretical analysis also illustrates that IoT-F2N reduces the delay and power by approximately 25% and 43%, respectively, than the existing fog-based IoT model. Thus the proposed IoT-F2N is referred as an energy-efficient architectural model.

For faster response to the user request in IoT-F2N, multilevel data processing will be required. In that case some processing will be performed inside the Femtolet, and rest will be performed inside the local or remote cloud server. In such circumstances, efficient multilevel sensor data processing algorithm as well as efficient resource allocation mechanism will be required. Utility computing aggregates server, network, and storage systems into a single and centrally managed pool of resources. As IoT, Femtolet and fog computing are integrated in IoT-F2N, providing a secured and trustworthy IoT-F2N is also an emerging research field.