This video shows how to use OpenBSD's PF firewall to implement traffic shaping and policing in your network. It also covers a few tips/tricks regarding queueing syntax and logic in your PF configuration.
Resources
https://www.openbsd.org
https://man.openbsd.org/pf.conf#QUEUEING