The instructions in this directory make use of Packet Filter (pf), which is built into OSX and BSD. The included script files need to be run with sudo, or they won't work.
These instructions come from here:
https://blog.leiy.me/post/bw-throttling-on-mac/
Also check out the examples at the bottom of man dnctl