On 02/24/2015 05:47 AM, Nat P wrote:
>
>
> Il giorno martedì 24 febbraio 2015 14:35:58 UTC+1, Richard ha scritto:
>
> I'n my simulation, I have three nodes, a client, a gateway and the
> server. The nodes are linked using the PointToPointHelper.
>
> I can set a constant delay on any of these links using the
> setChannelAttribute() method, is it possible to add variable delay
> to these links?
>
> Ideally I want to replicate the delay properties I have set in a
> real world testbed, using netem;
>
> |
> tc qdisc change dev eth0 root netem delay 80ms15msdistribution normal
> |
>
> Should I be looking at using a queue? Or a different type of link to achieve this?
>
> Thanks in advance,
>
> Richard
>
There is a capability that provides this kind of delay variance in ns-2
called DelayBox:
http://www.isi.edu/nsnam/ns/doc/node247.html
A while ago, Matt Crinklaw worked on porting this to ns-3. Michele
Weigle's group was maintaining this until recently:
https://code.google.com/p/tmix-ns3/
It should work with ns-3.21 or later (probably). However, I haven't
tested or used the DelayBox aspect of this, only Tmix; I don't know how
ready it is.
If you try to use this and learn anything about it, can you report back
what you find?
One idea that I had a while back was to move the DelayBox into the
device instead of being a separate node in the simulation; then it would
be more like netem. This might make a good Google Summer of Code
project idea.
- Tom