Bandwidth Controller & Monitoring

coap://<target-IP>:10001/bwController/limit?netint=eth0&upload=1000&download=1000
  • netint = network interface
  • upload = KB/s
  • download = KB/s
coap://<target-IP>:10001/bwController/limit?netint=eth0&upload=1000&download=1000&duration=3
  • duration = seconds
coap://<target-IP>:10001/bwController/clear?netint=eth0
coap://<target-IP>:10001/bwMonitoring/measure?netint=eth0&wTime=1&mCount=2
  • netint = network interface
  • wTime = waiting Time for each taken measurement
  • mCount = the number of the measurement to be taken
coap://<target-IP>:10001/bwMonitoring/read
sudo apt-get install wondershaper trickle ifstat
$ python BandwidthController.py
coap://<target-IP>:10001/bwController
coap://<BandwidthController-IP Address>:10001/bwController
$wondershaper <interface> <download-rate> <upload-rate>
# ifstat -i etho <timeToBeWaited> <MeasurementCount>
$ ifstat -t -i eth0 1 1 > bwmon.log
  1. https://github.com/Tanganelli/CoAPthon
  2. https://github.com/cemakpolat/bw-monitoring-controller
  3. http://kb.bodhost.com/how-to-control-bandwidth-in-linux/
  4. https://github.com/magnific0/wondershaper
  5. https://www.redhat.com/sysadmin/ifstat-network-statistics

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to perform partitioning on existing table?

Effective Kotlin

How to Instantiate and Destroy Game Objects in Unity

Learning HTML and CSS with Pirple

Build Simple Python Games

5 Reasons Why We switched from Python To Go

Discovering Kotlin Contracts

Simplifying Kubernetes RBAC Management

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
cem akpolat

cem akpolat

More from Medium

Virtual Private Cloud at high level

DevSecOps -FOD with Jenkins DSL

KUBERNETES DEPLOYMENT

Kubernetes NFS encrypted communication: Kubernetes pod applications (as NFS client) and Linux based…