[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] setdest related doubt
Hi All,
I have the following problem:
1. I have a situation where few nodes are
moving(adhoc) and few nodes are stationary(nothing
like base station or wired/wireless scenario).
If I want to use set dest can I say that out of total
20 nodes 5 are stationary and 15 are mving with
x,y,x.... parameters... ? Because its very easy to use
such readymade utility since god and such code gets
generated automatically...
2. Also can u by any chance specify the traffic
connections on your own using cbrgen ? If I want all
the nodes to have a cbr-udp connection to 1 perticular
node (something lie bases station) can I use some
utility ?
3. If I want to process the tracec files using
perl/awk something like for each packet send by agiven
node delay requored etc... can anyone provide me some
pointers ?
Regards,
-Sameer Tilak.
--- Vikram Kanodia <[email protected]> wrote:
> have a case statement in cnu-trace.cc for EXP
> traffic...
>
> -Vikram
>
> > Hi All,
> > I am trying to simulate Exponential Traffic in
> > wireless Environment.
> > The relevant code fragment is:
> >
> > set src0 [new Agent/UDP]
> > set sink0 [new Agent/UDP]
> > $ns_ attach-agent $node_(1) $src0
> > $ns_ attach-agent $node_(0) $sink0
> > $ns_ connect $src0 $sink0
> >
> > set expo [new Application/Traffic/Exponential]
> > $expo set packetSize_ 210
> > $expo set burst_time_ 500ms
> > $expo set idle_time_ 500ms
> > $expo set rate_ 200k
> > $expo attach-agent $src0
> >
> > $ns_ at 1.0 "$expo start"
> >
> > I am getting the following error:
> > (null)- invalid packet type (exp).
> > I am getting the same error with Pareto as well.
> >
> > The same thing works fine if I change the agent to
> > CBR...
> >
> > Please tell me do I need to make some changes
> during
> > the configuration of the ndoe itself ?
> >
> > Regards,
> > -Sameer.
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> >
> >
>
> --
>
> Department of ECE, Rice University | 713 348 3786
> (O)| 713 664 5650(H)
> WWW: http://www.ece.rice.edu/~kanodia
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/