Tuesday, February 1, 2011

LoadRunner and Performance Center IP Spoofing

LoadRunner and Performance Center IP Spoofing
When performance test scenario runs, virtual users on each host machine (Load Generator) uses the host’s IP address. You can define multiple IP addresses on a host machine to emulate a real- life situation where users sit on different machines. This is especially needed when the hardware configuration under test balances load across a "farm" of several (web or database) servers. "IP spoofing" enables each host machine to "spoof" the server into thinking it is using many different IP addresses.


IP Spoofing configuration:
Performance Center or LoadRunner includes an IP Wizard program that you run on each host machine to create multiple IP addresses. You add new IP addresses to a machine once and use the addresses for all scenarios.

1. Invoke the IP Wizard from the LoadRunner program group.


2. If you have an existing file with IP address settings, select Load previous settings from file and choose the file.
3. If you are defining new settings, select Create new settings.
4. Click Next to proceed to the next step. If you have more than one network card, choose the card to use for IP addresses and click Next.


The optional Web server IP address step enables the IP Wizard to check the server's routing table to see if it requires updating after the new IP addresses are added to the load generator.
5. To check the server's routing table directly after adding the addresses, enter the server IP address. See Updating the Routing Table for more information.
6. Click Next to see a list of the machine's IP address (es). Click Add to define the range of addresses.


IP addresses include two components, a netid and hostid. The submask determines where the netid portion of the address stops and where the hostid begins.
7. Select a class that represents the correct submask for the machine's IP addresses.
8. Specify the number of addresses to create. Select Verify that new IP addresses are not already in use to instruct the IP Wizard to check the new addresses. The IP Wizard will only add the addresses not in use.
Click OK to proceed.
9. After the IP Wizard creates the new addresses, the summary dialog box lists all of the IP addresses.


10. Click Finish to exit the IP Wizard. The IP Wizard Summary dialog box is displayed.


11. Note the address of the .bat file, and see Updating the Routing Table for information about using the batch file to update the routing table, if necessary.
12. After you update the routing table, check Reboot now to update routing tables to initialize the Windows device drivers with the new addresses.
13. Click OK.

Updating the Routing Table
When the client machine has new IP addresses, the server needs the addresses in its routing table, so that it can recognize the route back to the client. If the server and client share the same netmask, IP class, and network, the server's routing table does not require modification.

Note: If there is a router between the client and server machines, the server needs to recognize the path through the router. Make sure to add the following to the server routing table: route from the Web server to the router, and routes from the router to all of the IP addresses on the load generator machine.
1. Edit the batch file that appears in the IP Wizard Summary page. An example .bat file is shown below.


2. For each occurrence of [CLIENT_IP], insert your IP address instead.
3. Run the batch file on the server machine.


Enabling IP Spoofing in LoadRunner & Performance Center
Enabling Multiple IP Addressing from the LoadRunner Controller
Once you define multiple IP addresses, you set an option to tell the Controller to use this feature.
1. In the Controller Design view, select Scenario > Enable IP Spoofer.
Note: You must select this option before connecting to a load generator.
2. Use the General Options of the Controller Expert Mode to specify how the Controller should implement this feature.
Enabling IP Spoofing from Performance Center
After you define multiple IP addresses, you can enable IP spoofing for a load test.
Note: You must enable IP spoofing before running a load test.
To enable IP spoofing from the User site:
1. On the Performance Center left menu, select Load Tests > Manage. The Load Tests page opens, displaying all the load tests in the current project.
2. Click the load test for which you want to enable IP spoofing.
3. On the Load Test configuration page that opens, click the General tab.
4. Under Advanced, select Enable IP Spoofer.


5. Click Save to save your settings.

31 comments:

peterson said...

Thanks for sharing this article.
LoadRunner course in Chennai

Ravi SUvvari said...

it loks like acopied version from HP lR guide Ravi Suvvari

Goodtech Consulting said...

Thanks for sharing this informative post. Performance Testing Services

sarah taylor said...

Excellent article!!! LoadRunner is popular automation testing tool used for validating a software application/system under load. It delivers most precise information about the performance, functionality and behavior of the software product. Best Loadrunner training in Chennai | Loadrunner training

Pooja Doss said...

Oracle DBA Training in Chennai
Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for me to make a bright career..

Pooja Doss said...

Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
Websphere Training in Chennai

Pooja Doss said...

Data warehousing Training in Chennai
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..

Pooja Doss said...

Selenium Training in Chennai
Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

Pooja Doss said...

Oracle Training in chennai
Thanks for sharing such a great information..Its really nice and informative..

Pooja Doss said...

SAP Training in Chennai
This post is really nice and informative. The explanation given is really comprehensive and informative..

Pooja Doss said...

This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
Android Training In Chennai In Chennai

Pooja Doss said...

Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision, keep sharing..
Unix Training In Chennai

Pooja Doss said...

I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
SalesForce Training in Chennai

Pooja Doss said...

There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai in Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this blogs..

Alia Kumar said...

This is really an awesome article. Thank you for sharing this.It is worth reading for everyone. Visit us:
Oracle Training in Chennai

Alia Kumar said...

very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
Oracle DBA Training in Chennai

Alia Kumar said...

great article!!!!!This is very importent information for us.I like all content and information.I have read it.You know more about this please visit again.
Oracle RAC Training in Chennai

Alia Kumar said...

Wonderful tips, very helpful well explained. Your post is definitely incredible. I will refer this to my friend.
SalesForce Training in Chennai

Alia Kumar said...

I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
Java Training in Chennai

Alia Kumar said...

Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
PHP Training in Chennai

Alia Kumar said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Nice article i was really impressed by seeing this article, it was very interesting and it is very useful for me..
Android Training in Chennai

Alia Kumar said...
This comment has been removed by the author.
Alia Kumar said...

Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
SAP Training in Chennai

Alia Kumar said...

Excellent information with unique content and it is very useful to know about the information based on blogs.
Hadoop Training in Chennai

Alia Kumar said...

It is really very helpful for us and I have gathered some important information from this blog.If anyone wants to Selenium Training in Chennai reach Greens Technology training and placement academy.
selenium Training in Chennai

Dinju Thomas said...

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
Selenium Training in Chennai | QTP Training in Chennai

Dinju Thomas said...

Thanks for Information Oracle Apps Technical is a collection of a bunch of collected applications like accounts payables, purchasing, inventory, accounts receivables, human resources, order management, general ledger and fixed assets, etc which have its own functionality for serving the business
Oracle Apps Training In Chennai

Dinju Thomas said...

Oracle Training in chennai | Oracle D2K Training In chennai
This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

Diya Patel said...

Best SQL Query Tuning Training Center In Chennai This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

Lily Taylor said...

It’s wonderful that you are getting thoughts from this article as well as from our dialogue made at this time.

Dental Websites Design 4 Your Dental Clinic.

Software Development Company said...

Hello,
The Article on LoadRunner and Performance Center IP Spoofing, gives detailed information about it. Thanks for Sharing the information about the LoadRunner Testing tools For More information check the detail on the Loadrunner testing here Software Testing Company