Skip to content

Gathering tools and technics to reduce bandwith consumption

License

Notifications You must be signed in to change notification settings

PoissonPilote/lowdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lowdata

This repository is design to gather tools and technics to reduce bandwith consumption during a sailing trip with sattelite communication (9kB/min).

This guide is mainly dedicated to OSX, but is is designed to give cross-plateform advice in the future

Measuring

Measuring is the first step before regulating. Use the tool you have to diagnostic network consumption, like Monitor on OSX:

Reduce background connection

Filter packets

Using pfctl : https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/pfctl.8.html

I wrote a simple small pf.conf file that you can activate this way:

sudo pfctl -f pf.conf
sudo pfctl -e

You can disable the packet filter this way:

sudo pfctl -d

Email

You should forget Gmail and its fancy web interface: it waste 100 times (check the good ration) the amount of data you need to exchange email. Go back to a simple desktop mail application with POP/SMTP configuration (IMAP send unnecessessary synchronisation message). Make sure to respect the following best practice:

  • Use text only (not formatted) content.
  • If you really want formatting, use Markdown
  • No signature (your email address reveal already your identity)
  • Remove previous content. If you want to quote, use ">"

Here are some desktop client you can use:

Mail from OSX

Simple and well integrated with OSX, the default Mail application make the job. Make sure to disable the rich text formatting by going to Mail > Preferences... > Compositing and select Plain Text from the Message Format dropdown menu.

Thunderbird

TODO: Download and test

Command line

Using mail command...

Web Browsing

Adjust settings

  • Go to your browser settings and disable images, scripts, flash ...
  • Opera offers a turbo mode: All pages are visited from opera's servers, compressed and then send to your computer. Privacy lovers, this is not for you
  • A similar option exists in most mobile browsers

Visit lite version of websites

Use a text browser

Lynx browser

Lynx is a text based web browser, pictures and javascript free, that allows reducing the bandwith when browsing the web. Some websites might not be functionnal.

Installation via Brew

brew install lynx

Installation on Ubuntu/Debian

sudo apt install lynx

Here is how to open a webpage with lynx:

lynx http://duckduckgo.com

Press arrows to navigate, enter to follow a link and q to quit

Browsh browser

Browsh is a browser using firefox to render pages and send you a text version. For bandwith usage, it must be installed on a remote server that you access via ssh.

Avoid DNS request

In order to reduce DNS request, there is two option:

  • Using IP instead of name server => unfortunately, it doesn't work if you try to access a website using virtualhost
  • Add common domain name to /etc/hosts. When looking for a domain name resolution, the system first look into this file to avoid DNS request

Limit unwanted connection

Close all app

Most of your application exchange data with a server. Keep only the one you need.

Disable unnecessary services

  • TODO: List unnecessary services

Collaboration

Forget Google Docs, Etherpad and other derivative: it's also a waste of data. Use Git and work locally. Here is a helpful ressource about it: https://try.github.com

Follow the best practices:

  • Work locally by cloning repository: git clone [email protected]:PoissonPilote/lowdata.git --depth 1
  • Use local issue (like issues.md)

Reducing picture size

Sending picture is generally a bad idea when you have a 9ko/min bitrate. If you really need to, you should definitely reduce the size and choose the jpeg format (if you don't need transparency). ImageMagick is a simple command line tool dedicated to that.

Installation

brew install imagemagick

Usage

$ convert -quality 60 monitor.png  -resize 1104x monitor.jpg

Look at the size I spared for the above image:

$ ls -l monitor.*
-rw-r--r--@ 1 martin  staff    70K 29 jul 13:50 monitor.jpg
-rw-r--r--@ 1 martin  staff   496K 29 jul 13:48 monitor.png

About

Gathering tools and technics to reduce bandwith consumption

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published