Controlled IP Spoofing using LoadRunner
I am looking to implement IP spoofing for some Load Tests and looking for some advise on few things.
1. how are the IPs distributed by default by LoadRunner when spoofing.
a. Number of VUsers = Number of IPs
b. Number of VUsers > Number of IPs
2. Assigning Equal number of users for each IP(Mapping VUsers to IPs)
a. I can use the web_set_sockets_option("IP_ADDRESS_BY_INDEX", "1"); to set an IP to each script, or even randomize the Index to get a mix if IPs for VUsers. But is there a way to set the IPs for each of the VUsers spread across multiple scripts.
3. How do i know if the server requires updating of the routing tables with the IPs being spoofed
Your advises are much appreciated.
I don't think you'll be able to do IP spoofing using a typical load testing tool. To spoof IP address, you'll need to rewrite packets at the network/transport layer code. Unfortunately, most program and load testing tool operate on either the application layer.
Originally Posted by rajbobby
Back in Computer Security class, I believe we used libpcap/libnet for writing low level network data for stuff like that.
@ dlai - ipspoofing has been a standard feature of loadrunner for a long time
@Raj - maybe you could state your own opinions, thoughts, answers to your questions - might help get some answers
haven't implemented it(ip spoofing) yet...but would need answers to those questions to design the approach and tests.
Don't see much of concrete things over web, which is leading me to get some advise here.