UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
################################################################
# End of Simulation
################################################################
proc finish { } {
global tracef ns namf opt mr_ mn_ cn_
puts "Simulation finished"
# Dump the Binding Update List of MN and Binding Cache of HA
[[$mr_ set ha_] set regagent_] dump
[[$mn_ set ha_] set regagent_] dump
[$cn_ set regagent_] dump
[$mr_ set regagent_] dump
[$mn_ set regagent_] dump
$ns flush-trace
flush $tracef
close $tracef
close $namf
#puts "running nam with $opt(namfile) ... "
#exec nam $opt(namfile) &
exit 0
}
################################################################
# Main
################################################################
proc main { } {
global opt ns TOPOM namf n tracef mr_ cn_ mn_
# Source Files
# source set-def-options.tcl
# set BASEDIR to your own correct path
source /home/ns2/ns-2.28/tcl/lib/proc-mipv6-config.tcl
source /home/ns2/ns-2.28/tcl/lib/proc-tools.tcl
source /home/ns2/ns-2.28/tcl/lib/proc-topo.tcl
source /home/ns2/ns-2.28/tcl/lib/ns-topoman.tcl
source /home/ns2/ns-2.28/tcl/lib/proc-mobi-global.tcl
source /home/ns2/ns-2.28/tcl/lib/proc-mobi-config.tcl
source /home/ns2/ns-2.28/tcl/mobility/timer.tcl
set NAMF out.nam
set TRACEF out.tr
set INFOF out.info
set opt(mactrace) ON
set opt(NAM) 1
set opt(namfile) $NAMF
set opt(stop) 200
set opt(tracefile) $TRACEF
#>--------------- Extract options from command line ---------------<
#Getopt ; # Get option from the command line
#DisplayCommandLine
#>---------------------- Simulator Settings ----------------------<
set ns [new Simulator]
#>------------------------ Open trace files ----------------------<
exec rm -f $opt(tracefile)
set tracef [open $opt(tracefile) w]
#... dump the file
$ns trace-all $tracef
set namf [open $opt(namfile) w]
$ns namtrace-all $namf
#>------------- Protocol and Topology Settings -------------------<
create-my-topo
$ns at 0.0001 "log-mn-movement_no_topo"
$ns at 0.0001 "set-cbr"
#>----------------------- Run Simulation -------------------------<
$ns at $opt(stop) "finish"
$ns run
$ns dump-topology $namf
close $namf
#puts "running nam with $opt(namfile) ... "
#exec nam $opt(namfile) &
}
proc set-cbr { } {
global ns mn_ cn_
set udp1 [new Agent/UDP]
$ns attach-agent $mn_ $udp1
set dst1 [new Agent/Null]
$ns attach-agent $cn_ $dst1
$ns connect $udp1 $dst1
set src1 [new Application/Traffic/CBR]
$src1 set packetSize_ 1000
$src1 set rate_ 100k
$src1 set interval_ 0.05
$src1 attach-agent $udp1
$ns at 20.0 "$src1 start"
set udp2 [new Agent/UDP]
$ns attach-agent $cn_ $udp2
set dst2 [new Agent/Null]
$ns attach-agent $mn_ $dst2
$ns connect $udp2 $dst2
set src2 [new Application/Traffic/CBR]
$src2 set packetSize_ 1000
$src2 set rate_ 100k
$src2 set interval_ 0.05
$src2 attach-agent $udp2
$ns at 20.03 "$src2 start"
}
main
on MIH i had installed ,,,, if not how to simulate this
thanks
Last edited by fatma alzahra; 09-11-2014 at 05:06 AM.
Hello
I have installed Ns2.29 and Pmip patch following previous posts here
1) my question is how to do the following
===
"Rename the new executable 'ns' to a recognizable name e.g. ns-nist-pmipv6,
and copy "ns-nist-pmipv6" to /usr/local/bin/."
===
after search i found the following command but how to use it
"tar -cf ns-nist-pmip6result.tar /usr/local/bin/ns-nist-pmip6 /usr/local/lib/nistmob/ns-allinone-2.29/lib/ /usr/local/lib/nistmob/ns-allinone-2.29/bin"
===
also
2) is "pmip6-nistmob-ns-2.29-1.el5.x86_64.rpm" usable in ubuntu Or what and where i could get this executable??
thanks in advance
hello
i have installed ns2.29 and pmip patch following previous posts here
1) my question is how to do the following
===
"rename the new executable 'ns' to a recognizable name e.g. Ns-nist-pmipv6,
and copy "ns-nist-pmipv6" to /usr/local/bin/."
===
after search i found the following command but how to use it
"tar -cf ns-nist-pmip6result.tar /usr/local/bin/ns-nist-pmip6 /usr/local/lib/nistmob/ns-allinone-2.29/lib/ /usr/local/lib/nistmob/ns-allinone-2.29/bin"
===
also
2) is "pmip6-nistmob-ns-2.29-1.el5.x86_64.rpm" usable in ubuntu or what and where i could get this executable??
Thanks in advance
====
Quote:
fatma@ubuntu:/usr/src/ns-allinone-2.29/ns-2.29$ ns-nist-pmip6 pmip.tcl
invalid command name "agent/pmipv6"
while executing
"agent/pmipv6 set debug_ $opt(debug)"
(file "pmip.tcl" line 34)
please help me with this error after successfully installed ns2.29
Quote:
fatma@ubuntu:/usr/src/ns-allinone-2.29/ns-2.29$ ns-nist-pmip6 pmip.tcl
invalid command name "Agent/PMIPv6"
while executing
"Agent/PMIPv6 set debug_ $opt(debug)"
(file "pmip.tcl" line 34)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.