[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] pagePool/WebTraf - about parameters



On Tue, 7 Aug 2001, Sergio Andreozzi wrote:

> Thanks for the answer, just two more clarifications...
>
>
> > $objSize means the size of web object (like a image or text, icon, etc) in
> > the unit of packet,
>
> what about size of packets composing an object?
They are 1K Bytes.

>
> In this model there is any relation between each page and the number of sent
> objects? It seems is not possible to configure a variable for number of
> objects in a page!
Each page contains several objects. You can change the number of
objects in a page by configuring the variable $pageSize.

-chen xuan

>
> > > # Create sessions
> > > $pool set-num-session $numSession
> > > set launchTime 0
> > > for {set i 0} {$i < $numSession} {incr i} {
> > > 	set numPage [$sessionSize value]
> > > 	puts "Session $i has $numPage pages"
> > > 	set interPage [new RandomVariable/Exponential]
> > > 	$interPage set avg_ 15
> > > 	set pageSize [new RandomVariable/Constant]
> > > 	$pageSize set val_ 1
> > > 	set interObj [new RandomVariable/Exponential]
> > > 	$interObj set avg_ 0.01
> > > 	set objSize [new RandomVariable/ParetoII]
> > > 	$objSize set avg_ 12
> > > 	$objSize set shape_ 1.2
> > > 	$pool create-session $i $numPage [expr $launchT$pageSizeime + 0.1]
\
> > > 	$interPage $pageSize $interObj $objSize
> > > 	set launchTime [expr $launchTime + [$interSession value]]
> > > }
>
>
> Thanks,
>
> 	Sergio
>

-- 
Xuan Chen
USC/ISI