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

Re: [ns] generating MMPP traffic (fwd)



I think you need to add something similar to the role of ~ns-2/expoo.cc

Kun-chan Lan

-----Original Message-----
From: Vineet Gupta <[email protected]>
To: [email protected] <[email protected]>
Date: Tuesday, June 06, 2000 1:02 AM
Subject: [ns] generating MMPP traffic (fwd)


>
>
>---------- Forwarded message ----------
>Date: Tue, 6 Jun 2000 13:25:09 +0530 (IST)
>From: Vineet Gupta <[email protected]>
>To: [email protected]
>Subject: generating MMPP traffic
>
>I have tried to genereate MMPP traffic in NS by adding a class
>MMPP_Traffic analgous  to EXPOO_Traffic .only one data member variable
>poisson_avg_ has been added to it to get the mean for the poisson process.
>I have made additions to the foll. files:
>
>1.~ns/tcl/lib/ns-default.tcl : here i have given default values for all
>the parameters (analogous to thos for Traffic/Expoo)
>
>2.~ns/tcl/lib/ns-default.tcl : here i have first declare dmy class as
>"Class Application/Traffic/MMPP" and then defined the instprocs for it in
>the same way as that for Traffic/Expoo(i.e.
>Application/Traffic/Exponential). One more procedure for poisson_avg_ has
>been added.
>
>3.~ns/packet.h : here i have made entry for my packet type PT_MMPP in teh
>enum defined there . i have also made the entry name_[PT_MMPP]="mmpp"
>
>4. ~ns/trace.h : here in the func. format() i have made entry for my
>packet type in the if-condition in line 213.
>
>There is no problem when i compile ns with my file included in the
>Makefil. But when i run a tcl script generating MMPP traffic  then it
>gives the foll. error 
>
>------------------------------------------------
>_o36:unable to dispatch method attach-agent
> while executing 
> "$traffic1 attach-agent $source1"
> (file "vin112.tcl" line40)
>-----------------------------------------------
>
>here vin112.tcl is the name of my tcl script
>traffic1 is the object Application/Traffic/MMPP
>source1 is the object Agent/CBR/UDP
>
>Can Anybody suggest me what to do???
>I think i have to make some more additions for my class either in the
>application, agent or trace classes or maybe in the above hierarchy.
>
>Plaease help me asap.
>
>Vineet
>