Ip Spoofing for web based testing

241 views
Skip to first unread message

Deb

unread,
Jun 25, 2012, 1:14:09 AM6/25/12
to LoadRunner
Dear All,

I have started performance testing on web based app. One of the query
am facing whether to use IP Spoofing or not? I am aware that if
requests go through same IP (in case i am not using IP spoof), load
balance server may behave differently.

As I am new to web performance testing space, need your tips or
feedback. If it is a must, then I may need to ask network to team to
provide me a series of IP addresses that are not being used by any
other machine in the organization.

Appreciate your feedback

Thanks
Deb

kesava reddy

unread,
Jun 26, 2012, 12:30:00 AM6/26/12
to lr-loa...@googlegroups.com

Hi DEB,

We will uses/enables IP Spoofing, when the following 3 criteria s is fulfilled:

1: When there are multiple Web servers in our application architecture.
2: Those web servers are clustered to balance the web load.
3: That Clustering algorithm is IP based.



********
Kesava



Deb

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Ajit Lal

unread,
Jun 26, 2012, 1:22:00 PM6/26/12
to lr-loa...@googlegroups.com
Hi Deb,

Adding to what Kesav has shared, to simulate the real life situation, the Controller/LG machines are configured with more than one NIC's. Like in Performance Center, there is an option of selecting IP Spoofing, once you create the scenario. When Vusers are initiated and request is sent to Load Balancer, then different NIC's (hence diff. IP addresses) comes into picture and it seems to Load Balancer that the request is coming from different IP's.

Thanks,
Ajit

Kamran Khan

unread,
Sep 7, 2012, 6:02:09 AM9/7/12
to lr-loa...@googlegroups.com
Hi kesava reddy,

Out of three criteria, I think 1st two are not applicable; at least mandatory.
In fact, even if there is no clustering, but implementation requires sessions from unique IP, then IP spoofing be required. Nonetheless, if there is clustering but implementation does not enforce sessions from unique IPs then we can live without IP spoofing and there wont be any impact in performance stats.


Disagreement of opinion is welcome.


Sincerely,
Kamran Khan
Principal/Lead, SQA & Test Automation
BSCS Hons., MBA, Certified HP PC, LR, QTP & CCNA




On Wed, Jun 27, 2012 at 1:11 AM, André Luyer <an...@luyer.nl> wrote:
> different NIC's (hence diff. IP addresses)
Not quite. A NIC has a hardware address or Ethernet address (in 99.9999% of the cases). The Internet Protocol (IP) runs on top of Ethernet.
In most cases there is only one IP address configured per NIC, but not always.

"IP spoofing" means activating multiple IP-addresses on one NIC. The receiving end (load balancer) can't tell the difference between using multiple NICs or IP spoofing when there is a router in the network path (because the load balancer will receive network packets containing the Ethernet address of the router).

Having one IP address on multiple NICs is also possible, e.g. a active/hot-standby configuration in firewalls.

So only use IP spoofing if you MUST use more (or different) IP addresses than load generators available. Thus when you know for sure that the load will be off balanced otherwise.
An other option is to bypass the load balancer and do your own load balancing.

André


On Tuesday, June 26, 2012 7:22:00 PM UTC+2, Ajit Lal wrote:
Hi Deb,

Adding to what Kesav has shared, to simulate the real life situation, the Controller/LG machines are configured with more than one NIC's. Like in Performance Center, there is an option of selecting IP Spoofing, once you create the scenario. When Vusers are initiated and request is sent to Load Balancer, then different NIC's (hence diff. IP addresses) comes into picture and it seems to Load Balancer that the request is coming from different IP's.

Thanks,
Ajit

Reply all
Reply to author
Forward
0 new messages