51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3331|回复: 2
打印 上一主题 下一主题

[原创] LoadRunnerIP Spoofing

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-8-10 00:44:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
When testing using Web and WinSocket protocols, by default Vusers on each host machine use the host's (agent's) IP address. Since a particular server keeps serving a specific IP address, load tests would reflect network router caching and other optimizations rather than the real-life situation where different users arrive to the server with different IP addresses. 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.

First, internal IP addresses (such as 192.168.1.1) may need to be allocated by the organization's Network Administrator unless you're working in a closed network. The IP Wizard program (ipwizard.exe in LR bin) is used to define multiple IP addresses on each load generator host. However, the hosts must use static IP addresses rather than DHCP to dynamically assign addresses. Note: 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.

When a host machine is re-started, routing tables are updated with the new addresses.The IP Wizard program creates a batch file (nt_routing.bat for Windows and unix_routing.bat for UNIX machines) and .ips file which updates IP tables.

To enable multiple IP Addressing At the LoadRunner Controller, pull down menu item Scenario, check "Enable IP Spoofer" (In earlier versions, "Enable Multiple IP Addresses"). This enables "Multiple IP address mode" in the Options dialog General tab, which appears after "Expert mode" is checked on the Tools drop-down menu. IP allocation should be consistent with the way users are running.

After turning IP spoofing on or off, for the setting to take effect, the Load Generator needs to be disconnected and reconnected again.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-2-19 18:47:10 | 只看该作者
我试着做了。
本机地址:192.168.0.162。虚拟的iP是192.168.1.1-192.168.1.100
然后Enable IP Spoofer.enable expert mode.也选择了每个线程的IP地址分配和每个进程的IP地址分配。然后向192.168.1.200的服务器发包。但是我再192.168.1.200上抓包。发现全部都是192.168.1.1发送的。然后看了一下route print发现所有192.168.1.*的ip都是通过192.168.1.1switch的。现在很难知道怎么样才能通过不同IP来发送包给192.168.1.200。。帮忙一下
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2008-2-27 11:21:58 | 只看该作者
IP欺骗研究成功了.原来IP欺骗,只能应用在socket协议上。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-23 12:01 , Processed in 0.074729 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表