I'm using a command line like this to replay a huge PCAP file at high speed - I'm benchmarking various aspects of tcpreplay:
sudo tcpreplay --mbps=1000 --intf1=docker0 linuxbig_log.pcap
As I don't want to annoy our sysadmins, I use my local docker installation as a bucket to pour all the dud data into, but it feels a bit of a hack and my random data might actually make docker do something nasty to the system.
I could use tcpreplay-edit and change the destination IP address to some black-hole address and hope the nearest router drops them, but I'd still be clogging up the local network for other users, and perhaps others further away if the local router isn't blocking the packets.
What I'd like ideally would be a virtual Ethernet adapter that tried to simulate max bandwidth, queuing, etc (one-way is sufficient), but even just an equivalent of /dev/null would suffice. A colleague suggested using TAP, but I don't really see how that would work.
PS: I'm 500km away from the actual Ubuntu 22.04 Linux box so I obviously cannot fiddle with the hardware.