8

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?
MOHAMED
  • 301
  • 1
  • 5
  • 15
  • 1
    Have you tried with `ncat` or `nmap`? – YoMismo Apr 06 '15 at 13:13
  • For other needs, you might consider D-ITG, the Distributed Internet Traffic Generator, from here: http://traffic.comics.unina.it/software/ITG/ . – sjas Aug 05 '15 at 07:42

3 Answers3

6

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.

Manuel Faux
  • 416
  • 2
  • 14
6

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

6

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.

user2818782
  • 161
  • 2