The sys admin's daily grind – Trickle

Blown Away

Article from Issue 160/2014
Author(s):

If your data traffic suffers from congestion at times, don't worry. Now you can shoot down programs that are heavy on traffic to free up the inflow and outflow.

I am over 40 years old and am starting to mellow in my old age. No, I'm only joking; certain phenomena still drive me up the wall. For example, when I am using SSH on a server to edit a configuration file and the bandwidth is so pathetic that the landing zone is a matter of luck when you try to position the cursor – that really makes me mad.

I know, I know, today even a line to a Black Forest village has enough bandwidth for an SSH connection, if you have exclusive access. Because hell, as Sartre already knew, is other people: In my case, it's the HTTP connections that are pushing my poor little SSH to the edge. I could turn to Mosh [1], but that helps with shaky connections rather than crowded lines. My remedy for traffic jams goes by the name of trickle [2] [3].

This traffic-shaping tool uses LD_PRELOAD to redirect some standard library calls, such as socket() and therefore only works with dynamically linked binaries. However, that practically includes all programs that the typical user deploys to eat up bandwidth. In the simplest case, I might even be one of these users myself; then, I can practice self-restraint when calling traffic-producing programs. To this end, I can start Firefox, for example, with:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Traffic shaping with Trickle

    Is your Internet connection groaning under the load of too many simultaneous downloads? If so, try Trickle, a simple application that gives you more granular control over network traffic.

  • Trickle

    The trickle command-line utility helps you shape network traffic.

  • Mosh and AutoSSH

    SSH can make you crazy if the WLAN connection keeps breaking down, the IP address changes, or the data packets trickle over a slow mobile connection. AutoSSH and Mosh offer some features you won’t find in ordinary SSH.

  • Charly's Column: UFW

    Things were better back then. No way! Charly takes a look back at the bad old firewall days and explains why things are better today – assuming you have the right tools.

  • Charly's Column – Dnstop

    In last month's issue, Charly sent the lean pdnsd DNS cache down the catwalk. To see whether pdnsd really does the work expected of it, he now puts dnstop through infinite rounds in the name of names.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News