Skip to content

Improved Mobility Scenario Helper based on NS-2 trace files for NS-3 Network Simulator.

License

Notifications You must be signed in to change notification settings

ogbautista/Ns2MobilityHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

NS2 Mobility Helper

About

This is an update to the Ns2MobilityHelper class included in NS-3 Network Simulator to support 3D movement.

It implements the new statement:

   $ns at $time $node setdest x2 y2 z2 speed

so that 3D destinations are allowed.

For reference, the statement originally specified in NS2 trace files are:

   $node set X_ x1
   $node set Y_ y1
   $node set Z_ z1
   $ns at $time $node setdest x2 y2 speed
   $ns at $time $node set X_ x1
   $ns at $time $node set Y_ Y1
   $ns at $time $node set Z_ Z1

Update Procedure

Simply copy the files ns2-mobility-helper.h and ns2-mobility-helper.cc into the folder:

./src/mobility/helper/ns2MobilityHelper/

Bug Fix

This update also fixes a bug (existing at least in ns-3.29), where statements of type $ns at $time $node set ... set the specified node's coordinate during parsing of the ns2 trace file, overriding the initial coordinate set with $node set ..., which could also lead to the node deviating from the expected movement pattern.

About

Improved Mobility Scenario Helper based on NS-2 trace files for NS-3 Network Simulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages