-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Welcome to the mooshika wiki!
For now, just a cookbook:
-
Start rmitm and pipe directly to wireshark (forgive the
& read; kill $!
for now, haven't found anything better to have rmitm die if it's not currently writing stuff to stdout. Read rmitm --help):
ssh remotehost 'rmitm -c serverip serverport -s listenport -f - & read; kill $!' | wireshark -i - -k
-
bench send/recv throughput with rcat:
server$ rcat -s -m > /dev/null
(or better with pv (pipe view),rcat -s -m | pv -W -a -r > /dev/null
)
client$ for i in {1..10}; do dd if=/dev/zero bs=10M count=1000 | rcat -c server & done
-
You can also get latency with a much smaller block size, then just divide the time by the number of blocks sent (this is round-trip time):
server$ rcat -b 10 -s -m > /dev/null
client$ dd if=/dev/zero bs=10 count=10000 | rcat -b 10 -c server
-
Replay with rreplay:
record$ rmitm -c serverip serverport -s listenport -f pcap.out -t 1M
replay$ rreplay -c serverip serverport -f pcap.out