[ns] mobile ipv6 simulation

2009-08-14 Thread Oladapo Oluwadiya

i tried running the mobile ipv6 scenario i ran for the mobile ipv4 using the

scripts below but i got an error "segmentation fault (core dumped)"when i tried

running the simulation.what do u think is the problem

thanks





# Basic Mobile IPv6 example without using ns-topoman

# Needs proc defined in file proc-mipv6-config.tcl



Agent/MIPv6/MN set bs_forwarding_     0



proc log-mn-movement_no_topo { } {

  global logtimer ns

  Class LogTimer -superclass Timer

  LogTimer instproc timeout {} {

         global mobile_

        $mobile_ log-movement

        $self sched 1

  }

  set logtimer [new LogTimer]

  $logtimer sched 1

}





# Create Topology



proc create-my-topo {} {

  global ns opt topo mobile_ cn_ mnn_nodes_



  # Create and define topography

  set topo        [new Topography]

  #   set prop        [new $opt(prop)]

  #   $prop topography $topo

  $topo load_flatgrid 1500 1500





  # god is a necessary object when wireless is used

  # set to a value equal to the number of mobile nodes

  create-god 5



  # Call node-config

  $ns node-config \

        -addressType hierarchical \

         -agentTrace ON \

         -routerTrace ON



  # Set NS Addressing

  AddrParams set domain_num_ 5

  AddrParams set cluster_num_ {4 1 1 1 1}

  AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 }



  # Create Nodes

  set cn_ [create-router 0.0.0]

  set router1_ [create-router 1.0.0]

  set router2_ [create-router 2.0.0]

  set router3_ [create-router 3.0.0]

  set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0]

  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 mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01]

  $bs1_ random-motion 0

  $bs2_ random-motion 0

  $bs3_ random-motion 0

  $bs4_ random-motion 0



  # Position (fixed) for base-station nodes (HA & FA).

  $bs1_ set X_ 250.

  $bs1_ set Y_ 1050.

  $bs1_ set Z_ 0.



  $bs2_ set X_ 950.

  $bs2_ set Y_ 1050.

  $bs2_ set Z_ 0.



  $bs3_ set X_ 950.

  $bs3_ set Y_ 300.

  $bs3_ set Z_ 0.



  $bs4_ set X_ 250.

  $bs4_ set Y_ 300.

  $bs4_ set Z_ 0.









  # Create Links

  $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail

  $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail

  $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail

  $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail

  $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail

  $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail

  $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail



  $ns duplex-link-op $cn_ $router1_ orient down

  $ns duplex-link-op $router1_ $router2_ orient left-down

  $ns duplex-link-op $router1_ $router3_ orient right-down

  $ns duplex-link-op $router2_ $bs1_ orient left-down

  $ns duplex-link-op $router2_ $bs2_ orient right-down

  $ns duplex-link-op $router3_ $bs3_ orient down

  $ns duplex-link-op $router3_ $bs4_ orient right-down



  # movement of the MH

  $mobile_ set Z_ 0.

  $mobile_ set Y_ 1000.

  $mobile_ set X_ 250.



  # MH starts to move towards FA1

  $ns at 10. "$mobile_ setdest 950.

1000. 20."

  # MH move from FA1 towards FA2

  $ns at 50. "$mobile_ setdest 950.

350. 20."

  # MH move from FA2 towards FA3

  $ns at 85. "$mobile_ setdest 250.

350. 20."





  display_ns_addr_domain

}





# End of Simulation



proc finish { } {

  global tracef ns namf opt mobile_ cn_



  puts "Simulation finished"

  # Dump the Binding Update List of MN and Binding Cache of HA

  [[$mobile_ set ha_] set regagent_] dump

  [$cn_ set regagent_] dump

  [$mobile_ 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 mobile_ cn_

   # Source Files

   # source set-def-options.tcl

   # set BASEDIR to your own correct path

   source 

/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl

   source  /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl

   source  /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/pro

[ns] Mobile IPv6

2009-02-19 Thread Syed Faraz Hasan

Hi everyone!

I am looking to implement MIPv6 in NS-2. I have seen a few posts and they say I 
need to install MobiWan (which works only with NS-2.1b6). Can I not use Mobiwan 
(or anything else in NS-2) for implementing MIPv6?

Your help will be, as always, highly appreciated

Faraz


[ns] Mobile IPv6

2006-03-19 Thread Mohammed Abu-Khadra

Hi all,

iam ns-2.29-allinone user cygwin/windows-XP-SP2 .. i want the MIPv6 source
code i went to the "Mobiwan 2.26 website " http://www.ti-wmc.nl/mobiwan2/

but it runs only for ns-2.26 ... is their any sources for the mipv6 in
ns-2.29 ?!?! ... please anything would be helpful for me !! iam stuck at
this point :(

thanx in advance ..


Re: [ns] mobile IPv6

2006-03-14 Thread shayma sinan

  Mobile IPv6 extension for the NS simulator 
  http://www.ti-wmc.nl/mobiwan2/
   
   
   
  
--

Message: 1
Date: Mon, 13 Mar 2006 00:02:09 +0300
From: "Mohammed Abu-Khadra" 
Subject: [ns] mobile IPv6
To: Ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hi all,
i have a project on "QoS provision in mobile IPv6" .. so i need help if any1
can tel me how to start or where to start from .. i need the source code for
mobile ipv6 .. any helpful links will great please

thanx in advance ...


--




-
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre.


[ns] mobile IPv6

2006-03-12 Thread Mohammed Abu-Khadra

Hi all,
i have a project on "QoS provision in mobile IPv6" .. so i need help if any1
can tel me how to start or where to start from .. i need the source code for
mobile ipv6 .. any helpful links will great please

thanx in advance ...


[ns] mobile IPv6

2006-03-10 Thread Mohammed Abu-Khadra

Hi all,
 please i need help on mobile IPv6 urgently .. if anyone has the source code
.. or any helpfull links i'll be very thankful !!!

thanks