I want to generate a TCP traffic starting from the port 0 to the port 65535. 1 tcp packet for each port with 1ms between 2 packets. The generator should not care if there is a TCP ACK or not.

  1. Are there a tool that can generate a such traffic?
  2. Is it possible to do that with iperf and script?
  3. Ie it possible to run it on windows too?

If you really want to accomplish that using a packet generator, I can recommend Scapy, which is a packet generator library for Python. You can use it out of the box on the Python Console or script it. It should also run on Windows.

Nevertheless, as already recommended in the comments, maybe nmap should be sufficient to accomplish your aim. nmap is not really a packet generator, but should be able to send the packets you intend to send.


You should consider hping3. It has plenty of documentation, and it will probably be able to do what you want.

  • you beat me to hping... super awesome tool – Falsenames Apr 6 '15 at 17:30

Ostinato aims to be "Wireshark in Reverse" and become complementary to Wireshark.

Ostinato is an open-source, cross-platform network packet crafter/traffic generator and analyzer with a friendly GUI. Craft and send packets of several streams with different protocols at different rates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.