Not sure if you're aware of the Linux network emulation framework, but if not: https://wiki.linuxfoundation.org/networking/netem — that will let you simulate all kinds of terrible networks.