sqm

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0

README

SQM

SQM is a go program that sets up using Linux qdisc mechanism using the CAKE integrated scheduler. See http://www.bufferbloat.net/projects/cerowrt/wiki/Smart_Queue_Management for more information

It is based upon the existing scripts from github.com/tohojo/sqm-scripts - which has a lot more information - but has the following changes:

  • Runs as a daemon
  • Checks on timed intervals to make sure everything is correct
  • Tears down as much as possible on shutdown

Use cases

The author uses this at home in his home-baked Fedora-based VDSL router, that runs a PPP session via a Zyxel modem bridge.

Running

Run go run cmd/sqm or sqm after building

Options
  -e, ----egress-oid string    SNMP OID for egress (default "1.3.6.1.2.1.10.97.1.1.2.1.10.2")
  -i, ----ingress-oid string   SNMP OID for ingress (default "1.3.6.1.2.1.10.97.1.1.2.1.10.1")
  -l, ----snmp-host string     SNMP Host (default "192.168.2.1")
  -h, --help                   help for sqm
  -d, --interface string       Device to configure (default "ppp0")

Building

Run mage install

Directories

Path Synopsis
cmd
sqm
hack
tools Module
links is a package for managing netlink links
links is a package for managing netlink links
nolint: forbidigo, wrapcheck
nolint: forbidigo, wrapcheck
common
Package common defines common functions for the magefiles.
Package common defines common functions for the magefiles.
manager defines a runtime manager, similar in concept to kubernetes controller-runtime but simplified for the needs of this project.
manager defines a runtime manager, similar in concept to kubernetes controller-runtime but simplified for the needs of this project.
snmp defines a controller that can read two values via SNMP that returns the bandwidth.
snmp defines a controller that can read two values via SNMP that returns the bandwidth.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL