Looks like a fun project. If you are looking for another way to slow down your connection then play around with tc's netem delays [1] You may have to make two sets of rules, one for your interface and then you may need to make an ifb interface as well depending on your cabling setup to also slow inbound traffic. netem can give you fine grained controls over added latency.
[1] - https://man7.org/linux/man-pages/man8/tc-netem.8.html