Mesh/Distributed Services

Revision as of 21:01, 18 July 2014 by Jwentwistle (talk | contribs) (added references tag)

Services

The network should provide secure communication services (email, contacts, calendar, phone) to create more incentive to be on the network. The services can be integrated into a user account distributed database with master-master replication and low latency (ex. Cassandra). These services will use existing open source projects.

Storage / File Systems

There are several options for a distributed file system and each have there advantages and disadvantages. The distributed file system can be used to offer file storage or reduce latency across the network.

  • Lustre - Used by sixty percent of the top 100 websites.
    • Performance: Amazingly fast! I can assert that Lustre can serve a lot of streams and that encoding speed is not affected by accessing files via Lustre.
    • POSIX compatibility: Very good!. No need to modify applications to use luster.
    • Replication, Load Balancing and Fail Over: Very bad!. For replication load balancing we and fail over we need to rely on other software such as virtual IPs and DRDB.
    • Installation: The worst!. Impossible to install by mere mortals. Requires a very specific combination of kernel, lustre patches and tweaks to get it working. And current luster patches usually work with old kernels that are incompatible with new hardware/software.
  • MogileFS
    • Performance: Good for small files but not usable for medium to large files. This is mostly due to HTTP overhead since all files are send/receive via HTTP requests that encode all data in base64 adding a 33% overhead to each file.
    • POXIS compatibility: Non existent. All applications require to be modified to use MogileFS that renders it useless for streaming/encoding since most streaming servers and encoding tools do not understand the protocol.
    • Replication and failover out of the box and load balancing can be implemented in the application by accessing more than one tracker at a time.
    • Installation: Relatively easy and ready to use packages exist in most distributions. The only difficulty I found was setting the database master-slave to eliminate the single point of failure.
  • GlusterFS
    • Performance: Very bad for streaming. I cannot reach more than a few Mbps in a 10Gbps network. Clients and Server CPU skyrockets on heavy writes. For encoding works because the CPU is saturated before the network and I/O.
    • POXIS: Almost compatible. The tools I use can access gluster mounts as normal folders in disk but in some edge cases things start causing problems. Check gluster mailing lists and you will see there are a lot of problems.
    • Replication, Failover and Load balancing: The best! if they actually worked. Gluster is very new and it has a lot of bugs and performance problems.
    • Installation is too easy. The management command line is amazing and setting replicated, striped and distributed volumes among several servers can not be any easier.

(source of above information)

Non-distributed file systems There's the option to use a modern file system with rsync. Comparison of ZFS and BTRFS A Quick Introduction to Modern Filesystems

Databases and Servers

These are decentralized databases and servers that could ultimately be optimized to store data nearest to where people access it. A significant factors with mesh networks, that as "size and complexity continues to grow, mesh networks that contain multiple hops become increasingly vulnerable to problems such as bandwidth degradation, radio interference and network latency.[1]" There are several other methods of improving network latency, but all means should be tested and implemented to improve services.

  • cassandra - a decentralized database with asynchronous masterless replication allowing low latency operations for all clients. Cassandra has Hadoop integration, with MapReduce support.
  • CouchDB - I can tell you that it quickly becomes complicated to write multi-user app with CouchDB. Decent access control means that you need a database per user and likely a few extra databases. You then have to set all of these databases up to synchronize between each other which is further complicated by the limitations on what information is available by the limitations on how synchronization rules and filters can be written. There seem to be no good tools for managing/visualizing these complex relationships so you end up having to roll your own.
  • irmin - a distributed database with built-in snapshot, branch and revert mechanisms. (similar to git)
  • levelDB - a fast and lightweight key/value database library.
  • mongoDB - an open-source document database, a NoSQL database. Written in C++.
  • node.js - an HTTP server written in javascript.
  • PouchDB - a javascript based couchDB.
  • scuttlebutt - a data synchronization protocol, or a peer-to-peer replicable data structure.
  • tahoe-lafs - a decentralized database.


Communications

  • radicale - a CalDAV (calendar) and CardDAV (contacts) server.
  • calypso - Radicale fork with a git back-end (by Keith Packard of X11 fame)
  • Village telco - an initiative to build low-cost community telephone network hardware and software that can be set up in minutes anywhere in the world. No mobile phone towers or land lines are required, it uses the internet. It has a Simple Unified Dashboard (SPUD) for mesh networks.
  • Ripple (XRP) - a math-based crypto-currency designed to work seamlessly with the Internet. Powered by a global network of computers; a fast, direct, and secure way to send payments on the web. It can be used to prevent malious attacks on servers.
  • OpenBTS - open source cell phone tower software.
  • OpenMAMA - a high performance middleware agnostic messaging API that interfaces with a variety of message oriented middleware systems
  • an encrypted asynchronous messaging system to replace email
  • a module to have collaborative documents, voting, and groups (ie. groupware)
  • a module for peer to peer file sharing.
  • a module for object-orientated tagging, shareable feeds.
  • a module for feeds and posts, such as Trsst.
  • Frontline SMS - a free, open-source desktop application that allows you to send texts.

Mapping

  • NodeWatcher - an open source network planning, deployment, monitoring and maintanance platform.
  • NodeShot - an easy to use wireless community map server.
  • OpenWiFiMap - a database and map for free network WiFi routers (freifunk and others, too!).
  • LibreMap - a scalable, global and decentralized router database and map visualization for community networks, such as guifi, ninux, etc.
  • Tidepools - collaborative local mapping software
  • Edible Cities - a food mapping project
  • Bulletin Board / Local Classified Ads
    • Community Asset Mapping (ex. Mycelia)

Protocols

  • Tent - a method to store all your data in one place that you control. Instead of your digital life being spread across many services.
  • Docker - an open-source project to easily create lightweight, portable, self-sufficient containers from any application.
  • MaidSafe - an encrypted, fully distributed data management service. This network manages static and dynamic data as well as communications. (charges money)

Social Platforms

  • Diaspora - a decentralized social network
  • Identi.ca - a high-performance Open Source social engine.
  • Pump - a stream server that does most of what people really want from a social network.
  • Twister - a decentralized, peer to peer microblogging platform

Utilities and Misc.

  • Avahi - a mDNS responder that allows you to broadcast services
  • Local Wiki - create a local wikipedia (eg; http://oaklandwiki.org)
  • a module for sensor data (eg; Temperature, Seismic activity, air pollution)
  • PiplMesh - an open source social networking and info portal for wireless networks used as a welcome page when users connect to the network.
  • Neocities (git) - create free user sites
  • Crabgrass - a project out of riseup labs, a ruby rails application for community organizing. It's not the easiest to run your own instance, but very easy to sign up to their server (we.riseup.net)