Skip to main content

Advertisement

Log in

Modelling and performance analysis of content sharing and distribution in community networks with infrastructure support

  • Published:
Peer-to-Peer Networking and Applications Aims and scope Submit manuscript

Abstract

We consider the problem of sharing a viral file between users in a local community network (e.g., college and office campuses). Community computing is computer networking among and between users in a geographically bounded setting for local purposes and activities. Due to the community-oriented nature of such networks, it is likely that users of a community network would like to share content. Peer-to-Peer (P2P) networks have turned out to be one of the most innovative paradigms for sharing content on the Internet. In this paper, we analyze the performance of P2P content sharing in community networks and investigate the role that infrastructure nodes (helpers) can play to enhance the performance of content sharing and distribution. We model the evolution of content demand in a community network. The use of this demand prediction model allows us to design a delicate P2P-with-helpers content distribution system. Our insights that we obtain using fluid-flow model increase our understanding of how helper provisioning affects the performance of content sharing and distribution. The derived results show that significant reduction in both the cost of distributing content and the average content download time can be realized when only few infrastructure nodes in the community network play the role helpers and cache P2P objects.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

References

  1. Banchs A, Bayer N, Chieng D, de la Oliva A, Gloss B, Kretschme M, Murphyk S, Natkaniec M, Zdarsky F (2008) CARMEN: delivering carrier grade services over wireless mesh networks. In: Proc. of the IEEE PIMRC ’08, pp 1–6. doi:10.1109/PIMRC.2008.4699961

  2. Akyildiz IF, Wang X, Wang W (2005) Wireless mesh networks: a survey. Comput Netw 47(4):445–487. Elsevier Science Publishers. doi:10.1016/j.comnet.2004.12.001

    Article  MATH  Google Scholar 

  3. Free networks.org. http://www.seattlewireless.net. Accessed 21 Aug 2012

  4. Camp JD, Knightly EW, Reed WS (2006) Developing and deploying multihop wireless networks for low-income communities. J Urban Technol 13(129):1063–0732. doi:10.1080/10630730601146094

    Google Scholar 

  5. He Y, Guan L (2004) Is P2P dying or just hiding? In: Proc. of the GLOBECOM 2004 conference

  6. Wang J, Yeo C, Prabhakaran V, Ramch K (2007) On the role of helpers in peer-to-peer file download systems: design, analysis and simulation. In: Proc. of the IPTPS’07

  7. Zhang H, Wang J, Chen M, Ramchandran K (2009) Scaling peer-to-peer video-on-demand systems using helpers. In: Proc. of the IEEE international conference on image processing

  8. Karagiannis T, Broido A, Brownlee N, Claffy KC, Faloutsos M (2009) Improving the streaming capacity in P2P VoD systems with helpers. In: Proc. of the ICME 2009 conference. IEEE Computer Society Press, Los Alamitos, CA

    Google Scholar 

  9. Massouli L, Vojnovic M (2005) Coupon replication systems. In: Proc. of ACM SIGMETRICS. ACM Press, pp 2–13

  10. Sanghavi S, Hajek B, Massoulie L (2007) Gossiping with multiple messages. In: Proc. of the IEEE INFOCOM 2007, pp 2135–2143. doi:10.1109/INFCOM.2007.247

  11. Hajek B, Zhu J (2010) The missing piece syndrome in peer-to-peer communication. In: Proc. of the IEEE international symposium on information theory (ISIT) 2010, pp 1748–1752. doi:10.1109/ISIT.2010.5513266

  12. Zulhasnine M, Huang C, Srinivasan A (2010) Favorable peer supported throughput optimization in wireless mesh network. In: Proc. of the IEEE GLOBECOM 2010, pp 1–5. doi:10.1109/GLOCOM.2010.5683588

  13. Gummadi K, Dunn R, Saroiu S, Gribble S, Levy H, Zahorjan J (2003) Measurement, modeling, and analysis of a peer-to-peer file-sharing workload. In: Proc, of the nineteenth ACM symposium on operating systems principles (SOSP ’03). ACM, New York, pp 314–329. doi:10.1145/945445.945475

    Chapter  Google Scholar 

  14. Izal M, Urvoy-Keller G, Biersack EW, Felber PA, Al Hamra A, Garces-Erice L (2004) Dissecting Bittorrent: five months in a torrent’s lifetime. In: Proc. of passive and active network measurement workshop, pp 1–11. doi:10.1007/978-3-540-24668-8_1

  15. Guo L, Chen S, Xiao Z, Tan E, Ding X, Zhang X (2007) A performance study of Bittorrent-like peer-to-peer systems. IEEE J Sel Areas Commun 25(1):155–169. doi:10.1109/JSAC.2007.070116

    Article  Google Scholar 

  16. Qiu D, Srikant R (2004) Modeling and performance analysis of BitTorrent-like peer-to-peer networks. In: Proc. of SIGCOMM ’04

  17. Yue Y, Lin C, Tan Z (2006) Analyzing the performance and fairness of Bittorrent-like networks using a general fluid model. Comput Commun 29(18):3946–3956

    Article  Google Scholar 

  18. Songqing LG, Guo L, Chen S, Xiao Z, Tan E, Ding X, Zhang X (2005) Measurements, analysis, and modeling of BitTorrent-like systems. In: Proc. of the ACM/SIGCOMM (IMC ’05)

  19. Pouwelse P, Garbacki P, Epema D, Sips H (2005) The Bit-Torrent P2P file-sharing system: measurements and analysis. In: Proc. of the international workshop on peer-to-peer systems

  20. Iamnitchi A, Ripeanu M, Santos-Neto E, Foster I (2011) The small world of file sharing. IEEE Trans Parallel Distrib Syst 22:1120–1134. doi:10.1109/TPDS.2010.170

    Article  Google Scholar 

  21. Chen Z, Lin C, Yin H, Li B (2008) On the server placement problem of P2P live media streaming system. In: Proc. of the 9th pacific rim conference on advances in multimedia information processing, PCM ’08. Springer, Berlin Heidelberg New York, pp 178–187. doi:10.1007/978-3-540-89796-5_19

    Google Scholar 

  22. Kwok SH, Chan KY, Cheung YM (2005) A server-mediated peer-to-peer system. ACM SIGecom Exchanges 5(3):38–47. doi:10.1145/1120680.1120686

    Article  Google Scholar 

  23. Hefeeda MM, Bhargava BK, Yau DK (2004) A hybrid architecture for cost-effective on-demand media streaming. Comput Networks 44(3):353–382. doi:10.1016/j.comnet.2003.10.002. http://www.sciencedirect.com/science/article/pii/S1389128603003992

    Article  Google Scholar 

  24. Xu D, Kulkarni S, Rosenberg C, Chai HK (2006) Analysis of a CDN-P2P hybrid architecture for cost-effective streaming media distribution. Multimedia Syst 11(4):383–399. doi:10.1007/s00530-006-0015-3

    Article  Google Scholar 

  25. Shakkottai S, Johari R (2010) Demand-aware content distribution on the internet. IEEE/ACM Trans Netw 18(2):476–489. doi:10.1109/TNET.2009.2035047

    Article  Google Scholar 

  26. Wang J, Ramchandran K (2008) Enhancing peer-to-peer live multicast quality using helpers. In: Proc. of the 15th IEEE international conference on image processing (ICIP 2008), pp 2300–2303. doi:10.1109/ICIP.2008.4712251

  27. Stoica I, Morris R, Liben-Nowell D, Karger DR, Kaashoek MF, Dabek F, Balakrishnan H (2003) Chord: a scalable peer-to-peer lookup protocol for internet applications. IEEE/ACM Trans Netw, IEEE Press 11(1):17–32. doi:10.1109/TNET.2002.808407

    Article  Google Scholar 

  28. Bass FM (1969) A new product growth for model consumer durables. Manage Sci 15(5):215–227. doi:10.1287/mnsc.15.5.215

    Article  MATH  Google Scholar 

  29. Liu Y, Guo Y, Liang C (2008) A survey on peer-to-peer video streaming systems. PPNA 18(1):28

    Google Scholar 

  30. Xie S, Keung GY, Li B (2007) A measurement of a large-scale peer-to-peer live video streaming system. In: Proc. of the IEEE ICPPW ’07. IEEE Computer Society Press, Los Alamitos, CA, p 57. doi:10.1109/ICPPW.2007.9

    Google Scholar 

  31. Xie H, Yang YR, Krishnamurthy A, Liu YG, Silberschatz A (2008) P4P: provider portal for applications. SIGCOMM Comput Commun Rev 38(4):351–362. doi:10.1145/1402946.1402999

    Article  Google Scholar 

  32. Lorincz J, Capone A, Bogarelli M (2010) Energy savings in wireless access networks through optimized network management. In: Proc. of ISWPC conferecne, pp 449–454. doi:10.1109/ISWPC.2010.5483779

  33. Chiaraviglio L, Mellia M, Neri F (2009) Energy-aware backbone networks: a case study. In: Proc. of the ICC workshops, pp 1–5. doi:10.1109/ICCW.2009.5208038

Download references

Acknowledgement

This work was supported in part by King Abdulaziz City for Science and Technology under grant number 8399-120.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Amr Alasaad.

Appendix

Appendix

In this section, we show that enabling few infrastructure nodes in the community network to participate in P2P content distribution results in significant reduction in the network power consumption.

The energy consumption of communication systems is becoming a fundamental issue. In fact, the information and communication technology sector is responsible for 2 to 2.5 % of the GHG annual emission [32, 33], and the wireless access networks are largely responsible for the increase in energy consumption. It follows that being able to minimize the base station energy consumption in a wireless network represents an important green networking objective.

We assume, without loss of generality, a wireless community network consisting of wireless routers that are connected in the form of wireless mesh network (WMN) [1, 2]. We assume a large wireless mesh network consisting of many stationary mesh routers (M) uniformly deployed in a 2-dimensional squared area (grid-like topology) (Fig. 9). Any two nodes that can communicate directly with each other are connected by an edge in the graph. Within the mesh network, data is communicated over wireless links. Nodes may communicate directly over a wireless link or over multiple hops with intermediate nodes forwarding data. Mesh clients (peers) are usually with much less upload bandwidth compared to the mesh routers. We assume that the routing algorithm employs a minimum hop routing metric such as AODV and DSR.

Fig. 9
figure 9

Network model

Although the assumptions about community network being a wireless mesh network with grid-like topology may be restrictive, we use these assumptions in our analysis for the purpose of explaining our model and verifying the effectiveness of our approach in reducing the energy consumption. However, the results that we derive can be extended to any community network topology no matter wired or wireless. However, the problem is more difficult due to the complexity of the wired network topology.

We compare the power consumption in two content distribution schemes in WMN. The first scheme is content distribution using a centralized server that is physically located in the center of the network with upload bandwidth of μ s . The second scheme is the P2P content distribution using the proactive helpers scheme (Section 4.1).

Let the transmission power, that is required at each mesh router in order to relay a data packet of content i to the next router towards the destination be P MR (assuming all content packets are with the same size). To reduce the network power consumption that results from accessing P2P objects from peers and helpers using the P2P with proactive helper scheme, we consider the following content retrieval scheme: a peer j which downloads object i retrieves segments of i from the nearest helper y, which caches a replica of i, and from all the served peers.

Let us suppose that object i has only one replica at one of the helpers at time t, and is placed as shown in Fig. 10a. Let the maximum power that is consumed in the network as a result of accessing object i at that helper from any peer in the network at time t be P h (t). We can see that P h is the power that is consumed when peer x accesses the replica of content i at that helper. We can further see that \(P_{h}(t) = \frac{\sqrt{M}}{2} \cdot P_{MR}\), where M is the total number of mesh routers in the WMN. Suppose object i has 4 replicas at the helpers at time t, and those replicas are placed as shown in Fig. 10b. Then, the maximum power consumed in accessing a replica of object i at the helpers becomes \(P_{h}(t)=\frac{\sqrt{M}}{2} \cdot P_{MR} (\frac{1}{2})\). Similarly, we can compute the maximum access cost when the number of replicas at helpers is 16 (Fig. 10c). The computation of the maximum power consumption in accessing a replica of object i at the helpers for varied number of replicas stored at the helpers are shown in Table 1. We note here that the computation of power consumption is based upon our assumption of the placement of the replicas of object i at the helpers.

Fig. 10
figure 10

Average power consumption

Table 1 Summary of network power consumption for varied number of replicas at the helpers

Recall that \(Y_{h_{i}}(t)\) is the number of replicas of object i that are stored at the helpers at time t. Hence, we can see that for a WMN that is deployed in a two-dimensional space, when \(Y_{h_{i}}\) is increased by a factor of 4, P h is reduced by half. Hence, we can write

$$ P_{h}(t) \approx \frac{\sqrt{M}}{2} \cdot \frac{P_{MR}}{\sqrt{Y_{h_{i}}(t)}}. $$

This approximation is feasible especially when we assume a large-scale WMN with many helpers.

The total power consumption of object i with size L (packets) using the P2P-with-helpers system (\(P_{\rm Helpers-System_{\it i}}\)) can be written as \(P_{\rm Helpers-System_{\it i}} = P_{\rm Peers-and-Helpers_{\it i}} + P_{\rm Peers-to-Helpers_{\it i}}\), where \(P_{\rm Peers-and-Helpers_{\it i}}\) accounts for the power consumed when uploading content i from the served peers and helpers to the interested peers during time 0 ≤ t ≤ t 2, while \(P_{\rm Peers-to-Helpers_{\it i}}\) accounts for the power that is consumed when uploading content i from the served peers to the helpers during time 0 ≤ t ≤ t 1. Hence, we can write

$$ \begin{array}{rll} \label{eqn:power_cons} P_{\rm Helpers-System_{\it i}} &=& L \cdot \int_{0}^{t_{2}} \left ( \mu_{p} \cdot \eta_{P2H} \cdot S_{i}(t) \cdot E[P_{p}(t)]\right. \\ && \left.+\ \mu_{h_{i}} \cdot Y_{h_{i}}(t) \cdot P_{h}(t) \right ) dt \\ &&+ \ L \cdot \int_{0}^{t_{1}} \varepsilon \cdot \mu_{p} \cdot S_{i}(t) \cdot E[P_{p}(t)] dt , \end{array} $$

where η P2H  = 1 − ε when t ≤ t 1, and 0 when t > t 1, and E[P p (t)] is the expected value of the maximum power that is consumed in the network as a result of accessing object i from the served peers. If we assume that the requests for content is generated at peers uniformly at random, it is easy to see that \(E[P_{p}(t)] = \frac{\sqrt{M}}{2} \cdot P_{MR}\).

To compute the saving in network power consumption as compared to the case of centralized server, we need to compute the total power consumption when using the centralized server (\(P_{\rm Server_{\it i}}\)). \(P_{\rm Server_{\it i}}\) can be computed as \(P_{\rm Server_{\it i}} = L \cdot N_T \cdot P_{s}\), where P s is the power that is consumed in the network as a result of accessing object i of size L packets at the centralized server that is located in the center of the network, and \(P_{s} = \frac{\sqrt{M}}{2} \cdot P_{MR}\) (again we assume first in first served scheme). Hence, \(P_{\rm Server_{\it i}}\) can be written as \(P_{\rm Server_{\it i}}= L \cdot N_T \cdot \frac{\sqrt{M}}{2} \cdot P_{MR}\), and the saving in network power consumption using the P2P-with-helpers schemes η save can be computed as \(\eta_{\rm save}~\text{\%} = \frac{P_{\rm Server_{\it i}}-P_{\rm Helpers-System_{\it i}}}{P_{\rm Server_{\it i}}}\).

1.1 Numerical results

We numerically evaluated the power consumption when the proactive helper scheme for the cases when μ p  = 0.001, N = 10, p i  = 0.00075, M = 1,000, P MR  = 1 (μ w/packet), size of the file L = 1,000 (packet), N T  = 750, and \(\mu_{h_{i}}\) takes the values \(\mu_{h_{1}} = 0.03\), \(\mu_{h_{2}}=0.04\), and \(\mu_{h_{3}}=0.06\). (Fig. 11a). We observe that the saving in power increases with increasing the upload rate at the helpers. This is because increasing upload rate at the helpers implies that a higher fraction of content i is accessed from the nearby helpers. Another observation is that the saving increase with increasing the number of replicas at the helpers. This is because having more replicas at the helpers reduces number of hops in a path between replicas and downloading peers.

Fig. 11
figure 11

Fluid model results

We also computed the power consumption when the upload rate at the served peers takes the values \(\mu_{p_{1}}= 0.001\) and \(\mu_{p_{2}} =0.00075\), while \(\mu_{h_{i}}\) was kept constant at 0.03 (Fig. 11b). We further computed the power consumption in the P2P-with-helper system for the case when μ p  = 0.001, \(\mu_{h_{i}} = 0.03\), and content popularity take the values p 1 = 0.0007 and p 2 = 0.00075 (Fig. 11c). We observe that the saving in power consumption is less when the upload rate of peers is higher and the content is more popular. This is because the fraction of content i that is accessed from served peers that are physically far from a downloading peer is higher. This results suggest some enhancement to the content retrieval scheme that we used in the P2P- with-helpers system. Specifically, the content retrieval scheme must enable interested peers to download content only from the peers which are physically close.

1.2 Simulation results

We simulated the P2P-with-helper as a stochastic system using Matlab. We simulated a WMN that consists of M = 1,000 mesh routers deployed in a grid topology. Total number of interested users who eventually download the file was N T  = 750, and each user was connected to (N = 10) other users (friend) at any time unit. We considered a single file i that is generated at a random user, and popularity of file i was p i  = 0.0075. The generator of content i was selected uniformly at random, and the request for content was generated at the peers uniformly at random. The size of the file is 10 Mbyte; while the size of a packet follows a normal distribution with mean 1,024 kbyte. Number of replicas at the helpers varied between 4 to 25. The upload rate of peers and helpers follow exponential distribution with means μ p  = 10 kbps = 0.001 (file/sec) and \(\mu_{h_{i}} = 300~{\rm kbps} = 0.03\) (file/sec), respectively. The power at mesh routers was set fixed at P MR  = 1 (μ w/packet).

We carried out the simulation five times for each statistical data and computed the average total power consumption in the network using the P2P-with-helper scheme for varied number of replicas at helpers with confidence intervals. We compared the simulation results with the numerical results that was obtained using the fluid model (Fig. 12). The results show that the proposed fluid model provides a good approximation of the real system, and the fluid approximation does not impact the validity of our analytical results.

Fig. 12
figure 12

Average total power consumption

Rights and permissions

Reprints and permissions

About this article

Cite this article

Alasaad, A., Gopalakrishnan, S. & Leung, V.C.M. Modelling and performance analysis of content sharing and distribution in community networks with infrastructure support. Peer-to-Peer Netw. Appl. 7, 590–610 (2014). https://doi.org/10.1007/s12083-012-0167-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12083-012-0167-1

Keywords