How to simulate Web traffic?

420 views
Skip to first unread message

luizfzsaggi

unread,
Apr 28, 2009, 3:32:38 PM4/28/09
to ns-3-users
Im in trouble about how to simulate Web traffic. I thougth in OnOff
source but it didnt seem to be the right one.
Is there another type of source i can use to do this simulation?

Thanks

Luiz Felipe

francesco

unread,
Apr 29, 2009, 9:09:18 AM4/29/09
to ns-3-users
I'm afraid it will be more complicate than just picking a traffic
source...

You will need to:
(1) choose or invent a model for web traffic, e.g. how requests are
generated, etc
(2) implement your web traffic model extending the ns-3 Application
class

There is an example using lighttpd so you won't have to program a web
server from scratch, but I am not aware of any pre-build web client
application.

Raj Bhattacharjea

unread,
Apr 29, 2009, 1:36:23 PM4/29/09
to ns-3-users
You might also have luck porting models for web traffic from other
open source simulators, i.e. I know that GTNetS has some web server
and client applications, and a traffic model based on random number
generators for http request times, response times, # files that have
to be downloaded per page, etc. I think that the random number
distributions used are based upon some measured statistics from the
real world (maybe from a Jeffay paper?), but I'm not too sure.

GTNetS:
http://www.ece.gatech.edu/research/labs/MANIACS/GTNetS/
In the GTNetS tree, the following has the browser and server
applications:
SRC/application-web*.{cc,h}
And the following describes the statistics (cumulative density
function) of browser requests:
SRC/http-distributions.{cc,h}

Porting these models is vaguely in the plans for the future, but you
might be able to get the jump on this sooner, and port the GTNetS
stuff yourself.
Reply all
Reply to author
Forward
0 new messages