[ns] web traffic
Hi, I have just started to use ns-2 to demonstrate the performance of proposed our AQM controller compared to the others. Therefore, I need to construct a traffic. I use a dumbell network with FTP sources, however, I believe in that to show the performance of the proposed controller under a mix traffic will be better. My mind confused on connecting http application agent to the TCP sources. Will the http agents be connected similar to ftp connection? Is there someone to send me a simple program which generates http traffic for a dumbell network\ Thanks for all your interest and time consuming hakki
[ns] Web traffic in wireless environment
Hi all, I want to perform a simulation of a kind of XML RPC traffic. As this traffic is usually carried over HTTP in order to make the first tests I want to use any kind of web traffic envionment. I have tried with webcache over a wireless environment and the packets doesn't go out of the node (they are discarded). Does anybody know what can I use to perform such a simulation of web traffic over wireless? All my nodes are wireless and will act as servers and clients (whenever possible). TA. Jorge
[ns] Web traffic simulator
HI, ns-users my web simulator as following. I want get a process of getting only one page and finish. and I will analyse the latency of getting a web, the throughput, loss, and so on. but the operation of getting web page run from the beginning to the end. How can I do. thanks ! # Initial setup source /home/ns2/ns-allinone-2.28/ns-2.28/tcl/http/http-mod.tcl #Create a simulator object set ns [new Simulator] $ns color 0 blue ;# Set colors to display packets $ns color 1 red #Open the trace file set p2p_tracefd [open http.tr w] $ns trace-all $p2p_tracefd #Open the nam trace file set p2p_namfd [open http.nam w] $ns namtrace-all $p2p_namfd ## #set the default parameter ## set m 1;##set the number m of short-lived web set u 10Mb; ##set the capacity of the bottleneck link set Ltn 10ms; ##set the link RTT of long-lived tcp set Ltm 20ms; ##set the link RTT of short-lived tcp ## #Create the nodes and links # set N0 [$ns node] set r [$ns node] $N0 label N0 $r label route for {set j 1} {$j=$m} {incr j} { set Nt($j) [$ns node] $Nt($j) label Nt$j } #Create a duplex link between the nodes $ns duplex-link $N0 $r $u 1ms RED $ns duplex-link-op $N0 $r color pink for {set l 1} {$l=$m} {incr l} { $ns duplex-link $r $Nt($l) $u $Ltm RED $ns duplex-link-op $r $Nt($l) color green } ## #set the short-lived web flow # $ns set src_ [list 2] $ns set dst_ [list 0] ## Number of Pages per Session set numPage 1 set httpSession1 [new HttpSession $ns $numPage [$ns picksrc]] set httpSession2 [new HttpSession $ns $numPage [$ns picksrc]] $httpSession1 setDistribution interPage_ Exponential 30 ;#in sec $httpSession1 setDistribution pageSize_ Constant 1 ;# number of objects/page $httpSession1 createPage $httpSession1 setDistribution interObject_ Exponential 0.01 ;# in sec $httpSession1 setDistribution objectSize_ ParetoII 10 1.2 ;# number of packets # uses default $httpSession2 createPage $ns at 2.1 $httpSession1 start ;# in sec as well $ns at 2.2 $httpSession2 start ### #set the start and stop of the produce ## $ns at 15 finish #Define a 'finish' procedure of p2p nam proc finish {} { global ns p2p_tracefd p2p_namfd $ns flush-trace close $p2p_tracefd close $p2p_namfd ; exec nam http.nam ; puts finishing the ns exit 0 } #Run the simulation $ns run yaya [EMAIL PROTECTED] 2006-09-13
[ns] Web traffic simulator that can allow multiple client to one server
Hi guys, I was just wondering if I can get an HTTP traffic application simulator (like packmime) but that can send can allow one web server to server multiple clients. Presently, packmime do not support this, it only allows a one-to-one client/server config. Any suggestion will be appreciated. Also, when analysin http traffic, what are the permance metrics to watch out for, apart from bandwidth consumption and latency? Lekkie.
Re: [ns] Web traffic simulator that can allow multiple client to one server
Hi, lekkie I'm sending you a script with a web server, a cache server and a router that connects them with the point of entrance for 30 (=clients_num) clients. In surveying the http (actually is tcp) traffic, you can calculate bandwidth (be careful about the difference between B and throughput), delay, jitter, number of dropped packets (important), etc. Best of luck! set ns [new Simulator] set nf [open tcpweb.nam w] $ns namtrace-all $nf set allchan [open all.tr.tcp w] $ns trace-all $allchan proc finish {} { global ns nf allchan $ns flush-trace close $nf close $allchan exec nam tcpweb.nam exit 0} set clients_num 30 for {set i 1} {$i = $clients_num} {incr i} { set peer($i) [$ns node] } set jurancon [$ns node] set lrmon3 [$ns node] set lmcrt0 [$ns node] set lmcrt1 [$ns node] set jacob2 [$ns node] #legarea nodurilor si a serverelor de fisiere for {set i 1} {$i = $clients_num} {incr i} { $ns duplex-link $peer($i) $jurancon .5Mb 30ms DropTail } $ns duplex-link $jurancon $lrmon3 .5Mb 30ms DropTail $ns duplex-link $lrmon3 $lmcrt0 .5Mb 30ms DropTail $ns duplex-link $lrmon3 $lmcrt1 .5Mb 30ms DropTail $ns duplex-link $lmcrt0 $jacob2 .5Mb 30ms DropTail $ns duplex-link $lmcrt0 $lmcrt1 .5Mb 30ms DropTail set server [new Http/Server $ns $jacob2] for {set i 1} {$i = $clients_num} {incr i} { set client($i) [new Http/Client $ns $peer($i)] } set cache [new Http/Cache $ns $lmcrt1] # Create page pool as a central page generator. Use PagePool/Math set pgp [new PagePool/Math] set tmp [new RandomVariable/Constant] $tmp set val_ 4096 ## average page size; $pgp ranvar-size $tmp set tmp [new RandomVariable/Exponential] $tmp set avg_ 6 ## average page age; $pgp ranvar-age $tmp $server set-page-generator $pgp set tmp [new RandomVariable/Exponential] $tmp set avg_ 0.5 ## average request interval; for {set i 1} {$i = $clients_num} {incr i} { $client($i) set-interval-generator $tmp $client($i) set-page-generator $pgp } # Schedule events set startTime 1 set finishTime 9 $ns at $startTime start-connection $ns at $finishTime finish $ns at 10 finish2 proc start-connection {} { global ns server cache client clients_num for {set i 1} {$i = $clients_num} {incr i} { $client($i) connect $cache $cache connect $server $client($i) start-session $cache $server} } proc finish2 {} { global ns log $ns flush-trace flush $log close $log} $ns run lekkie omotayo [EMAIL PROTECTED] wrote: Hi guys, I was just wondering if I can get an HTTP traffic application simulator (like packmime) but that can send can allow one web server to server multiple clients. Presently, packmime do not support this, it only allows a one-to-one client/server config. Any suggestion will be appreciated. Also, when analysin http traffic, what are the permance metrics to watch out for, apart from bandwidth consumption and latency? Lekkie. - Get your email and more, right on the new Yahoo.com