Background

IoT is defined as a network that allows sub networks including sensor, mobile, and vehicular networks to communicate with each other. Wireless sensor network is defined as a group of distributed sensors that collect data regarding physical or environmental conditions, such as temperature, sound, pressure etc. and to cooperatively pass these data through the network to a main location. Figure 1 shows the reporting style of wireless sensor network (WSNs), where sink nodes are used for data collections. WSNs applications include monitoring forest fire and controlling home temperature. Vehicular network on the other hand is a way of facilitating communications between vehicles. Messages are exchanged between vehicles and also between vehicles and road side units as a data collection center in such network. Figure 2 shows the use of road side units for data collections in VANET. Such network is beneficial in warning drivers of any coming traffic and delivering messages to areas where infrastructure networks can’t reach them. The last type of network that would be part of IoT environment in this paper is a wireless mobile network where messages are exchanged through mobiles and mobiles could act like a message hop. One application of this network is in the military field where a network with fixed infrastructure is difficult to be installed and maintained.

Fig. 1
figure 1

WSNs data collection style

Fig. 2
figure 2

VANET data collection style

The integration between different networks in IoT can bring the benefits and the characteristics of each network to the IoT environment. For example, sensor networks are mainly used for sensing and collecting data. Additionally, it is usually considered as a static network. Whereas, mobile or vehicular networks are often employed for unicast communication between nodes or vehicles. Additionally, it is known for its mobiles behaviors. Bringing these different characteristics and benefits in one environment is attractive. An international recognition of IoT increases its attractiveness too. The US national Intelligence Council lists the IoT among the six technologies that may impact US national power by 2025; in addition, the European Commission is financing several research projects on the subject within the Framework Programme; moreover, in Asia increasing research efforts are being devoted to the definition of technologies for the IoT (Iera et al. 2010).

IoT is a complex system in which its complexity comes from number of networks involved, the interconnectivity of the components of the IoT, and the interaction with the environment. The nonlinear spatio-temporal interactions among IoT component makes it an complex adaptive systems (CAS), complex adaptive communication networks and environments (CACOONS) (Niazi and Hussain 2009, 2013; Fatima and Ali Shah 2015; Niazi 2009; Niazim and Hussain 2013; Laghari and Niazi 2016). Such kind of systems are modeled usually through simulation due to their complexity.

Consequently, the main concern of this work to be solved is to model the interaction between different networks in IoT environment, namely, mobile, vehicular, and wireless sensor networks. Mobile and vehicular network is defined as the groups of nodes or vehicles that use their cooperation to facilitate communication without the use of infrastructure. The main proposed method to integrate mobile/vehicular networks to IoT is the gateway, such as, access points to allow different networks to communicate (Bessis et al. 2013) and (Bellavista et al. 2013). WSNs, on the other hand, normally are a centralized network, where a node or group of nodes are in charge of collecting the sensed data. Gateway could be possible solution to connect WSN to the IoT environment as presented in Bessis et al. (2013) and Bellavista et al. (2013).

The paper is organized as follows: the next section states some of the related work; “IoT gateway modeling” section explains the modeling of IoT proposed in this paper; “Simulation results” section includes the simulation results; the paper concludes in “Conclusion” section.

Related work

Internet of things (IoT) has many applications that help to solve issues related to city and health services. The services include monitoring street parking, heart problem, etc. as an integrated solution. This allows IoT to be the subject for many research articles (Wei et al. 2013; Al Ayubi 2209; Gao and Liu 2011; Shi and Rekeczky 2007; Freitas et al. 2009; Hong et al. 2010; Zorzi et al. 2010; Yue et al. 2014; Botta et al. 2016; Khodkari and Maghrebi 2016; Tsai et al. 2014; Li et al. 2016; Raza et al. 2013; Sheng et al. 2013) analyzing IoT from different prospective. For example, the authors of (Yue et al. 2014; Botta et al. 2016; Khodkari and Maghrebi 2016) propose the use of cloud storage in IoT. Additionally, some security aspects have been addressed in (Li et al. 2016; Raza et al. 2013). However, incorporating any concept including cloud storage and security concern will require modeling of IoT environment.

IoT modeling has been addressed in many previous works (Bessis et al. 2013; Bellavista et al. 2013; Huang and Li 2010; Riedel et al. 2010; Seel et al. 2010). However, most of the existing modeling is concerned about connecting the RFID technology to the IoT environment (Huang and Li 2010; Riedel et al. 2010; Seel et al. 2010). Bessis et al. (2013) and Bellavista et al. (2013) study the integration of mobile, vehicular and sensor networks in an IoT environment to some extent. In both articles, a gateway including access point is proposed as a mean to integrate these networks together. However, their proposal was only theoretically examining the integration of two networks. On the other hand, the research in this paper will discuss and simulate the applicability and the integration of the three networks together which are mobile, vehicular and sensor networks.

Recently, gateway deployment/placement in wireless networks has been an active research field. Major work in this area include how to deploy gateways in wireless sensor networks (Ibrahim et al. 2007; Beutel et al. 2009; Youssef and Younis 2007) or/and wireless mesh networks (Lakshmanan et al. 2006; Fan et al. 2007; Benyamina et al. 2009; Bing et al. 2007; Aoun et al. 2006). The gateway in both cases was deployed only for static networks. Whereas, IoT may include static and dynamic nodes. This makes the gateways deployment even harder in IoT environment in comparison to static networks.

In literature, gateway deployment is mainly proposed through a gateway per each network cluster or optimizes a performance metric including throughput or delay to find out the best possible gateway deployment strategy (Ibrahim et al. 2007; Beutel et al. 2009; Youssef and Younis 2007; Lakshmanan et al. 2006; Fan et al. 2007; Benyamina et al. 2009; Bing et al. 2007; Aoun et al. 2006). It has been noticed that both methods could work just fine for static networks. However, based on our experience in IoT scenario, it might be a good idea to take the advantage of previous proposed protocols in delay tolerant networks, where a message ferry can be employed for routing (Tariq et al. 2006; Miura et al. 2010; Xue et al. 2012) in IoT environment. Other work (Leontiadis and Mascolo 2007; Sidera and Toumpis 2013) propose that routing is based on petrographical area. Gateway deployment as message ferry or based on geographical area both can be employed to resolve the gateway deployment problem in IoT environment.

IoT gateway modeling

IoT modeling is an important problem to be analyzed. Its importance can be seen from the number of IoT applications that can be implemented with a successful modeling of the environment. Two IoT modeling methods are discussed and simulated in this paper. Gateway deployment based on geographical area and based on mobile ferries are presented.

In the geographical method, gateways are geographically distributed to fully ensure the connectivity among the three networks. This could be implemented by ensuring that each two circles intersect in one point at least, where a circle represent the gateway communication range. Figure 3 shows twelve sub areas, as an example, to fully cover the working area. These sub areas can be utilized to install the gateways where full connectivity must be guaranteed. This method ensures the full connectivity between their gateways based on the solution of Circle and Sphere Packing problems stated in Melissen and Schuur (2000), Hifi and M’Hallah (2009), Litvinchev and Ozuna (2014), Ramadan and Abdel-Mageid (2010), Birgin et al. (2005).

Fig. 3
figure 3

Geographical based process

The problem of circle packing tries to minimize the waste of divided rectangle or square plan to circles. The gateways deployment in this paper is inspired from the work done in Birgin et al. (2005) to pack the area under study, as it is shown in the evaluation section. The authors solved the packing problem by dividing the rectangular box [0, d1] × [0, d2] to k circles of radius r in such a way that the intersection between any pair of circles i and j, i ≠ j, is at most one point, i.e., the circles are not overlapped. Therefore, given k, r, d1 and d2, the goal is to determine p1,…, pk ϵ [r, d1 − r] × [r, d2 − r] solving the problem:

$$\begin{array}{c} {\text{Minimize }}\sum { \hbox{max} }(0, \, \left( { 2 {\text{r}}} \right)^{ 2} ||{\text{p}}^{\text{i}} {\text{p}}^{\text{j}} ||_{ 2}^{ 2} )^{ 2}\\ {\text{subject to}} \\ {\text{r}} \le {\text{p}}_{ 1}^{\text{i}} \le {\text{d}}_{ 1} - {\text{r}},{\text{ and}} \\ {\text{r}} \le {\text{p}}_{ 2}^{\text{j}} \le {\text{d}}_{ 2} - {\text{r}},\quad{\text{ for i }} = { 1}, \ldots,{\text{ k}}. \end{array}$$

Points p1,…, pk are the centers of the desired circles. One circle will be packed at the beginning, and the packing will continue to accommodate more circles, until no more space is available inside the rectangular.

Geographical based method has a fixed infrastructure nature where gateways are placed to cover one area. This method centrally controlled and synchronized. This allows for non-overlapping transmission between gateways and mobile nodes. Additionally, the load of messages transmission would be balanced since each gateway is taking care of one circle. Moreover, centralized controller allows easy deployment of security and quality of services measures on the employed gateways. However, it raises the challenge of one point of failure, where if one of the gateways is down, it would risk the whole network of being down.

The other method where gateways are based on mobile ferries; the mobility of the ferries guarantees the reachability of the ferries to sub networks including mobile, vehicular and sensor network in the IoT environment. This helps fast and efficient messages transfer between sub networks in the system. Figure 4 shows the concepts of ferries employment in IoT environment. With the same 12 sub divided areas that were employed in the geographical based method with fixed gateways, a ferry can travel from one sub area to another. Generally, ferries can travel in any existing paths. Four routes are shown in the figure as an example of how a ferry travels inside the network area. Gateways in the four paths example can help to forward messages from one sub-network to another.

Fig. 4
figure 4

Ferries based process

Mobile ferries method has an infrastructure less nature where gateways are freely moved on the network area. This method guarantees flexibility of its gateways movements. Additionally, it is a reliable method for message delivery since the failure of one gateway, won’t lead to failure of the network. However, gateways in this method would require more resources to be consumed including energy consumption.

The above two methods are compared and analyzed by simulation in the next section. The comparison includes their delivery probability of created messages. Message delivery probability is defined as the number of delivered messages to the destinations to the number of created messages by source nodes. This reflects the better choice of the two methods to be implemented in the IoT environment.

Simulation results

This section contains the details of our Complex Adaptive COmmunicatiOn Networks and environmentS (CACOONS) simulation to the two previously proposed for IoT modeling. The section starts by explaining the details of the used co-simulator and the simulation settings followed by examining the performance of the proposed methods.

Simulation environment

It is clear that simulating three different networks with different topologies and settings as well as requirement is a very hard task. In addition, selecting a suitable solution is also a challenging task. In this paper, ONE simulator (Keränen et al. 2009) has been chosen and adapted to fit the requirements of the three different networks, WSNs, VANET, and mobile networks. ONE is a discrete event simulation package. It combines movement modeling, routing, visualization and reporting. Mobility models determine node movement within the simulation environment. The random waypoint model (RWPM) is widely used and is based on random directions and speeds. However, this random node movement is unrealistic when mobile devices are carried by humans. It is more pragmatic to assume that nodes move towards a specific destination, then another destination, and so on. These destinations are typically particular locations such as malls, restaurants or schools, and so are called points of interest (PoI). The more realistic shortest path movement model (SPMM) (Keränen et al. 2010) has nodes moving towards particular locations, and so is employed here. In SPMM (Keränen et al. 2010), nodes travel through the shortest path between two points where PoIs are located in the map, such as restaurants or shopping mall, as destinations for moving nodes.

The simulation parameters employed here are carried out based on the realistic environment described in Altamimi and Gulliver (2012) where Helsinki City Scenario (HCS) (Keränen et al. 2010) map is used. The scenario has nodes moving in a part of the downtown Helsinki area including its roads, pedestrian walkways and connectivity traces from the real time location data of Helsinki trams. With HCS, node mobility is based on simulating 50 mobile users moving by foot, 30 by car, and 6 by trams in the streets of downtown Helsinki. Additionally, three sensor networks are randomly deployed in three locations; each network consists of 10 nodes. Each node represents a user moving with realistic speed along the shortest paths between different POIs and random locations. The trams follow real tram routes in Helsinki. The simulation area is designed to be 4500 × 3400 m2 size. The simulation environment parameters are summarized in Table 1.

Table 1 Simulation environment parameters

The gateways however, are differently deployed based on the used method. 12 gateways are geographically placed to cover the simulation area based on the proposed method in Birgin et al. (2005) when geographical based deployment method is employed. The same number of mobile ferries are deployed when gateways deployment are based on mobile ferries.

Performance results

In this section, simulation experiments are conducted to examine the performance of the two proposed methods. It has been assumed that messages are routed toward gateways when they want to be exchanged with different sub network. For instance, when a node in sensor network wants to exchange message to a node in vehicular network, it has to be directed to a gateway. The simulation has been run twice. One is to compare the network performance when geographical based gateway deployment is employed with high speed ferries gateways deployment. The other run is to examine the delivery probability of the network when geographical based gateway deployment is employed to when low speed ferries are used.

Figure 5 shows that the network with high speed ferries have a better delivery probability with 29% improvement to when gateways are geographically deployed. This is because high speed ferries are more likely to meet the three sub networks in multi-paths, where geographical based gateways deployments, it is likely to have only one path to reach the final destination.

Fig. 5
figure 5

Delivery probability comparison when gateways deployment is with high speed ferries to geographical based deployment

Figure 6 shows that the network with low speed ferries have a similar delivery probability to when gateways are geographically deployed. This means that the speed of mobile ferries would determine whether to deploy the gateways in IoT environment based on geographical based or based on random deployment of mobile ferries.

Fig. 6
figure 6

Delivery probability comparison when gateways deployment is with low speed ferries to geographical based deployment

Figures 5 and 6 show that gateways deployment as mobile ferries in IoT environment leads to a better delivery probability network than gateways deployed based on geographical area in the same environment. The improvement of delivery probability in such environment when mobile ferries are employed is due to the ability of gateways to encounter the three sub networks, namely vehicular, sensor and mobile networks nodes. Whereas, geographical area deployment based ensures that gateways belongs to one region when one sub network might be in there. Therefore, the interactions between the three sub networks and messages delivery would be easier to achieve in case of mobile ferries gateways, compared to geographical area deployment based.

The previous discussion shows the improvement of delivery performance when ferries are employed compared to geographical area based method with the number of gateways is equal. The question that is raised here, when the two methods will have similar performance under different number of installed gateways. The simulation have been run for multiple number of gateways in the ferries based method to reach a comparable performance when geographical based method is employed.

Figure 7 shows that ferries method still outperforms geographical based method when the number of gateways are decreased from 12 to 8 (34%). Whereas the geographical based method outperforms the ferries based method when the number of gateways in ferries based methods are decreased by 40% or to 7 gateways as shown in Fig. 8. This concludes that the ferries based method still outperforms the geographical based method when the number of gateways in ferries method is less than geographical based method by 34%.

Fig. 7
figure 7

Delivery probability comparison when gateways deployment is with 8 high speed ferries to 12 geographical based deployment

Fig. 8
figure 8

Delivery probability comparison when gateways deployment is with 7 high speed ferries to 12 geographical based deployment

Conclusion

This paper presents two methods to model the sub networks interaction in the complex IoT environment. Gateways based on mobile ferries and geographical based are compared and empirically analyzed. The simulation shows that mobile ferries gateways deployment improves the IoT environment delivery probability by 29% when a proper mobile ferries speed have been chosen. Additionally, with fewer gateways by 34%, the mobile ferries outperforms the geographical based method in terms of delivery probability.