2014年1月3日 星期五

NS2 traffic files generated using VANETMobiSim(on Windows)

What is VanetMobiSim?
VanetMobiSim is tool of mobility modeling.
site:http://vanet.eurecom.fr/

Install VANETMobiSim & Generate a NS2 traffic files

1. Download VanetMobiSim sources and VanetMobiSim binaries
go to http://vanet.eurecom.fr/
download VanetMobiSim sources file
  (ex. VanetMobiSim 1.1 sources file and VanetMobiSim 1.1 binaries)

2. Downlaod CanuMobiSim
go to  http://canu.informatik.uni-stuttgart.de/mobisim/downloads/
download CanuMobiSim(ex. CanuMobiSim v1.3.4)

3 Download Apache Ant
go to http://ant.apache.org/bindownload.cgi
downloasd Apache Ant (ex. apache-ant-1.9.3-bin.zip )

4. Decompress apache-ant-x.zip to a folder
  ex. E:\VanetMobSim\ant

5. Set system variable
 (1) Add a variable "ant_home"




 (2) Add "%ant_home%\bin" to "PATH" variable



6. Decompress VanetMobiSim sources to a folder
    ex. E:\VanetMobSim\VanetMobiSim-1.1

7. Decompress CanuMobiSim, then copy "src" folder in CanuMobiSim_1_3_4_src to VanetMobiSim sources  folder
    ex. E:\VanetMobSim\CanuMobiSim_1_3_4_src
    copy E:\VanetMobSim\CanuMobiSim_1_3_4_src\src to E:\VanetMobSim\VanetMobiSim-1.1


8. open "Command Prompt" window(cmd.exe)
    (1) cd E:\VanetMobSim\VanetMobiSim-1.1
    (2) "ant patch" <enter>
9. copy VanetMobiSim binaries to sample folder in VanetMobiSim sources  folder
  copy VanetMobiSim-1.1.jar ex. E:\VanetMobSim\VanetMobiSim-1.1\samples

10. run java -jar VanetMobiSim-1.1.jar xmlfile.xml
  ex. java -jar VanetMobiSim-1.1.jar IDM_LC.xml

11. Generate NS2 traffic
  (1) modify configuration in "IDM_LC.xml"
    <!-- <extension class="de.uni_stuttgart.informatik.canu.mobisim.extensions.NSOutput" output="ns_trace.txt"/>-->
    remove <!-- ... --> ,as above
   

 (2) re-run java -jar VanetMobiSim-1.1.jar IDM_LC.xml
 (3) the ns_trace.txt is generated in the folder which is a NS2 NS2 traffic



沒有留言:

張貼留言