Successfully reported this slideshow.
Your SlideShare is downloading. ×

Asterism: A Decentralized File Sharing for Mobile Devices

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Internet connection sharing
Internet connection sharing
Loading in …3
×

Check these out next

1 of 17 Ad

Asterism: A Decentralized File Sharing for Mobile Devices

Download to read offline

Most applications and services rely on central au- thorities. This introduces a single point of failure to the system. The central authority must be trusted to have data stored by the application available at any given time. More importantly, the privacy of the user depends on the service provider capability to keep the data safe. A decentralized system could be a solution to remove the dependency from a central authority. Moreover, due to the rapid growth of mobile device usage, the availability of decentralization must not be limited only to desktop computers.
In this work we aim at studying the possibility to use mobile devices as a decentralized file sharing platform without any central authorities. This was done by implementing Asterism, a peer-to-peer file-sharing mobile application based on the Inter- Planetary File System. We validate the results by deploying and measuring the application network usage and power consumption in multiple different devices.
Results show that mobile devices can be used to implement a worldwide distributed file sharing network. However, the file sharing application generated large amounts of network traffic even when no files were shared. This was caused by the chattiness of the protocol of the underlying peer-to-peer network. Consequently, constant network traffic prevented the mobile devices from entering to deep sleep mode. Due to this the battery life of the devices was greatly degraded.

Most applications and services rely on central au- thorities. This introduces a single point of failure to the system. The central authority must be trusted to have data stored by the application available at any given time. More importantly, the privacy of the user depends on the service provider capability to keep the data safe. A decentralized system could be a solution to remove the dependency from a central authority. Moreover, due to the rapid growth of mobile device usage, the availability of decentralization must not be limited only to desktop computers.
In this work we aim at studying the possibility to use mobile devices as a decentralized file sharing platform without any central authorities. This was done by implementing Asterism, a peer-to-peer file-sharing mobile application based on the Inter- Planetary File System. We validate the results by deploying and measuring the application network usage and power consumption in multiple different devices.
Results show that mobile devices can be used to implement a worldwide distributed file sharing network. However, the file sharing application generated large amounts of network traffic even when no files were shared. This was caused by the chattiness of the protocol of the underlying peer-to-peer network. Consequently, constant network traffic prevented the mobile devices from entering to deep sleep mode. Due to this the battery life of the devices was greatly degraded.

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Similar to Asterism: A Decentralized File Sharing for Mobile Devices (20)

Advertisement

More from Davide Taibi (20)

Recently uploaded (20)

Advertisement

Asterism: A Decentralized File Sharing for Mobile Devices

  1. 1. Asterism: A Decentralized File Sharing for Mobile Devices Olli-Pekka Heinisuo, Valentina Lenarduzzi, Davide Taibi Tampere University CloWEE – Cloud and Web Engineering http://research.tuni.fi/clowee
  2. 2. Background ● Computers, smart devices are connected to the internet ○ produce and consume huge amounts of data ● Data need to be stored somewhere ○ cloud platforms ■ AWS, Azure, Google Cloud etc. @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  3. 3. Background Data Storage is highly centralized ● In the hands of a few large private enterprises ● Single point of failure (there are still servers) ● Concerns about privacy and security @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  4. 4. Background How to avoid the usage of the central entities? ● Peer-to-peer (p2p) networking ○ Every device is both a client and a server ■ BitTorrent, Freenet, Gnutella, Napster etc. ○ Widely used by cryptocurrencies ■ Bitcoin and Ethereum, … @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  5. 5. Goal Is it possible to use mobile devices as a decentralized content delivery network without any central servers or authorities? @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  6. 6. Research Method ● Development of proof of concept ○ p2p mobile application ● Validation ○ Measurement on different devices ■ network usage ■ power consumption. @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  7. 7. Peer-to-peer network selection ● InterPlanetary File System (IPFS) ○ Widely used ○ Reference implementation available in Go ○ Very active development ● Dat ○ hard to integrate to resource constrained mobile environment ○ JavaScript-only implementation ● Swarm (part of Ethereum ecosystem) ○ Not mature (in alpha state) ○ depends on Ethereum Selected @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  8. 8. Mobile Application Requirements ● Start and stop a fully working IPFS node. ● Run in the background while other applications are running. ● Display basic information about the node and its status in the user interface. ● User interface can be used to change basic settings of the node. ● User interface allows adding content to IPFS and retrieving content from IPFS. ● Provides a file system style interface for managing the added files. @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  9. 9. Mobile Platform Selection Three mobile operating systems considered: ● iOS ● Android ● Sailfish OS ● True multitasking support ■ easy to run measurements while other apps are running in the background. ● Applications Developed in C++. ■ A shared library based on IPFS Go implementation can be used directly from C++ without extra software layers. ● Native access to full GNU/Linux system and terminal without rooting or jailbreaking the device. ● Access to many command line applications which would be hard to come by in the other two operating systems. Selected
  10. 10. Thank you!
  11. 11. The Mobile Application Developed ● The IPFS Go library (go-ipfs) cannot be directly used from a C++ application ● Separate wrapper, Libipfs, was developed for go-ipfs in Go and C ○ This wrapper exposes simple to use IPFS methods ○ Cross-compiled into shared library for ARM and x86 platforms ○ Single binary, contains also Go runtime ○ Available at https://github.com/skvark/libipfs ● Main mobile application, Asterism, is dynamically linked with Libipfs ○ Uses Libipfs methods, concurrency handled internally in Libipfs with goroutines (lightweight threads of Go) ○ Mainly QML-based GUI code and some C++ ○ Available at https://github.com/skvark/Asterism @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  12. 12. @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  13. 13. Measurements Three devices were adopted for the measurements: Sony Xperia X Jolla C Jolla Tablet
  14. 14. Measurement Settings The network usage and power consumption measurements: ● No content was added to or retrieved from IPFS ● Device screen was off ● Android support layer of the Sailfish OS was turned off ● Power consumption was measured for 4 hours ● Network usage was measured for about 2 hours ● Network combinations: WLAN + 4G, WLAN only, 4G only ● IPFS modes: full DHT (Distributed Hash Tables) and client only @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  15. 15. Network Traffic ANalysis @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  16. 16. Power Consumption @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019
  17. 17. Conclusions Mobile devices can be used to implement a fully decentralized content sharing network, but: ● Network usage was so high that the devices could not enter into deep sleep mode. ● Battery life was highly impacted. ○ On 4G only about 7 hours of continuous usage is possible. ○ On WLAN 14 hours . ● IPFS needs optimizations or/and bandwidth limit settings. ○ Note: next version of go-ipfs was just released with some optimizations. ● Suitable for devices used as IoT, always connected to the electricity @davidetaibi Asterism: A Decentralized File Sharing for Mobile Devices IEEE Mobile Cloud 2019

×