Ticket #40 (new enhancement)

Opened 3 years ago

Last modified 6 months ago

Tomahawk like IP mapping

Reported by: aturner Owned by: aturner
Priority: medium Milestone: Future Release
Component: libtcpedit Version: 3.0.beta7
Keywords: Cc:
Operating System: Add to FAQ?: no
Hardware: All
Output of tcpreplay -V:

Description (last modified by aturner) (diff)

From tomahawk 1.1: Replacing pcap IP Addresses (courtesy ICSA labs)

Changed algorithm for assigning rewritten IP addresses. The new format is X.HID.N.N, where

  • The first byte (X) can be either a constant - provided by the user on the command line - or taken from the first byte of the IP address in the original packet.
  • HID is the handler ID. This method allows for 254 consecutive handlers (values 0 and 255 are reserved in the second octet).
  • The last 2 octets (N.N) are either chosen at random and guaranteed to be unique within a pcap.

In choosing to keep the first octet the same as that which was in the original pcap, you not only introduce randomness and uniqueness into the address space but also get IP addresses similar to those in the original pcap since the first octet remains the same. Use the -d flag on the command line to activate this behavior.

Attachments

Change History

Changed 3 years ago by aturner

  • description modified (diff)

Changed 21 months ago by aturner

  • summary changed from Tomahawk like IP randomization to Tomahawk like IP mapping

Changed 19 months ago by aturner

  • add_to_faq unset

Actually what this should be is flow multiplication. Basically using each packet as a template to send many packets like it. Generally speaking, this is done by either changing the source port (for tcp) or src or dst IP address (for tcp/udp/icmp).

This code probably won't improve performance any (hard to beat the cache mode), but it would be useful for stress testing the flow rampup/etc of the DUT. Also, I should make sure the code could be used for a tomahawk replacement (#7)

Add/Change #40 (Tomahawk like IP mapping)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.