[R] Simulating web requests

Mohan Radhakrishnan mohanr at fss.co.in
Thu Jun 28 06:15:41 CEST 2012


Not being the expert I have looked at papers like 'simpleR { Using R for
Introductory Statistics' by John Verzani. Some sample Code is in these
papers. Looks like I have to search for ideas to code a programming
language like Java by taking input from R(r-java). Can R be used
directly to hit web url's based on distributions that these functions
generates ?

?rnorm
?runif
?rgamma
?rexp

I also realize the work 'Simulation' means simulation of queues or other
simulation experiments. Law's book on simulation ?

This is about generation of traffic. 

Mohan

-----Original Message-----
From: David Winsemius [mailto:dwinsemius at comcast.net] 
Sent: Wednesday, June 27, 2012 8:13 PM
To: Mohan Radhakrishnan
Cc: r-help at r-project.org
Subject: Re: [R] Simulating web requests


On Jun 27, 2012, at 6:58 AM, Mohan Radhakrishnan wrote:

> Homework ? You mean the question is at a high level.
>
> I use R. It is just the simulation part that I am investigating.  
> Several
> papers on Capacity Planning that I am working on are useful for
> analyzing log traffic using R for GOF tests etc. But I am not able to
> find many papers on using R or r-java to generate traffic that  
> simulates
> distributions. SciPY could be useful here but it looks like  
> interfacing
> R and Java can help.
>
> Maybe I am on the wrong track here but the only other option seems  
> to be
> expensive simulators.

I'm sure Rui would be happy to get a small consulting fee to show you  
how to do it in one line of R code.

-- 
David.
>
> Mohan
>
>
>
>
> -----Original Message-----
> From: Rui Barradas [mailto:ruipbarradas at sapo.pt]
> Sent: Wednesday, June 27, 2012 4:11 PM
> To: Mohan Radhakrishnan
> Cc: r-help at r-project.org
> Subject: Re: [R] Simulating web requests
>
> Hello,
>
> Homework?
> There's a no homework rule but see inline.
>
> Em 27-06-2012 10:20, Mohan Radhakrishnan escreveu:
>> Hi,
>>
>>          I am looking for some assistance with these requirements.
> We
>> are trying to simulate web requests to hit a web applications. Let's
>> assume I have a url to hit that requires a username and password.
>>
>>
>>
>> 1.	These web requests should have exponential inter arrival times.
>
> Poisson process. See any introductory text.
> And see the help page for ?rexp
>
>> 2.	Generate self-similar traffic. I am not very sure about the
>> properties of this traffic. Is Variance Time plot used for analyzing
> if
>> the data received from this simulation is self-similar ?
>
> See the argument 'rate' in the help page above. Set it to a single
> value.
>
>>
>>
>>
>> How does R help in creating a program that can generate this  
>> traffic ?
>>
>>
>
> Simply by making of this a straightforward to program an assignment.
>
> Hope this helps,
>
> Rui Barradas
>>
>>
>>
>> Thanks,
>>
>> Mohan
>>
>>
>>
>> DISCLAIMER:\ ===============...{{dropped:31}}
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> DISCLAIMER:\ ===============...{{dropped:30}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



DISCLAIMER:\ ===============...{{dropped:30}}



More information about the R-help mailing list