LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-05-2014, 12:21 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Ref. #15 .

Ns2 trace formats ...
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
 
Old 09-06-2014, 11:14 AM   #17
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
if you don't mind

please could you upload the trace file from running
ns-allinons2.29/ns2.29/tcl/hstng/wimax/handover-wifi-wimax/wifi-wimax.tcl

$ns-nistmob-wimax wifi-wimax.tcl doesn't work with me all my itaeration failed , beside my installation of ns2.29 seems ok.

thanks
 
Old 09-06-2014, 02:00 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 17.

Files in "ns2.29/tcl/hstng/wimax/handover-wifi-wimax/" after
$ 'ns-nistmob-wimax wifi_wimax.tcl 1 2 10' :
{ plot-distance.plt, handover.sh, plot-loss.plt, out.res,
wifi_wimax_nam.tcl, wifi_wimax.tcl }

The trace file is "out.res".
Uploaded as wifi_wimax.tcl-1-2-10__out.res.gz :
https://drive.google.com/file/d/0B7S...it?usp=sharing

The executable 'ns-nistmob-wimax' that I am using is from a
ns-2.29(.3) + ns-2.29-nist-mob-022707.tgz . No "pmip6-for-ns-2.29-nist.patch" !

-
 
Old 09-09-2014, 05:38 AM   #19
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
in simulating FHMIP in ns2.31 it worked fine but to simulate MIP i follow these steps
Quote:
# To simulate Mobile IP:
# classic handoff mechanism (miss 2 advertisement msg).
# Procedures: mip-reg.cc => block out MAP_MODE, FAST_HANDOVER, MAP_FAST_HANDOVER
# simula.tcl => block out 'priority' associated with all nodes,
# block out 'attach-mapagent'
i just do this and required changes in mip-reg.cc
Quote:
# RCH Attaching the MAP agent.
#$ns_ attach-mapagent $MAP ;# Need to enable MAP_MODE in mip-reg.cc
got this error
Quote:
8.024100 BS 3.1.0 forwarding map-reg-request from 1.0.1 to MAP 2.0.0, packet 35
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o35: no target for slot 0
_o35 type: Classifier/Port/Reserve
content dump:
classifier _o35
0 offset
0 shift
2147483647 mask
1 slots
slot 1: _o36 (Classifier/Addr/MIPDecapsulator)
---------- Finished standard no-slot{} default handler ----------
 
Old 09-11-2014, 04:50 AM   #20
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
is there tcl script for this

http://arxiv.org/ftp/arxiv/papers/1207/1207.2037.pdf

i found this
Quote:
# Basic Mobile IPv6 example without using ns-topoman
# Needs proc defined in file proc-mipv6-config.tcl

Agent/MIPv6/MR set bs_forwarding_ 0 ; # 1 if forwarding from previous BS
################################################################
proc log-mn-movement_no_topo { } {
global logtimer ns
Class LogTimer -superclass Timer
LogTimer instproc timeout {} {
global mr_ mn_
$mr_ log-movement
$mn_ log-movement
$self sched 1
}
set logtimer [new LogTimer]
$logtimer sched 1
}

################################################################
# Create Topology
################################################################
proc create-my-topo {} {
global ns opt topo mr_ cn_ lfn1_ lfn2_ mn_ mnn_nodes_

# Create and define topography
set topo [new Topography]
# set prop [new $opt(prop)]
# $prop topography $topo
$topo load_flatgrid 1600 800

# god is a necessary object when wireless is used
# set to a value equal to the number of mobile nodes
create-god 7

# Call node-config
$ns node-config \
-addressType hierarchical \
-agentTrace ON \
-routerTrace ON

# Set NS Addressing
AddrParams set domain_num_ 2
AddrParams set cluster_num_ {1 5}
AddrParams set nodes_num_ {1 1 1 1 1 2}

# Create Nodes
set cn_ [create-router 0.0.0]
set router_ [create-router 1.0.0]
set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0 24]
set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0]
set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0]
set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0]
set mn_ [create-mobile 1.4.1 1.4.0 610 200 0 0 0.01]

$mn_ setdest 1410 200 4

# Create Links
$ns duplex-link $cn_ $router_ 100Mb 1.80ms DropTail
$ns duplex-link $router_ $bs1_ 100Mb 1.80ms DropTail
$ns duplex-link $router_ $bs2_ 100Mb 1.80ms DropTail

$ns at 0 "add-nemo-to-topo"

display_ns_addr_domain
}

proc add-nemo-to-topo {} {
global mr_ lfn1_ lfn2_

clear_config

set lfn1_ [create-router 1.1.258]
set lfn2_ [create-router 1.1.259]

set mr_ [create-mobile-router 1.1.256 1.1.0 190 190 0 0 0.01]

lappend nodelist $lfn1_
lappend nodelist $lfn2_
create-mobile-network $mr_ 1400 200 0 24 26 100Mb 1ms $nodelist

$mr_ setdest 210 610 4

}

################################################################
# 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.
 
Old 10-26-2016, 04:57 AM   #21
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
PMIP exectable

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
 
Old 10-27-2016, 05:20 AM   #22
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatma alzahra View Post
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)
===
Quote:
i have sucessfully installed ns and the new patch
 
Old 10-27-2016, 05:22 AM   #23
fatma alzahra
LQ Newbie
 
Registered: Aug 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
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)
also
Quote:
I copy "ns-nist-pmipv6" to /usr/local/bin/
http://www.linuxquestions.org/questi...-a-4175463585/

Last edited by fatma alzahra; 10-27-2016 at 05:30 AM.
 
  


Reply

Tags
nist-mob, ns2, pmip6



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Flash Mob. dzaku General 9 06-20-2012 01:26 AM
a tgz that doesn't end in tgz flebber VectorLinux 3 05-03-2006 05:31 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 07:13 PM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration