Megaleecher.Net

Making technology work for you...

Get Your Free Subscription By Email:

Easiest And Fastest Way To Use Traffic Shaping On Linux

We demonstrated how to use Raspberry Pi as an home-automation server with voice commands using SiriProxy earlier, since Apple Siri (and SiriProxy) needs an good active internet connection to convert speech-to-text for recognizing commands this failed due to limited bandwidth availbility when using Raspberry Pi as an 24x7 downloading server. After a lot of research, I made a simple shell script which prioritizes our SiriProxy traffic over others only when needed, utilizing full-bandwidth for downloads when not in use.

Linux traffic priority example using TC

The script below creates a higher priority "1:10" class and assigns the "service ports" which needs this High-priority network access :

Effects of this network traffic filter can be checked using:

tc -s qdisc ls dev eth0

Add new comment

This is just one of the many helpful tips we have posted, You can find more stories here,
Do subscribe to updates using your favorite RSS feed reader or using the secure FeedBurner email update form on top of this post.