Difference between revisions of "Mesh/Bandwidth Quotas"

From Sudo Room
Jump to navigation Jump to search
Line 3: Line 3:
 
notes about bandwidth monitoring and quotas
 
notes about bandwidth monitoring and quotas
  
The goal is to find a way to cap bandwidth usage, in and out.  The system can apportion the shareable bandwidth to a percentage of total bandwidth available. Here we research how this can be done.
+
The system can apportion the shareable bandwidth to a percentage of total bandwidth available. The goal is to find a way to cap bandwidth usage, in and out.  Here we research how this can be done.
  
 
[[Category:Monitoring]]
 
[[Category:Monitoring]]
 
[[Category:Technical]]
 
[[Category:Technical]]
 +
 +
== monitoring ==
 +
to track bandwidth we need a way to quantify it.  Here are some likely candidates:
 +
 +
* [http://wiki.openwrt.org/doc/howto/bandwidthd bandwidthd] - very popular, but apparently it is resource heavy
 +
* [http://wiki.openwrt.org/doc/howto/bwmon bmon] - [http://freecode.com/projects/bmon/ download it]
 +
* [http://wiki.openwrt.org/doc/howto/bwmon iftop], [http://www.ex-parrot.com/pdw/iftop/ man page] - "iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts."
  
 
== tc − show / manipulate traffic control settings ==
 
== tc − show / manipulate traffic control settings ==
Line 18: Line 25:
 
Once we have the monitoring in hand we can then handle the bandwidth caps.  We might want to cut off access once the limit has been reached.
 
Once we have the monitoring in hand we can then handle the bandwidth caps.  We might want to cut off access once the limit has been reached.
 
* [http://xmodulo.com/how-to-set-up-qos-bandwidth-rate-limit-on-openwrt.html How to set up QoS bandwidth rate limit on OpenWRT]
 
* [http://xmodulo.com/how-to-set-up-qos-bandwidth-rate-limit-on-openwrt.html How to set up QoS bandwidth rate limit on OpenWRT]
 
== monitoring ==
 
to track bandwidth we need a way to quantify it.  Here are some likely candidates:
 
 
* [http://wiki.openwrt.org/doc/howto/bandwidthd bandwidthd] - very popular, but apparently it is resource heavy
 
* [http://wiki.openwrt.org/doc/howto/bwmon bmon] - [http://freecode.com/projects/bmon/ download it]
 
* [http://wiki.openwrt.org/doc/howto/bwmon iftop], [http://www.ex-parrot.com/pdw/iftop/ man page] - "iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts."
 
  
 
== ubus ==
 
== ubus ==
 
[http://wiki.openwrt.org/doc/techref/ubus OpenWrt micro bus architecture] - there is a Lua module for ubus...
 
[http://wiki.openwrt.org/doc/techref/ubus OpenWrt micro bus architecture] - there is a Lua module for ubus...

Revision as of 00:00, 20 February 2015

See Also: Technical Documentation, Monitoring

notes about bandwidth monitoring and quotas

The system can apportion the shareable bandwidth to a percentage of total bandwidth available. The goal is to find a way to cap bandwidth usage, in and out. Here we research how this can be done.

monitoring

to track bandwidth we need a way to quantify it. Here are some likely candidates:

  • bandwidthd - very popular, but apparently it is resource heavy
  • bmon - download it
  • iftop, man page - "iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts."

tc − show / manipulate traffic control settings

Tc is used to configure Traffic Control in the Linux kernel.

QOS

Quality of Service (qos-scripts) configuration

Once we have the monitoring in hand we can then handle the bandwidth caps. We might want to cut off access once the limit has been reached.

ubus

OpenWrt micro bus architecture - there is a Lua module for ubus...