

Next, optionally start your receiver with a timed finish (backgrounding the netcat portion in a subshell so it won't block). tcpdump -s 1 -ni eth0 udp and port 65535.I'm using -s 1 to reduce the amount of work tcpdump has to do (which means it captures faster). this is an example of sending a linux file (or in my example, /dev/urandom) via UDP.įirst start tcpdump on both sides, and listen for a rare UDP port (use 65535/udp in this example). If it was me, I would just do a quick-and-dirty ten second netcat test, because netcat is already installed in most linux distros. Is packaged for RedHat as an rpm, or Debian package.Generates not only UDP, but many other protocols as well, including QinQ.Using a search for "linux ethernet packet generator" gives me packeth as the first hit. Interval Transfer Bandwidth Jitter Lost/Total Datagrams Machine #2 (this command essentially says "act as a client, connect to 192.168.2.202, use the udp protocol, send 1GB of data at a data rate of 100Mbps) $ iperf3 -c 192.168.2.202 -u -n 1G -b 100MĬonnecting to host 192.168.2.202, port 5201 Your client command and subsequent reporting after the transfer will look like this. Ensure your iptables (or equivalent) is configured to accommodate both the initial control channel and any subsequent udp flows. Initially (by default) the server will listen on 5201/tcp which will be used as a control channel, this port is configurable. The -s option specifies to run iperf in server (receiver) mode. Starting the iperf server is as simple as running the following command: Machine #1 iperf3 -s Install the iperf rpm, start the server first, and then start the client. I have iperf3 installed on two CentOS machines, as you can see below, one is configured as the server and the other the client. Iperf is typically ran across the network between two systems. You should be able to use built in reporting in iperf to validate the amount of traffic dropped.
