1 Introduction

P2P networks have attracted many users and research community due to recent developments in Internet based applications. P2P networks are distributed systems without any centralized controlling entity. These networks are IP based and mainly designed for wired networks, but these networks have gained popularity in wireless based networks also. There are many protocols developed and implemented for wired networks. But these protocols do not perform well for wireless networks due to many additional challenges of wireless communication. For example, mobility of the users, intermittent connection and limited bandwidth, churn rate, limited memory etc. We propose modelling and analysis of the effects of user’s mobility, intermittent bandwidth, churn rate, expected life span of a node, stabilization cost etc. for structured mobile P2P systems in this paper.

P2P systems provide an open environment where nodes can participate autonomously and share their resources. There are two types of P2P networks-centralized and distributed. The distributed P2P networks are further classified into two categories- structured and unstructured. The structured P2P systems have a significant network structure (overlay) imposed over the participating nodes and it is tightly organised using DHT (Distributed Hash Table) [8] based protocols. IP addresses of nodes and files are mapped on same address space using Simple Hash Algorithm 1 (SHA-1). Most of the files discovering protocols in structured P2P networks like Chord [32], Pastry [26], Tapestry [40], etc. are based on the DHT [8].

The network topology of the participating nodes in structured MP2P networks is governed by ring topology. Examples of these schemes are Chord protocol [32] or Chord based protocols like MP-Chord [28], MR-Chord [35], AChord [9], Mobile Chord [21], Neighbour Selection in MP2P networks [36], Improved Structure for NN Chord [5], SelfChord [11], HPChord [13], VChord [12], BSRE (Binary Search Routing Equivalent) [22], etc. As per requirements of these protocols each node maintains a finger table which contains m ≥ 2 fingers. Fingers are successor and predecessor nodes in the MP2P networks. Each entry in the finger table contains a node identifier and its networks address (IP address and port number). The jth (0 ≤ j≤m) entry in the finger table for node i is defined as jth successor as given below.

$$ {\text{Successor }}\left( {\text{j}} \right) = \left| {i + 2^{j - 1} } \right|mod 2^{m} {\text{for }}1 \le {\text{j }} \le {\text{m}} $$

According to the Chord or Chord based protocols, participating nodes form a ring overlay and each node in the ring is connected with one successor and one predecessor. The successors are referred in clockwise direction whereas predecessor is referred in anti-clockwise direction. As illustrated in Fig. 1, there are 15 active nodes in a MP2P network that form a ring overlay. For node N10, successors are shown in Fig. 1. Nodes N13, N17, N20, and N33 are successors of node N10.

Fig. 1
figure 1

Fingers of node N10

Chord or Chord based protocols are viewed as resource storing and retrieval protocol. Resources specially files and nodes are located in same address space which contains 0–2m entries. The finger table is viewed as m identifiers intervals corresponding to the m entries in the table defined as [(i + 2j−1) mod 2m, (i + 2j) mod 2m] for jth finger of node i. Each node is responsible for storing a small set of keys that fall between its predecessor and itself. So, each node is responsible for storing small portion of keys and this is how load is distributed among all the nodes in the MP2P networks. Search for a key k at node i is to find the immediate successor of node i or forwarding the search request to its largest finger in the finger table that precedes k. Each node can contain finger table up to Ο(log N) where N is the total number of nodes in the MP2P network. In mobile environment, nodes join and leave the network due to their wish or their mobility. So, finger table is periodically stabilized in order to keep it updated. When a node joins or leaves the system, finger table requires update which is Ο(log2 N). After each joining or leaving of a node, additional cost of transferring keys Ο(1/N) is imposed. The major resources to be shared are files, CPU cycles, storage and bandwidth. Today, the main applications of P2P networks are files sharing, live video streaming, watching live TV, etc.

MANETs, WMNs, WSNs, VANETs have huge potential in many areas like disaster management, defence communications, fast infrastructure replacement, extension of the hotspots etc. MANETs and WMNs can easily replace the infrastructure-based communications without any pre-existing infrastructure or with very little infrastructure. In a MANET, autonomous mobile nodes communicate with each other in P2P communication mode which is without support of pre-exiting infrastructure. WMNs are formed over mesh backbone which comprises quasi-stationary or stationary wireless mesh routers to communicate with mobile nodes. Apart from these networks, WLAN and WMAN are also deployed for mobile communication with very little pre-exiting infrastructure and can support MP2P communication.

In all above networks, nodes can form structured MP2P network and communicate with other nodes in P2P communication mode and such communication is without support of the any pre-existing infrastructure. There are many challenges in these networks for P2P communication and there is still scope of work to be done for modelling and analysis of the challenges. In this paper, we propose analytical modelling and analysis of the effects of challenges like user’s mobility, intermittent bandwidth, churn rate, expected life span of a node, stabilization cost etc. for structured MP2P systems. We present detailed discussion about the performance of various parameters in different circumstances. Rest of the paper is organized as follows. The literature survey and mobility modelling are given in Sect. 2. The proposed system modelling and performance analysis haves been discussed in Sect. 3. The conclusion about the performance of the proposed model is given in Sect. 4 followed by references.

2 Related works

MP2P network is an example of intermittent-connectivity networks. An intermittent-connectivity network is a wireless network in which participating nodes may have mobility and this is why nodes interact with others intermittently. Further, delay-tolerant network is an intermittent-connectivity network and such networks are gaining popularity in the networking community now days. DTNRG (Delay Tolerant Networking Research Group) primarily focuses on data delivery in frequently partitioned networks with anticipated movement of nodes [29]. In mobile networks, the location anticipation of node is important for delivery of the services. There are many schemes proposed for anticipating or deciding the location of mobile nodes. INS (Inertial Navigation System) is also useful in deciding the location and speed of the mobile equipment [4, 25]. Different schemes for providing location-based services in P2P overlay have been proposed in [2, 16, 24].

Sok-Ian Sou and Hsiu-Fang Ho have proposed analytical modelling of session completion in sparse vehicular networks [31]. In this proposal, authors have considered the path of vehicles covered by APs (Access Points) and each AP has its own communication range. Authors have proposed the probability of session completion within the coverage area of an AP. It is reported in [1, 30] that human movement has complex temporal and spatial correlations and its characteristics are not fully understood. So, it is unfair to say that human mobility modelling has been done completely as per realistic scenario. Our motivation of this paper is not to solve the open challenge, but to provide good quantification of the different parameters and their effects over performance in structured MP2P networks.

Chung-Ming Huang, Tz-Heng Hsu, and Ming-Fa Hsu have proposed a network-aware P2P file discovery scheme for the wireless mobile network [14]. The entire network is divided into different clusters. Nodes in a cluster share similar characteristics and a super node is proposed to maintain the indices of the files. MR-Chord (Mobile Robust Chord) scheme [35] has been proposed by Isaac Woungang, Fan-Hsun Tseng, Yi-Hsuan Lin, Li-Der Chou, Han-Chieh Chao and Mohammad S. Obaidat. In this proposal additional information about lookup success/failure rate are stored in the finger table along with chords and accordingly stabilization is performed. A topology-aware Chord protocol has been proposed in [9] for structured MP2P networks and there are two tables namely finger table and neighborship table proposed in order to improve routing efficiency and lookup accuracy.C. L. Liu, C. Y. Wang and H. Y. have proposed a cross-layer Chord-based design scheme called Mobile Chord, which enhances the P2P lookup performance over VANETs [21].

In [6], Shiping Chen, Yan Qiao, Shigang Chen and Jianfeng Li have proposed a scheme to find out the cardinality of the mobile nodes in large MP2P networks. In this proposal authors have proposed two methods namely circled random walk and tokened random walk to find out the number of nodes in the large MP2P systems. In [34], Shengling Wang, Min Liu, Xiuzhen Cheng, Zhongcheng Li, Jianhui Huang and Biao Chen have proposed a scheme to deal with intermittently connected nodes in MP2P networks. There are two proposed algorithms which exploit the spatial locality, spatial regularity, and activity heterogeneity of human mobility to select the relays. In [27], Haiying Shen, Ze Li and Lei YuTo have proposed a routing mechanism for hybrid wireless networks based on P2P based Market-guided Distributed Routing (MDR) mechanism.

In [36], XIA Hailun, WANG Ning, and ZENG Zhimin have proposed an ECPS (Effective Capacity Peer Selection) scheme for mobile P2P networks based on effective capacity of the participating nodes in MP2P networks. In this scheme, the selection of neighbour node has been modelled using the MADM (Multiple Attribute Decision Making) theory. MADM theory considers multiple parameters of participating nodes like SINR (Signal to Interference and Noise Ratio), residence time, power, security, speed, and bandwidth capacity. In [32], authors have proposed a Bidirectional Neighbor’s Neighbor Chord routing scheme that can be used to improve the lookup performance in Chord-based P2P networks. In this scheme, the lookup is processed through clockwise and anticlockwise to improve the lookup performance.

Today, networks like MANETs, WMNs, VANETs, WLANs, WMANs etc. are gaining popularity due to less infrastructure requirement and these networks can be deploy in urban as well as rural areas very easily. MP2P communication is also acquisitioning popularity due to spreading of these networks. In our proposal, we consider the mobility pattern of the users in the urban cities. It has been observed and reported in [23] that users follow regular and fixed mobility pattern in the urban cities as shown in Fig. 2. Users follow highways, metros, buses and other transportation modes to do their daily activities. When users are in their offices or homes then their mobility is restricted to limited area and switch their movement direction frequently i.e. users have zig-zag type of mobility. Such mobility can be modelled by RWP (Random Waypoint) mobility model. When users follow highway or longer movement then their mobility can be modelled by FF (fluid flow) mobility model.

Fig. 2
figure 2

Mobility pattern of mobile user

Referring to Fig. 2, an user starts his journey from his home and follows different paths and may use different modes of transportation to reach his office. The user stays in his office during office hour and follows limited movement which is restricted to nearby office. User returns to his home and stays at his home. Apart from office and home, user may go to malls, cinema halls, shopping complexes, etc. for his daily needs. We divide the user’s movement in two category- movement on the longer path and restricted movement and accordingly we selected two mobility models namely fluid flow and RWP models to model the movement. We have assumed that the user communicates with other users in wireless mode in limited communication range with radius R (m). The communication establishment follows well-established procedure and protocols. As illustrated in Fig. 2, the mobility pattern of the mobile users in urban cities can be modelled and analysed using mobility models namely FF (Fluid Flow) and RWP (Random Waypoint). In this paper, we propose analytical modelling and analysis of the effects of user’s mobility pattern and its effect over expected life span of a node along with other challenges in MP2P networks.

3 Proposed analytical modelling and analysis

In our proposal, we model the different parameters which are applicable in structured MP2P networks. We assume that each node in MP2P network implements Chord [32] protocol or Chord [32] based protocols [5, 9, 11,12,13, 21, 22, 28, 35, 36] to maintain the overlay. Each node maintains a finger table with m chords (fingers) and it is updated on regular basis to keep information updated in view of mobility and churn of nodes. We used the following parameters in our analytical modelling and performance analysis. The numeric values of different parameters are considered as taken in existing works.

We define the SMR (Session to Mobility Ratio), ρs(probability of a session arrival) and ρm(probability of crossing MP2P communication boundary) similar to the notion discussed in [7, 10, 18, 19, 33, 37, 38]. We assumed that a node crosses the boundary of MP2P communication i number of times between two consecutive MP2P sessions. We define SMR = λsrm and ρs and ρm as follows.

$$ \rho_{s} = \frac{{\lambda_{sr} }}{{\lambda_{sr} + \lambda_{m} }} = \frac{SMR}{1 + SMR} $$
(1)
$$ \rho_{m} = \frac{{\lambda_{sr} }}{{\lambda_{sr} + \lambda_{m} }}\left( {\frac{{\lambda_{m} }}{{\lambda_{sr} + \lambda_{m} }}} \right)^{i} = \rho_{s} \left( {\frac{1}{1 + SMR}} \right)^{i} $$
(2)

3.1 Residence time and mobility models

We have selected two mobility models namely FF (Fluid Flow) and RWP in our proposal. FF mobility model is useful for node’s mobility on the highway side. FF mobility model has been proposed in [23] to compute the boundary crossing rate of mobile nodes who gather in close proximity. It is assumed that communication range of mobile nodes is circular with radius R (m) and different communication ranges exist in closed region. To apply FF mobility model as proposed in [23], there are two assumptions made. Firstly, the mobile nodes are uniformly distributed over the region and secondly the movement of each mobile node is uniformly distributed over [0, 2π]. The velocity of each mobile node is independent and identically distributed over the regions. We suppose λm and V are rate of crossing communication range per unit time and velocity (m/sec) respectively. The residence time of a mobile node in a communication area is the mean value of mobility rate as \( {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 {\lambda_{m} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\lambda_{m} }$}} \). According to FF mobility model, mobility rate (λm) of a mobile node is defined as follows.

$$ \lambda_{m} = \frac{{P_{CR} \times V}}{{\pi \times A_{CR} }} = \frac{2V}{\pi R} $$
(3)

where PCR and ACR are perimeter and area of the communication range respectively.

Mobile nodes have restricted mobility in closed area and it may be in zig-zag type as shown in Fig. 3. For such movement RWP mobility model is useful. In urban cities when mobile users do their jobs or marketing or other things in closed region then they used to follow zig-zag type of the movement. RWP mobility model has been proposed in [3, 15, 20, 28]. In [20, 28], authors have proposed improved RWP mobility model in which random direction of mobile node is uniformly distributed over [0, 2π] and waypoints are chosen as Markov process rather than independent identically distribution. A mobile node starts travelling at some point and moves in straight line up to next point and then changes its movement direction. The travel length in straight line between two points is called transition length. If transition length is short then mobile node moves in zig-zag motion. Mobile node may travel in straight line like the movement on the highway and residence time in a cell is inversely proportional to the speed. The mean residence time of a mobile node in a communication area without pause time at exit of the communication range is given as follows.

$$ R_{{res\left( {rwp} \right)}} \approx \chi \times \frac{{P_{CR} }}{4V} = \frac{\chi \pi R}{2V} $$
(4)

where \( \chi \in \left\{ {\frac{\sqrt 3 }{2}, 1} \right\} \) is a constant.

Fig. 3
figure 3

Communication area and zig-zag motion in mobile P2P network

Sometimes, mobile node moves in more zig-zag motion as shown in Fig. 3 and residence time is different than what is defined in (4). We suppose that γ is the mobility factor such that 0 ≤ γ≤1 and V is uniformly distributed over [Vmax, Vmin] then mean residence time of a mobile node in a communication range is given below.

$$ R_{{res\left( {rwp} \right)}}^{mean} = \frac{{\log V_{\hbox{max} } - \log V_{\hbox{min} } }}{{2\sqrt \gamma \left( {V_{\hbox{max} } - V_{\hbox{min} } } \right)}} \times P_{CR} $$
(5)

The transition length between two successive waypoints is defined as Eucludian distance and described as a stochastic process {Ln}n∈Νwhere Ln are independent and identically Rayleigh distributed with mean value

$$ E\left( {L_{tr} } \right) = \frac{1}{2\sqrt \gamma } $$
(6)

We suppose that a mobile node moves i ≥ 1 number of times and remains in the same communication range. If node’s velocity remains constant then mean residence time is defined as follows.

$$ R_{{res\left( {rwp} \right)}}^{mean} = \mathop \sum \limits_{i = 1}^{\infty } \left( {1 - \rho_{m} } \right)^{i} \frac{{P_{CR} }}{2\sqrt \gamma V} = \frac{R}{{\sqrt \gamma V\rho_{m} }} $$
(7)

If velocity of the mobile node is not constant then we take average speed as defined in [39] as given below.

$$ V_{avg} = \frac{Average\;Transition\;Length}{Average\;Transition\;Time} = \frac{{V_{max} - V_{min} }}{{\ln \left( {{\raise0.7ex\hbox{${V_{max} }$} \!\mathord{\left/ {\vphantom {{V_{max} } {V_{min} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${V_{min} }$}}} \right)}} $$
(8)

We suppose that a mobile node moves i ≥ 1 number of times and remains in the same communication range and speed of node varies between Vmax and Vmin then mean residence time is defined below.

$$ R_{{res\left( {rwp} \right)}}^{mean} = \mathop \sum \limits_{i = 1}^{\infty } \left( {1 - \rho_{m} } \right)^{i} \frac{{P_{CR} }}{{2\sqrt \gamma \frac{{V_{max} - V_{min} }}{{\ln \left( {{\raise0.7ex\hbox{${V_{max} }$} \!\mathord{\left/ {\vphantom {{V_{max} } {V_{min} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${V_{min} }$}}} \right)}}}} = \frac{\pi R}{{\sqrt \gamma \rho_{m} \frac{{V_{max} - V_{min} }}{{\ln \left( {{\raise0.7ex\hbox{${V_{max} }$} \!\mathord{\left/ {\vphantom {{V_{max} } {V_{min} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${V_{min} }$}}} \right)}}}} $$
(9)

The value of mobility factor (γ) decides the movement pattern of the mobile nodes. If value of γ is higher, it reflects more zig-zag motion with shorter transition length otherwise less zig-zag motion with longer transition length. The shorter transition length implies that mobile node changes its direction frequently. For example, it happens when a mobile user goes for shopping in a mall and changes his movement direction frequently. The larger value of transition length implies less change in the movement direction of mobile user. It happens when mobile user travels in a straight direction. So, value of mobility factor (γ) decides different kind of mobility of the mobile users.

The residence time of a mobile node in the area of communication range R = 100 m has been illustrated in Fig. 4. The value of mobility factor γ = 0.4 and probability ρm = 0.5, 0.7, 0.9. The speed of mobile node varies from 1 to 10 m/sec. The lower value of mobility factor shows less zig-zag motion with longer transition. The increase in the ρm shows the higher probability of mobile node to cross the communication boundary. It is obvious from this illustration that residence time of mobile node is inversely proportional to the speed of the mobile node in both the mobility models namely FF and RWP. But residence time in RWP model is much more than FF model. This is due to the zig-zag motion of the mobile node in RWP model. The residence time of mobile node is inversely proportional to the speed of the mobile node as well as probability ρm.

Fig. 4
figure 4

Residence time versus speed of mobile node

Referring to Fig. 5, we have selected the speed of mobile node Vavg = 5 and 10 m/sec, communication range R = 100 m and ρm = 0.5. The mobility factor (γ) varies from 0.1 to 1. We observed, when γ = 0.1, the residence time of the mobile node is maximum in RWP mobility model and it is constant in FF mobility model for constant parameters V and R. It is obvious that as γ increases then residence time decreases. This is due to the effect of the mobility factor (γ) over the residence time which is inversely proportional. It is also noticeable that when the speed of the mobile node is higher (Vavg = 10 m/sec) then the effect of γ over residence time is lesser as compared to speed. When mobility factor γ = 1, the mobile node travels in a straight line most of the time and hence residence time in communication area is lowest. Referring to (3), (7) and (9) the residence time in FF and RWP mobility models is inversely proportional to the speed of mobile node but residence time in FF model is inversely proportional to the double of speed of mobile node as compared to RWP model. Although, mobility factor (γ) and probability ρm have inverse effect over residence time in RWP model but these factor have value which is less than equal to one. So, the residence time of the mobile node is less in FF model as compared to RWP model.

Fig. 5
figure 5

Residence time versus mobility factor (γ)

Referring to Fig. 6, we have selected the speed of mobile node Vavg = 5 and 10 m/sec and communication range R = 100 m. The mobility factor (γ) and ρm vary from 0.1 to 1. It is obvious from this illustration that the residence time of the mobile node is maximum when γ = ρm = 0.1 and Vavg = 5 m/s in RWP mobility model but it is constant in FF mobility model for constant V and R. But when parameters γ, ρm, and V are increased then residence time decreases in RWP mobility model. This is due to the effect of these parameters over the residence time which is inversely proportional. It is also noticeable that when the speed of the mobile node is higher (Vavg = 10 m/sec) and ρm = γ=1 then the residence time in FF and RWP mobility models is almost equal. It is obvious from Figs. 4, 5, 6, 7 that when mobile node follows zig-zag type of motion then residence time is more even through the speed varies. The radius of the communication (R) is also crucial in deciding the residence time of the node. Increasing the radius can enhance the residence time more in zig-zag time of motion.

Fig. 6
figure 6

Residence time versus mobility factor (γ) versus probability (ρm)

Fig. 7
figure 7

Failure rate (λF) versus Churn rate (CR)

3.2 Failure of fingers and life span of a node

MP2P systems are distributed systems and there is no central entity or server to control the system. Participating nodes are autonomous but cooperation from each node is desirable. Nodes are supposed to share their resources at their wish. We assume that topology formed by the participating mobile nodes is tightly governed by ring topology. The rate of failure λfof a node in MP2P system depends upon CR (Churn Rate) and λm of the node. So, we defined the rate of failure as follows.

$$ \lambda_{f} = \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} $$
(10)

where 0 ≤ α≤1 is a tuning parameter.

We defined stabilization factor (Sf) as the ratio of rate of failure and rate of stabilization (λs) as follows.

$$ S_{f} = \frac{{\lambda_{f} }}{{\lambda_{s} }} $$
(11)

We observed the following conclusions depending upon the values of Sf-

  1. (1)

    If Sf = 1then it reflects the optimal stabilization,

  2. (2)

    If Sf > 1 then it reflects over stabilization, and

  3. (3)

    If Sf < 1 then it reflects under stabilization.

The failure of finger table is dependent on failure of fingers. The failure of fingers in the finger table depends upon the mobility rate (λm) and churn rate (CR). Suppose there are m fingers in the finger table then failure rate of the finger table is defined as follows.

$$ \lambda_{F} = m\lambda_{f} = m\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\} $$
(12)

Stabilization of the finger table is defined over failure rate and stabilization rate as follows.

$$ S_{ft} = \lambda_{F} - m\lambda_{s} = m\left[ {\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\} - \lambda_{s} } \right] $$
(13)

If Sft ≤ 0 then we consider the fingers’ stabilization up to mark.

In Figs. 7 and 8, failure rate Vs CR (churn rate) has been illustrated. The CR varies from 0.001 to 0.1. The other parameters α = 0.5, and λm is selected as 0.001, 0.005, 0.01, 0.05 and 0.1. The number of chords in a finger table, m = 6. The value of α = 0.5 indicates 50% weighted for CR and λm each. The value CR = 0.1 indicates one disappearance in 10 unit time. Similarly, λm = 0.05 indicates 5 number of crossings of communication range in 100 unit time. Referring to Fig. 7, CR varies from 0.001 to 0.01. When CR = 0.001 and λm = 0.001 then failure rate, λF = 6 × 10−3 i.e. 6 failures per 1000 unit time. But as CR and λm are increased then λF is also increased. Referring to Fig. 8, CR varies from 0.01 to 0.1. When CR = 0.1 and λm = 0.1 then λF = 0.6 × 10−2. So, the effect of churn rate and mobility rate of mobile node is proportional over the failure rate (Table 1).

Fig. 8
figure 8

Failure rate (λF) versuss Churn rate (CR)

Table 1 Parameters

In Figs. 9 and 10, failure rate Vs tuning factor, CR (churn rate) and mobility rate has been illustrated. Referring to Fig. 9, the tuning factor varies from 0.1 to 1 and m = 6. The mobility rate (λm) = 0.001 which indicates less mobility rate. The variation in tuning factor indicates the change in the weighted given to CR or λm. The CR has been considered as 0.005 and 0.01. It is clear from this illustration that increase in the tuning factor shows the increase in the failure rate even if the CR rate is constant. This means the tuning factor should be selected judiciously. If CR is most dominant factor than tuning factor should be kept higher otherwise lower. Referring to Fig. 10, failure rate has been illustrated while varying CR and λm equally from 0.01 to 0.1. The other parameters are selected as α = 0.5 and m = 6. The tuning factor α = 0.5 indicates 50% weighted for CR and λm each. It is obvious from this illustration that failure rate increases as CR and λm increase. In Figs. 7, 8, 9, 10, the failure rate of a node has been illustrated. It is dependent on CR and mobility rate. If CR and mobility rate are increasing then failure rate is also increasing.

Fig. 9
figure 9

Failure rate (λF) versus tuning factor (α)

Fig. 10
figure 10

Failure rate (λF) versus Churn rate versus mobility rate

The life span (Lt) of a node follows Poisson distribution with mean \( {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 {\lambda_{f} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\lambda_{f} }$}} \). So, let \( L_{t} = \frac{\eta }{{\lambda_{f} }} \) where 0 < η≤1 is a tuning factor. Let the expected life time of a node in MP2P network is E(Lt) in sec, i.e. \( E\left( {L_{t} } \right) = \frac{\eta }{{\lambda_{f} }} = n_{1} \) where n is the number of joining for node and ρ1 is the probability of anode to be alive in the network. So, \( \rho_{1} = \frac{\eta }{{n\lambda_{f} }} \). We assumed that the joining or leaving processes of mobile nodes are independent and these don’t affect each other. Life span of each mobile node in MP2P network follows the Poisson’s distribution. So, we define the probability of a node’s life span as k (in sec) as per Poisson distribution.

$$ \begin{aligned} \rho_{1} \left( {x = k} \right) = & \mathop {\lim }\limits_{n \to \infty } \left( {\begin{array}{*{20}c} n \\ k \\ \end{array} } \right)\left( {\frac{\eta }{{n\lambda_{f} }}} \right)^{k} \left( {1 - \frac{\eta }{{n\lambda_{f} }}} \right)^{n - k} \\ = & \mathop {\lim }\limits_{n \to \infty } \frac{n!}{{\left( {n - k} \right)!k!n^{k} }}\left( {\frac{\eta }{{\lambda_{f} }}} \right)^{k} \left( {1 - \frac{\eta }{{n\lambda_{f} }}} \right)^{n - k} \\ = & \left( {\frac{\eta }{{\lambda_{f} }}} \right)^{k} \frac{1}{k!}\mathop { \lim }\limits_{{{\text{n}} \to \infty }} \frac{n!}{{\left( {n - k} \right)!n^{k} }}\left( {1 - \frac{\eta }{{n\lambda_{f} }}} \right)^{n} \left( {1 - \frac{\eta }{{n\lambda_{f} }}} \right)^{ - k} \approx \frac{{\eta^{k} e^{{ - {\raise0.7ex\hbox{$\eta $} \!\mathord{\left/ {\vphantom {\eta {\lambda_{f} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\lambda_{f} }$}}}} }}{{\lambda_{f}^{k} k!}} \\ \end{aligned} $$
(14)

The PDF (Probability Density Function) of the probability for life span of a node defined in (9) is given as follows.

$$ PDF\left( {\rho_{1} \left( {\text{x > k}} \right)} \right) = 1 - \mathop \sum \limits_{i = 0}^{k} \frac{{\eta^{i} e^{{ - {\raise0.7ex\hbox{$\eta $} \!\mathord{\left/ {\vphantom {\eta {\lambda_{f} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\lambda_{f} }$}}}} }}{{\lambda_{f}^{i} i!}} $$
(15)

The life span of a node with respective probability has been shown in Fig. 11. The failure rate (λf) is taken as 0.1 per minute which means expected life span of the node has been considered as 10 min. The life span of the node varies from 1 to 20 min and corresponding probability has been illustrated. The value of tuning factor (η) is considered as 1 for convenience. It is obvious from the illustration that as life span decreases or increases with respect to the expected value (10 Min) then corresponding probability decreases. The value of η is selected as per the values of CR and λm and it is considered nearby one. But sometimes nodes are disconnected due to other reasons. In such conditions, value η is taken less.

Fig. 11
figure 11

Node’s life span and respective probability

3.3 Finger table stabilization cost

As reported in [17] that nodes arrivals rate in the MP2P networks follow Poisson process with constant rate \( \lambda_{j} = \frac{Average\;Number\;of\;Nodes}{Mean\;Node's\;Life\;Time} = \frac{N}{{E\left( {L_{t} } \right)}} = \frac{{N\lambda_{f} }}{\eta } \). Thus \( \lambda_{j} = \frac{N}{{E\left( {L_{t} } \right)}} = \frac{{N\lambda_{f} }}{\eta } \). So, the probability ρ2 of k nodes arrival per unit time is defined below.

$$ \rho_{2} \left( {{\text{x}} = {\text{k}}} \right) = \frac{{\lambda_{j}^{k} e^{{ - \lambda_{j} }} }}{k!} = \frac{{\left( {\frac{{N\lambda_{f} }}{\eta }} \right)^{k} e^{{ - \left( {\frac{{N\lambda_{f} }}{\eta }} \right)}} }}{k!} $$
(16)

We assume that stabilization rate is same as failure rate as defined in (10) and a node crosses the boundary of MP2P communication i number of times between two consecutive MP2P sessions and newly arrived nodes per unit time as defined in (16) are equally distributed among total number of nodes (N). So, the stabilization cost (Cst in sec) per unit time is defined as follows.

$$ \begin{aligned} C_{st} = & \mathop \sum \limits_{i = 1}^{\infty } i\rho_{m} m\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\}C_{t} + \frac{{C_{t} }}{N}\mathop \sum \limits_{k = 1}^{\infty } k\rho_{m} \frac{{\left( {\frac{{N\lambda_{f} }}{\eta }} \right)^{k} e^{{ - \left( {\frac{{N\lambda_{f} }}{\eta }} \right)}} }}{k!} \\ = &\, m\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\}C_{t} \mathop \sum \limits_{i = 1}^{\infty } i\rho_{s} \left( {\frac{1}{1 + SMR}} \right)^{i} + \mathop {\lim }\limits_{k \to \infty } \frac{{\left( {\frac{{N\lambda_{f} }}{\eta }} \right)^{k} }}{k!}\frac{{C_{t} }}{N}\mathop \sum \limits_{k = 1}^{\infty } k\rho_{m} e^{{ - \left( {\frac{{N\lambda_{f} }}{\eta }} \right)}} \\ = &\, m\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\}C_{t} \frac{SMR}{1 + SMR}\mathop \sum \limits_{i = 1}^{\infty } i\left( {\frac{1}{1 + SMR}} \right)^{i} + \frac{{C_{t} }}{N}e^{{ - \left( {\frac{{N\lambda_{f} }}{\eta }} \right)}} \times \frac{SMR}{1 + SMR}\mathop \sum \limits_{k = 1}^{\infty } k\left( {\frac{1}{1 + SMR}} \right)^{k} \\ = &\, \frac{{m\left\{ { \alpha CR + \left( {1 - \alpha } \right)\lambda_{m} } \right\}C_{t} + e^{{ - \left( {\frac{{N\lambda_{f} }}{\eta }} \right)}} \frac{{C_{t} }}{N}}}{SMR} \\ \end{aligned} $$
(17)

Finger table stabilization cost (Cst) has been illustrated in Figs. 12, 13, 14 and 15 while varying CR (Churn Rate), node arrival rate (λj), and SMR (Session-to-Mobility Ratio). Other parameters, SMR = 0.5, α = 0.5, η = 1, Ct = 1 (sec), m = 6, and N = 50. It means there are 50 nodes in communication area and 6 chords in the finger table maintained by each node. The value of η is considered as 1 to keep the analysis simple and value of α = 0.5 indicates equal weightage for CR and λm in calculation of failure rate. Here, the value 0 < SMR ≤ 1 and thus SMR is considered in medium range. Referring to Fig. 12, CR varies from 0.01 to 0.1 and stabilization costs for mobility rates 0.01, 0.05 and 0.1 have been illustrated. It is obvious from illustration that if CR and λm are increasing then Cst is also increasing. The stabilization costs in respect of above parameters’ value are expressed as, \( C_{st} = 6CR + 0.06 + \frac{1}{{25e^{25CR + .25} }} \);\( C_{st} = 6CR + 0.3 + \frac{1}{{25e^{25CR + .25} }} \) and \( C_{st} = 6CR + 0.5 + \frac{1}{{25e^{25CR + .25} }} \) for λm = 0.01, λm = 0.05 and λm = 0.1 respectively. Referring to Figs. 13 and 14, stabilization cost while varying node arrival rate has been illustrated. The node arrival rate has been considered per node and it varies from 0.1 to 10. The value of λj = 0.5 means 5 new nodes arrival per 10 unit time. The three different values 0.01, 0.05, and 0.1 for CR and λm have been considered. It is obvious from illustration that stabilization cost increases in proportionate with CR, λm, and λj.

Fig. 12
figure 12

Finger table stabilization cost and churn rate

Fig. 13
figure 13

Finger table stabilization cost and node arrival rate

Fig. 14
figure 14

Finger table stabilization cost and node arrival rate

Fig. 15
figure 15

Finger table stabilization cost and session-to-mobility ratio

Referring to Fig. 15, stabilization cost while varying the SMR has been illustrated. Other parameters are taken as, CR = λm = 0.5, α = 0.5, η = 1, Ct = 1 (sec), m = 6 and N = 50. The nodes’ arrival rate is taken as 0.1, 0.5 and 1. When SMR is low, it means mobility rate of node is higher than stabilization cost. When node’s arrival rate is higher than stabilization cost is higher also. So, when SMR = 0.1 and arrival rate is 1 then stabilization cost is 13 s whereas stabilization cost is 4 s when SMR = 0.1 and arrival rate is 0.1. So, it is obvious from this illustration that stabilization cost is proportional to arrival rate but reciprocal to SMR.

Finger table stabilization is a Poisson process and expected stabilization factor Sf = 1 for optimal stabilization. We assumed that stabilization of finger tables is independent process for all nodes in the MP2P network and it is a discrete event over time period. Let the expected value of stabilization factor Sf = β=1 for t time period. The expected value,\( E\left( x \right) = \beta = \rho_{3} \times n \) so, \( \rho_{3} = \beta /n \) where n is the number of stabilizations. We defined the probability of stabilization factor for k value as per Poisson distribution.

$$ \begin{aligned} \rho_{3} \left( {{\text{x}} = {\text{k}}} \right) = & \mathop {\lim }\limits_{{{\text{n}} \to \infty }} \left( {\begin{array}{*{20}c} n \\ k \\ \end{array} } \right)\left( {\frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{k} \left( {1 - \frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{n - k} \\ = & \mathop { \lim }\limits_{{{\text{n}} \to \infty }} \frac{n!}{{\left( {n - k} \right)!k!}}\left( {\frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{k} \left( {1 - \frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{n} \left( {1 - \frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{ - k} \\ = & \left( {\frac{{\lambda_{f} }}{{\lambda_{s} }}} \right)^{k} \frac{1}{k!}\mathop { \lim }\limits_{{{\text{n}} \to \infty }} \frac{n!}{{\left( {n - k} \right)!n^{k} }}\left( {1 - \frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{n} \left( {1 - \frac{{\lambda_{f} }}{{n\lambda_{s} }}} \right)^{ - k} \approx \left( {\frac{{\lambda_{f} }}{{\lambda_{s} }}} \right)^{k} \frac{1}{k!} \\ \end{aligned} $$
(18)

For optimal stabilization of the finger table, x = k=1 then

$$ \frac{{\lambda_{f} }}{{\lambda_{s} }} \approx 1 $$
(19)

It means that stabilization rate should be equal to failure rate for optimal stabilization.

3.4 Intermittent bandwidth and its effect

In MP2P networks, intermittent bandwidth is a challenge. The available bandwidth depends upon many factors like uploading capacity of equipment, distance from feeder node, restricted upload bandwidth, etc. Sometime, mobile user restricts the upload bandwidth to a maximum limit. We assume that Wmin and Wmax are minimum and maximum bandwidths respectively of mobile node during certain time period and these are independent and identically distributed. The available bandwidth varies between Wmin and Wmax. We suppose at particular time, the available bandwidth is Wavl such that Wmin ≤ Wavl ≤ Wmax. Further we assume two nodes are static while communicating but nodes are mobile then these are in communication range. Wavl is continuous variable and distributed over Wmin and Wmax. The available bandwidth Wavl follows Gamma distribution over Wmin and Wmax. We define the probability of available bandwidth Wavl during specific time period as follows.

$$ \rho_{3} \left( {\left\lceil {W_{avl} } \right\rceil \left| {\left\lceil {W_{max} } \right\rceil ,\left\lceil {W_{min} } \right\rceil } \right.} \right) = \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{\left\lceil { - W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} }}{{\left( {\left\lceil {W_{max} } \right\rceil - 1} \right)!}} $$
(20)

where Wavl ≥ 0, Wmin, Wmax > 0The mean or expected value of the available bandwidth as define in (20) is obtained as follows.

$$ \begin{aligned} E\left( {\left\lceil {W_{avl} } \right\rceil } \right) = & \mathop \smallint \limits_{ - \infty }^{\infty } \left\lceil {W_{avl} } \right\rceil \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} }}{{R^{2} \left\lceil {W_{max} } \right\rceil !}}d\left\lceil {W_{avl} } \right\rceil \\ = & 0 + \mathop \smallint \limits_{0}^{\infty } \left\lceil {W_{avl} } \right\rceil \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} }}{{\left( {\left\lceil {W_{max} } \right\rceil - 1} \right)!}}d\left\lceil {W_{avl} } \right\rceil \\ = & \frac{{\left\lceil {W_{max} } \right\rceil }}{{\left\lceil {W_{min} } \right\rceil }} \\ \end{aligned} $$
(21)

We define the variance of Wavl as follows.

$$ Var\left( {W_{avl} } \right) = E\left( {W_{avl}^{2} } \right) - \left( {E\left( {W_{avl} } \right)} \right)^{2} $$
(22)
$$ \begin{aligned} = & \mathop \smallint \limits_{ - \infty }^{\infty } \left\lceil {W_{avl} } \right\rceil^{2} \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} }}{{(W_{max} - 1)!}}d\left\lceil {W_{avl} } \right\rceil - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ = & 0 + \mathop \smallint \limits_{0}^{\infty } \left\lceil {W_{avl} } \right\rceil^{2} \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} }}{{\left( {\left\lceil {W_{max} } \right\rceil - 1} \right)!}}d\left\lceil {W_{avl} } \right\rceil - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ = & \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} }}{{\left\lceil {W_{max} } \right\rceil !}}\mathop \smallint \limits_{0}^{\infty } \left\lceil {W_{avl} } \right\rceil^{2} \left\lceil {W_{avl} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} d\left\lceil {W_{avl} } \right\rceil - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ = & \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} }}{{\left( {\left\lceil {W_{max} } \right\rceil - 1} \right)!}}\mathop \smallint \limits_{0}^{\infty } \left\lceil {W_{avl} } \right\rceil^{{\left( {\left\lceil {W_{max} } \right\rceil + 2} \right) - 1}} e^{{ - \left\lceil {W_{min} } \right\rceil \left\lceil {W_{avl} } \right\rceil }} d\left\lceil {W_{avl} } \right\rceil - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ = & \frac{{\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil }} \left( {\left\lceil {W_{max} } \right\rceil + 1} \right)!}}{{\left( {\left\lceil {W_{max} } \right\rceil - 1} \right)!\left\lceil {W_{min} } \right\rceil^{{\left\lceil {W_{max} } \right\rceil + 2}} }} - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ = & \frac{{\left\lceil {W_{max} } \right\rceil \left( {\left\lceil {W_{max} } \right\rceil + 1} \right)}}{{\left\lceil {W_{min} } \right\rceil^{2} }} - \frac{{\left\lceil {W_{max} } \right\rceil^{2} }}{{\left\lceil {W_{min} } \right\rceil^{2} }} = \frac{{\left\lceil {W_{max} } \right\rceil }}{{\left\lceil {W_{min} } \right\rceil^{2} }} \\ \end{aligned} $$
(23)

The available bandwidth and respective probability has been illustrated in Fig. 16. The minimum and maximum bandwidths are considered as Wmin = 2 mb/s and Wmax = 15 mb/s. The available bandwidth (Wavl) is continuous distributed parameter over Wmax and Wmin. Further we assume that Wavl ≥ 0 and Wmax, Wmin > 0. The available bandwidth Wavl follows Gamma distribution and probability of available Wavl is expressed in (18). In structured MP2P communication two nodes are communicated with each other for shorter time period when nodes are in communication range. It is also noticeable that available bandwidth for MP2P communication is very limited and intermittent. Referring to Fig. 16, the available bandwidth Wavl varies from 2 to 15 mb/s and respective probability has been shown. When Wmax = 10 mb/s and Wmin = 2 mb/s then ρ3(2∣10, 2) = 0.026, ρ3(5∣10, 2) = 0.248, and ρ3(15∣10, 2) ≈ 0.00001. When Wmax = 15 mb/s and Wmin = 2 mb/s then ρ3(2∣10, 2) = 0.0001, ρ3(5∣10, 2) = 0.104, ρ3(7∣10, 2) = 0.212 and ρ3(15∣10, 2) ≈ 0.001. It is obvious from this illustration that probability is higher when available bandwidth is in the average range of Wmax and Wmin.

Fig. 16
figure 16

Available bandwidth and respective probability

The available bandwidth and respective probability has been illustrated in Fig. 16. The minimum and maximum bandwidths are considered as Wmin = 2 mb/s and Wmax = 15 mb/s. The available bandwidth (Wavl) is continuous distributed parameter over Wmaxand Wmin. Further we assume that Wavl ≥ 0 and Wmax, Wmin > 0. The available bandwidth Wavl follows Gamma distribution and probability of available Wavl is expressed in (18). In structured MP2P communication two nodes are communicated with each other for shorter time period when nodes are in communication range. It is also noticeable that available bandwidth for MP2P communication is very limited and intermittent. Referring to Fig. 16, the available bandwidth Wavl varies from 2 to 15 mb/s and respective probability has been shown. When Wmax = 10 mb/s and Wmin = 2 mb/s then ρ3(2∣10, 2) = 0.026, ρ3(5∣10, 2) = 0.248, and ρ3(15∣10, 2) ≈ 0.00001. When Wmax = 15 mb/s and Wmin = 2 mb/s then ρ3(2∣10, 2) = 0.0001, ρ3(5∣10, 2) = 0.104, ρ3(7∣10, 2) = 0.212 and ρ3(15∣10, 2) ≈ 0.001. It is obvious from this illustration that probability is higher when available bandwidth is in the average range of Wmax and Wmin.

4 Conclusion

We have presented a detailed analytical modelling of the performance of Chord or Chord based protocols in wireless environments like MANETs, WMNs, WSNs, VANETs, WLAN, WMAN etc. in respect of various parameters such as mobility rate of users, churn rate of nodes, intermittent bandwidth, expected life span of a node, stabilization cost, SMR etc. It has been observed that life span of a mobile node is inversely proportional to mobility rate and churn rate. When user follows longer path then residence time in a communication area is less as compared to zig-zag motion restricted to certain area. Failure rate of node is proportional to its mobility rate and churn rate. We have proposed two mobility models namely FF and RWP as per the mobility pattern of the mobile users. The finger table stabilization cost is dependent upon mobility rate, churn rate and arrival rate of the nodes. When these parameters increase then stabilization cost increases in order to keep the finger table updated. The stabilization cost is inversely proportional to the SMR. The available bandwidth has higher probability to be in the average range of minimum and maximum bandwidths. Stabilization of finger table is necessary to keep information updated and reduce failure rate. Stabilization rate must be equal to the failure rate for optimal stabilization of the finger table. The proposed work is useful for analysing the performance of the Chord-based protocols applicable in different wireless environments like MANETs, WMNs, WSNs, VANETs, WLAN, WMAN etc. The free riding behaviour of participating nodes has not been considered in proposed work in performance analysis with respect to expected life span of a node, stabilization cost, and SMR which can be considered for further study.