10-11-2012, 02:38 PM
multiple IP addresses
6899357-IpSpoofing.ppt (Size: 125.5 KB / Downloads: 17)
When you run a scenario, the Vusers on each host machine use 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 appendix describes:
•Adding IP Addresses to a Host
•Using the IP Wizard
•Updating the Routing Table
•Enabling Multiple IP Addressing from the Controller
The multiple IP address feature is applicable to the Web and WinSocket protocols.
About Multiple IP Addresses
Application servers and network devices use IP addresses to identify clients. The application server often caches information about clients coming from the same machine. Network routers try to cache source and destination information to optimize throughput. If many users have the same IP address, both the server and the routers try to optimize. Since Vusers on the same host machine have the same IP address, server and router optimizations do not reflect real- life situations.
LoadRunner’s multiple IP address feature enables Vusers running on a single machine to be identified by many IP addresses. The server and router recognize the Vusers as coming from different machines and as a result, the testing environment is more realistic.
Using the IP Wizard
The IP Wizard resides on each host machine. You run this process one time to create and save new IP addresses. The new addresses can be a range of addresses defined by the Internet Assignment Numbers Authority. They are for internal use only, and cannot connect to the internet. This range of addresses are
the default used by the IP Wizard.
To add new IP addresses to a host machine:
1 Invoke the IP Wizard from the LoadRunner program group.
Updating the Routing Table
Now that the client machine has new IP addresses, the server needs the addresses in its routing table, so it can recognize the route back to the client. It the server and client share the same netmask, IP class and network, the server’s routing table does not require modification.
Enabling Multiple IP Addressing from the Controller
Once you define multiple IP addresses, you set an option to tell the Controller to use this feature.
To enable multiple IP addressing from the Controller:
1 In the Controller Scenario Window, select Scenario > Enable Multiple IP Addresses .
2 Use the General Settings of the Controller Expert Mode to specify how the Controller should implement this feature.