IP spoofing settings and pitfalls in LoadRunner
Recently in a busy deployment
Web
Performance TestingEnvironment, set up IP spoofing, make a note, give your own
LearningThe journey leaves some footprints.
I. What is IP spoofing? What to do first ask why, if know why, even if do not know how to do, simple, google it, the answer will always find, CN not, google.com head office, from the global search results, will always help. IP Spoof IP Spoofing, we can say that a host device impersonating another host's IP address, and other devices to communicate, so as to achieve a target technology. IP is a non-connection-oriented protocol of the network layer, the main content of IP packet consists of the source IP address, the IP address, the data transmitted, the task of IP is based on the destination address of each data message, routing the completion of the message from the source address to the destination of the transmission. As for whether the message is lost or error in the transmission process, IP will not be considered, that is TCP. For IP, the source device has nothing to do with the destination device, and they are independent of each other. IP packets are only sent based on the destination address in the data message, so it is easier to spoof an IP address with a high-level protocol application.
Two. Why should I set up IP spoofing? For some servers, according to the IP to allocate resources, when an IP address is frequently accessed or the traffic is too large, the server will deny access, or let you enter a verification code, of course, may also be to avoid search engine robot arbitrary crawl. There are also some comments on the Internet to use more IP to simulate a more realistic user environment, to test the processing power of load balancing technology, but I always do not understand this has anything to do with that, if the server can accept a large number of access to the same IP, load balancing does not work, so can be tested? (Private view, opinions can be retained)
three. Pre-Setup Preparation work 1. To have a local area network environment, because can only set the network segment within the LAN; 2. The local IP setting cannot be "auto fetch" and a static IP must be specified.
four. How to set upFirst step: Run Mercury loadrunner-tools-ip Wizard The second step: Select Create new setting, click "Next" the page that appears is to let the input server IP address,
LoadRunnerUpdate the routing table with this address. After a new IP address is added to the client computer, the server needs to add the address to the routing table so that it can identify the route that is returned to the client. If the server and client have the same subnet mask, IP class, and network, you do not need to modify the server's routing table. If there is a router between the client and the server computer, the server needs to identify the path through the router. Ensure that the following routes are added to the Server routing table: routes from the WEB server to the router, and all IP addresses from the router to the load generator computer. Step three: After entering the address in the Web server Address page, click "Next" to enter the IP add page, click "Add" to add the fourth step: Enter the starting IP in the From IP input box, enter the IP address in the number to input box digits, enter the correct subnet mask, select In "Verify that new IP addresses is not already used", click "OK", at this time the IP Wizard will automatically follow the settings to generate IP address, and will already occupy the IP list. Fifth step: After confirming the contents of the Available IP address list, click "OK", at this time the IP wizard prompts to restart the computer, click "Save as" to save the IP list, click "OK", restart the computer. Note: When the IP address list is saved, the next time IP spoofing is enabled, select Load Previous setting from ....
IP spoofing settings and pitfalls in LoadRunner