[ns] how to get used-bandwidth of a wireless node in ns

2008-03-24 Thread uglystone

Hi everyone,

I am trying to add admission control mechanism in dsr ,so I need to know
a node's bandwidth which has occupied at any moment. here ,there is a
method. in dsr, enable every flow to carry occupied bandwidth by itself.
we can compute a node's bandwidth which has occupied through integrating
all flows' occupied bandwidth which pass through the node. 
But,I don't know any better one,so I would like to get some advice.
thanks!

 zhaojunmin



Re: [ns] how to get used-bandwidth of a wireless node in ns

2007-08-26 Thread Arturo Servin


I do not know if carrying a bandwidth value inside the flow is the
best solution. Bandwidth as I see is data_transmitted/time. And time is
relative, are you going to measure the bandwidth in the last second, the
last minute, the last hour? So that why I think is not the best way. I
would suggest then to use the bytes transmitted by the flow. Get that
number and divided by the time life of the flow. You can also do some
more complex things such as getting the bandwidth in the last second,
minute, etc. if you wanted.

Regards,
-as

Zhao Junmin wrote:
> Hi everyone,
>
> I am trying to add admission control mechanism in dsr ,so I need to know
> a node's bandwidth which has occupied at any moment. here ,there is a
> method. in dsr, enable every flow to carry occupied bandwidth by itself.
> we can compute a node's bandwidth which has occupied through integrating
> all flows' occupied bandwidth which pass through the node.
> But,I don't know any better one,so I would like to get some advice.
> thanks!
>
> zhaojunmin
>
>   



[ns] how to get used-bandwidth of a wireless node in ns

2007-08-24 Thread Zhao Junmin

Hi everyone,

I am trying to add admission control mechanism in dsr ,so I need to know
a node's bandwidth which has occupied at any moment. here ,there is a
method. in dsr, enable every flow to carry occupied bandwidth by itself.
we can compute a node's bandwidth which has occupied through integrating
all flows' occupied bandwidth which pass through the node.
But,I don't know any better one,so I would like to get some advice.
thanks!

zhaojunmin