--IP Spoofer Technology of performance test

Source: Internet
Author: User
Tags generator

--IP Spoofer Technology of performance test

By default, all virtual users on the same load generator use the IP address of the generator to access the server, that is, the VUser has the same IP address on the same payload generator computer, and when a large number of virtual users run concurrently, There will be multiple users using the same IP address to pressure the site. At the same time, application servers often cache client information from the same computer, while routers cache source and target information to improve processing power. After optimized processing by the server and router, the pressure generated by the Load generator may not reflect the real situation, especially when the server restricts the same IP access, which will cause each Load generator to create only one virtual user, unless the server configuration is modified.

Laodrunner can solve the above problems through IP Spoofer technology to ensure that each virtual user use their own IP address to access the server, IP spoofer also known as "IP spoofing."

In fact, during most performance testing, using multiple IP addresses and using the same IP to access a Web site does not affect the performance of the actual application being tested, but in some cases, using multiple IP addresses and using an IP address can cause different operations for the application, and more realistic simulations are needed. On the same laodgenerator machine, let each virtual user use a different IP address.

first, must use the situation of IP spoofer:

The Web site uses a load balancing method of "Determining load distribution based on IP".

For security purposes, a Web site that restricts the same IP address can only produce a limited number of tasks on the site. (If voting)

second, the use of IP spoofer considerations:

L The Load generator machine must use a static IP address, not an IP address that is automatically assigned through DHCP.

Otherwise, the following information is prompted when you configure IP spoofer:


L to enable LoadRunner to use these IP addresses, you also need to set the scene in controller to select the menu "scenario"-> "enableip spoofer" option, preferably before connecting to the load generator.

Open Menu "Tools"-> "Expert mode", into the expert mode, the global settings for multiple IP addresses, into the "Tools"-> "Options" in the "General" tab, according to the situation of virtual users to configure the IP address loading mode. If the virtual user starts on a thread, select Assign an IP to each thread, or if the virtual user runs by process, select Assign an IP to each process (including 50 threads).

Third, IP spoofer configuration steps

1. Click "Start"-> "->" Mercury loadrunner "->" Tools "->" IP Wizard "to open the Setup Wizard as shown in the following illustration:


As you can see from the diagram, there are three options:

L Create a new configuration item

L loading settings from previous configuration files

L Restore original settings

2. Select "Create new Setting", click "Next", as shown in the following figure: you need to enter the server's IP address, you can check the server's routing table to determine to add a new IP address to the load generator posterior by the table


If you need to update, enter the server's IP address, and then click Next.

3. Click the "Add" button to add an IP address. You can bulk add classes C, B, a, or specify IP addresses yourself.

If you select the C class address, the starting IP address is 192.168.0.11,number to add set to 10 and select "Verify the new IP addressesare not already in", as shown in the following figure:


Click OK to verify the added IP address and display it in the list:


Click Finish, as shown in the following illustration:


You can click "Save as" to save this setting and import the file directly when you need to configure it later.

Select ' Reboot now to update routing table ' to restart and update the routing tables immediately.

Click OK, after restarting the computer, enter Ipconfig/all carriage return at the command prompt, and you can see the IP list indicating that spoofing has been configured successfully, as shown in the following figure.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.