LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change traffic from cbr to Pareto/exponential in ns2.35(ubuntu 12.04) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-traffic-from-cbr-to-pareto-exponential-in-ns2-35-ubuntu-12-04-a-4175522350/)

Nindu 10-16-2014 02:46 PM

How to change traffic from cbr to Pareto/exponential in ns2.35(ubuntu 12.04)
 
Hello everyone
i want to change traffic from cbr to pareto/ exponential
i have used the following code in my tcl file but no trace file is generated for this & the ouput is fatal error
Code:

                set p [new Application/Traffic/Pareto]
                $p set burst_time_ 500ms
                $p set idle_time_ 500ms
                $p set rate_ 200k
                $p set packetSize_ 512
                $p set shape_ 1.5
               
                #set e [new Application/Traffic/Exponential]
                #$e set packetSize_ 210
                #$e set burst_time_ 500ms
                #$e set idle_time_ 500ms
                #$e set rate_ 100k

i hv enable the pareto traffic & disable the cbr & exponential traffic
is this a right way to change traffic ???

thanx in advance :)

Nindu 10-17-2014 02:18 AM

plz someone help
i need it urgently :)
thanx in advance :)

knudfl 10-17-2014 03:34 AM

Post #2 marks your thread as answered : The thread goes invisible.
No answers : The thread is bumped several times (for days),
and the kept visible in "Zero Reply Threads" for a very long time.
Conclusion : Never never make an answer to your own "post #1".


Google .. ns2 [new Application/Traffic/Pareto] ..
https://www.google.com/webhp?hl=all&...ffic%2FPareto]

Google .. [new Application/Traffic/Exponential] ..
https://www.google.com/webhp?hl=all&...2FExponential]

-

Nindu 10-17-2014 04:21 AM

ok thanx for ur suggestion sir
but above post doesn't solve my problem

knudfl 10-17-2014 05:33 AM

Must be something ... lots of hits :

https://www.google.com/webhp?hl=all&...ffic%2FPareto]

https://www.google.com/webhp?hl=all&...2FExponential]

Nindu 10-17-2014 02:02 PM

thanx sir for ur reply :)
but i already read about pareto/exponential traffic generation on google but don't understand where m going wrong

Code:

if {$val(traffic) == "Node-UDP"} {
        for {set i 0} {$i < $val(nodes)} {incr i} {
                set udp($i) [new Agent/UDP]
                $ns attach-agent $node($i) $udp($i)
                set dest [expr round([$randomNode value])]
                while {$dest == $i} {
                        set dest [expr round([$randomNode value])]
                }
                set monitor($dest) [new Agent/LossMonitor]
                $ns attach-agent $node($dest) $monitor($dest)
                $ns connect $udp($i) $monitor($dest)
                set p [new Application/Traffic/Pareto]
                $p set burst_time_ 500ms
                $p set idle_time_ 500ms
                $p set rate_ 200k
                $p set packetSize_ 512
                $p set shape_ 1.5

for this simulation is done for 20 nodes but trace file is not generated
plz help :(

knudfl 10-17-2014 02:36 PM

← #6 .

May be attach your complete file.tcl ?

Must be named <file>.tcl.txt ,
i.e. suffix .txt is a must for "text files".

Nindu 10-19-2014 12:39 PM

1 Attachment(s)
attached aomdv.tcl file

knudfl 10-19-2014 03:24 PM

1 Attachment(s)
← #8 .

* Forgot to tell you that your (edited) file.tcl
cannot have the same name as an already existing file.
The file in post #8 is not "aomdv.tcl". See ``1aomdv.diff´´.
And furthermore, the file has DOS (Windows©) characters,
not usable as is in a Unix/Linux environment.
( Easily fixed with $ dos2unix :) )

When edited, no issues : $ ns aomdv-Nindu.tcl
.. The files ns.trc 213 MB, scenario.trc 1.5 kB are created.

Edited to include {Exponential and Pareto} :
$ ns aomdv-Pareto.tcl
OK, ns-P.trc 213 MB, scenario-P.trc 1.5 kB
-

Nindu 10-20-2014 10:12 AM

thanx sir for ur reply :)

in file ns aomdv-Pareto.tcl all traffics(cbr/pareto/exponential) are enabled & it gives the output for cbr traffic but i want to find output (using different parameters like pdf.awk, genthroghput.awk etc) for pareto traffic .
like i said in post no 1 .

plz help......

Nindu 10-25-2014 01:10 PM

plz reply sir...

cai 06-02-2017 02:01 PM

example TCL file for your problem
 
Quote:

Originally Posted by Nindu (Post 5259474)
plz reply sir...

You may find the sample tcl from below website useful to you

http://wpage.unina.it/arafatur.rahman/D2CARP.html


All times are GMT -5. The time now is 08:26 PM.