jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <jeanlouis.pastu...@orange-ftgroup.com>
Subject RE: How to use associate a different client IP address with request sent through jMeter
Date Wed, 02 Dec 2009 17:24:00 GMT
 Ok thanks
I see it was quite simple to do with http protocol.
What about other based tcp/udp  protocols ?

I think my solution of a proxyTcp with session tracking  seems correct.
Threa are 2 ways to run it :
- in another JVM than Jmeter but with its own logging to get measures
identified by IP spoofed address
- in the same JVM than Jmeter, needs to develop a plugin/sampler, but the
results are available for JMeter
For me the first is simpler, and for heavy stress it can be more suitable.

Cordialement / Best regards

Jean-Louis Pasturel


-----Message d'origine-----
De : Milamber [mailto:milamberspace@gmail.com] 
Envoyé : mercredi 2 décembre 2009 18:10
À : JMeter Users List
Objet : Re: How to use associate a different client IP address with request
sent through jMeter

Hello Jean-Louis,

In

src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java


You can view all modified files for this features (bugzilla 48300 / 48311
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300) :

http://svn.apache.org/viewvc?view=revision&revision=885312

in particular :
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apac
he/jmeter/protocol/http/sampler/HTTPSampler2.java?r1=885312&r2=885311&pathre
v=885312


Milamber


On Wed, Dec 2, 2009 at 4:35 PM,
<jeanlouis.pasturel@orange-ftgroup.com>wrote:

>
> Hi Milamber,
> For my knowledge, where is the source file of this Sampler ?
>
> Cordialement / Best regards
>
> Jean-Louis Pasturel
>
> -----Message d'origine-----
> De : Harry_ [mailto:harjitworks@gmail.com] Envoyé : mercredi 2 
> décembre 2009 17:25 À : jmeter-user@jakarta.apache.org Objet : Re: How 
> to use associate a different client IP address with request sent 
> through jMeter
>
>
> Thanks Milamber.... You rock... :)
>
> I was looking for the option in HTTP Request Sampler.
>
> It was in HTTP Request HTTPClient Sampler.
>
> Thanks and Regards
>
>
>
>
> Milamber-3 wrote:
> >
> > Hello,
> >
> > Yes since r885312.
> >
> > Please see this link :
> > http://www.milamberspace.net/jmeter/source-ip-addr/
> >
> > Milamber
> >
> > On Wed, Dec 2, 2009 at 3:18 PM, Harry_ <harjitworks@gmail.com> wrote:
> >
> >>
> >> Hi Milamber,
> >>
> >> I copied all the library file and nightly build is running fine now.
> >>
> >> But I cannot find change source IP address in JMeter 'nightly'
> >> version with sample HTTPClient request
> >>
> >> I used build number: r885866
> >>
> >> Can you please tell me where that option is provided in nightly 
> >> build for HTTP Request Sampler.
> >>
> >> Thanks in advance for your help.
> >>
> >> Regards
> >>
> >>
> >>
> >> Harry_ wrote:
> >> >
> >> > I tried running the nightly build of jmeter downloaded through 
> >> > the link you provided.
> >> >
> >> >
> >> >
> >> >
> >> > But it is not running.
> >> >
> >> > Regards
> >> >
> >> >
> >> > Milamber-3 wrote:
> >> >>
> >> >> Hello,
> >> >>
> >> >> Since few days, change source IP address is possible with JMeter 
> >> >> 'nightly'
> >> >> version with sample HTTPClient request Coupled with a csv file 
> >> >> of IP alias on host (in a CSV Data Set), you
> >> can
> >> >> send one different source IP per request (HTTPClient Request)
> >> >>
> >> >> http://people.apache.org/builds/jakarta-jmeter/nightly/
> >> >>
> >> >> Please send any feedback.
> >> >>
> >> >> A+
> >> >> Milamber
> >> >>
> >> >> On Wed, Dec 2, 2009 at 1:21 PM,
> >> >> <jeanlouis.pasturel@orange-ftgroup.com>wrote:
> >> >>
> >> >>>  Yes, in fact the Jmeter User Group throws requests on the 
> >> >>> proxy that handles the session affinity with a cookie or a 
> >> >>> parameter that you
> >> can
> >> >>> introduce in the http header.
> >> >>> The proxy handles the different Ips of the computer and it runs

> >> >>> on another JVM than JMeter
> >> >>>
> >> >>>
> >> >>> Cordialement / Best regards
> >> >>>
> >> >>> Jean-Louis Pasturel
> >> >>>
> >> >>>
> >> >>> -----Message d'origine-----
> >> >>> De : Amanpreet Singh Oberoi [mailto:amandv@gmail.com] Envoyé :
> >> >>> mercredi 2 décembre 2009 14:09 À : JMeter Users List Objet :
Re:
> >> >>> How to use associate a different client IP address with request

> >> >>> sent through jMeter
> >> >>>
> >> >>> Hi Jean,
> >> >>>
> >> >>> Can you share the same the JMeter user Group as I too have 
> >> >>> exploring
> >> how
> >> >>> to
> >> >>> do IP spoofing using Jmeter, but couldn't get much success.
> >> >>>
> >> >>> Thanks,
> >> >>> Amanpreet
> >> >>>
> >> >>> On Wed, Dec 2, 2009 at 6:35 PM,
> >> >>> <jeanlouis.pasturel@orange-ftgroup.com>wrote:
> >> >>>
> >> >>> > OK; Sorry
> >> >>> > You want to do IPSpoofing. As i know, it is not a native 
> >> >>> > feature of Jmeter 2.3.4.
> >> >>> > For my work, i have developped a "dirty" java proxy TCP that

> >> >>> > plays
> >> the
> >> >>> > IP Spoofing and handles the session affinity.
> >> >>> > But it needs to be tuned and documented, before open source
it...
> >> >>> >
> >> >>> >
> >> >>> > Cordialement / Best regards
> >> >>> >
> >> >>> > Jean-Louis Pasturel
> >> >>> >
> >> >>> >
> >> >>> > -----Message d'origine-----
> >> >>> > De : Harry_ [mailto:harjitworks@gmail.com] Envoyé : mercredi

> >> >>> > 2 décembre 2009 13:56 À : jmeter-user@jakarta.apache.org
Objet :
> RE:
> >> How
> >> >>> > to use associate a different client IP address with request

> >> >>> > sent through jMeter
> >> >>> >
> >> >>> >
> >> >>> > Thanks for the reply Jean, but this will fire request from

> >> >>> > the
> >> address
> >> >>> > specified in the properties file.
> >> >>> >
> >> >>> > For example: When following is specified in JMeter Properties
> file:
> >> >>> > httpclient.localaddress=192.168.20.1
> >> >>> >
> >> >>> > All the http requests will have the above IP address in there
> >> headers
> >> >>> > to the server.
> >> >>> >
> >> >>> > But what I want is to use all the IP's associated with client
> >> machine.
> >> >>> >
> >> >>> > How can I do that?
> >> >>> >
> >> >>> >
> >> >>> > Regards
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > jeanlouis.pasturel-2 wrote:
> >> >>> > >
> >> >>> > > Look at file  jmeter.properties
> >> >>> > >
> >> >>> > > # Define the local host address to be used for multi-homed

> >> >>> > > hosts
> >> >>> > > #httpclient.localaddress=1.2.3.4
> >> >>> > >
> >> >>> > > Cordialement / Best regards
> >> >>> > >
> >> >>> > > Jean-Louis Pasturel
> >> >>> > >
> >> >>> > >
> >> >>> > > -----Message d'origine----- De : Harry_ 
> >> >>> > > [mailto:harjitworks@gmail.com] Envoyé : mercredi
> >> >>> > > 2 décembre 2009 13:12 À : jmeter-user@jakarta.apache.org

> >> >>> > > Objet
> :
> >> How
> >> >>> > > to use associate a different client IP address with request

> >> >>> > > sent through jMeter
> >> >>> > >
> >> >>> > >
> >> >>> > > Hi,
> >> >>> > >
> >> >>> > > I am giving http requests to web server using jmeter.
Now 
> >> >>> > > my IP
> >> is
> >> >>> > > sent along with the request to the server, using which

> >> >>> > > server
> >> send
> >> >>> > > the response back to the jmeter client.
> >> >>> > >
> >> >>> > > Now if I have multiple IP's associated along with my

> >> >>> > > machine, how can I use a particular outbound IP for the

> >> >>> > > http requests sent to
> >> >>> Server.
> >> >>> > >
> >> >>> > > What is the default behavior? Is it going to pick outbound

> >> >>> > > IP at random or will it use the same IP.
> >> >>> > >
> >> >>> > > If it is picking up same IP how can I tell jmeter to
use IP
> >> address
> >> >>> > > in round robin fashion, so that Server receives receives

> >> >>> > > requests from each IP.
> >> >>> > >
> >> >>> > > We are facing this problem where we have two machines
which 
> >> >>> > > are putting up load on Server, but only two web servers

> >> >>> > > behind the
> >> load
> >> >>> > > balancer are getting used because of sticky sessions.
That 
> >> >>> > > is why
> >> we
> >> >>> > > are now going to associate multiple IP's on our two jmeter
> >> machines.
> >> >>> > > But I am not sure how jmeter will pick up different IP's

> >> >>> > > for
> >> sending
> >> >>> > > requests. Do I need to do some settings in jMeter in
order 
> >> >>> > > to use all the IP associated with test machines.
> >> >>> > >
> >> >>> > > Thanks and Regards
> >> >>> > >
> >> >>> > > --
> >> >>> > > View this message in context:
> >> >>> > >
> >> http://old.nabble.com/How-to-use-associate-a-different-client-IP-ad
> >> d
> >> >>> > > re ss-wit
> >> >>> > > h-request-sent-through-jMeter-tp26607904p26607904.html
> >> >>> > > Sent from the JMeter - User mailing list archive at Nabble.com.
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> -------------------------------------------------------------------
> >> -
> >> >>> > > - To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >>> > > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> >>> > > ********************************* This message and any

> >> >>> > > attachments (the "message") are confidential and intended

> >> >>> > > solely for the addressees.
> >> >>> > > Any unauthorised use or dissemination is prohibited.
> >> >>> > > Messages are susceptible to alteration.
> >> >>> > > France Telecom Group shall not be liable for the message
if
> >> altered,
> >> >>> > > changed or falsified.
> >> >>> > > If you are not the intended addressee of this message,

> >> >>> > > please
> >> cancel
> >> >>> > > it immediately and inform the sender.
> >> >>> > > ********************************
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> -------------------------------------------------------------------
> >> -
> >> >>> > > - To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >>> > > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> >>> >
> >> >>> > --
> >> >>> > View this message in context:
> >> >>> >
> >> >>> >
> >> http://old.nabble.com/How-to-use-associate-a-different-client-IP-ad
> >> dr
> >> e
> >> >>> > ss-wit h-request-sent-through-jMeter-tp26607904p26608427.html
> >> >>> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >> >>> >
> >> >>> >
> >> >>> >
> >> -------------------------------------------------------------------
> >> --
> >> >>> > To unsubscribe, e-mail:
> >> >>> > jmeter-user-unsubscribe@jakarta.apache.org
> >> >>> > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > ********************************* This message and any 
> >> >>> > attachments (the "message") are confidential
> >> and
> >> >>> > intended solely for the addressees.
> >> >>> > Any unauthorised use or dissemination is prohibited.
> >> >>> > Messages are susceptible to alteration.
> >> >>> > France Telecom Group shall not be liable for the message if
> >> altered,
> >> >>> > changed or falsified.
> >> >>> > If you are not the intended addressee of this message, please
> >> cancel
> >> >>> > it immediately and inform the sender.
> >> >>> > ********************************
> >> >>> >
> >> >>> >
> >> >>> >
> >> -------------------------------------------------------------------
> >> --
> >> >>> > To unsubscribe, e-mail:
> >> >>> > jmeter-user-unsubscribe@jakarta.apache.org
> >> >>> > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >>> >
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> ********************************* This message and any 
> >> >>> attachments (the "message") are confidential and intended 
> >> >>> solely for the addressees.
> >> >>> Any unauthorised use or dissemination is prohibited.
> >> >>> Messages are susceptible to alteration.
> >> >>> France Telecom Group shall not be liable for the message if 
> >> >>> altered, changed or falsified.
> >> >>> If you are not the intended addressee of this message, please 
> >> >>> cancel
> >> it
> >> >>> immediately and inform the sender.
> >> >>> ********************************
> >> >>>
> >> >>>
> >> >>> ---------------------------------------------------------------
> >> >>> --
> >> >>> ---- To unsubscribe, e-mail:
> >> >>> jmeter-user-unsubscribe@jakarta.apache.org
> >> >>> For additional commands, e-mail:
> >> >>> jmeter-user-help@jakarta.apache.org
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/How-to-use-associate-a-different-client-IP-ad
> >> dr ess-with-request-sent-through-jMeter-tp26607904p26610584.html
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >> -------------------------------------------------------------------
> >> -- To unsubscribe, e-mail: 
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: 
> >> jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
> http://old.nabble.com/How-to-use-associate-a-different-client-IP-addre
> ss-wit h-request-sent-through-jMeter-tp26607904p26611756.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> *********************************
> This message and any attachments (the "message") are confidential and 
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered, 
> changed or falsified.
> If you are not the intended addressee of this message, please cancel 
> it immediately and inform the sender.
> ********************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>



*********************************
This message and any attachments (the "message") are confidential and intended solely for
the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform
the sender.
********************************


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message