Trace File In Ns2

What is a TRACE file? Every day thousands of users submit information to us about which programs they use to open specific types of files. 31 root directory. Analyze ns-2 trace file; NS-2 Tutorials. Las Vegas, Nevada USA Sandra Sendra. awk file ex = packet_lost. Ns-2 Trace Analyzer download | SourceForge. this blog will hep you in getting through NS2 and help you managing them. You might have better luck on a support forum or mailing list specific to that project. Trace Enabled Simple NS Simulation Script (modified from Example 3). An Introduction to NSAn Introduction to NS2An Introduction to NS2 • Ct t tj bCreate trace objects All NS2 OTcl f ll files. nam file, write nam in your login, it will pop up Nam Console, in that click on file option to run the nam file. Installing ns2 on Ubuntu is very easy and simple. Refer to RFC 1761, Snoop Version 2 Packet Capture File Format for details of the snoop capture file. txt) or view presentation slides online. Shiburaj P. (APP) Tool is a ns2 tracefile Analyser. Can I use an NS2 trace file with yarn for a simulation? How do I calculate average. Trace SOAP request/response using JAX-WS explains about how to trace the raw XML request and response usng java's in-bult JAX-WS implementation. Sundeep V 62,179 views. Whenever there is something new in the world, we try to analyse it first by examining it and in the process get to learn a lot of things. The important states are + which means a packet has been enqueued at a router, and r which means the packet has been received by its destination. e whether the packet is UDP or TCP. it is detected fault sensor node and whereas wireless sensor in my project i need yes i m getin d trace file. MOS calculation. We need to install ns-2. # create the nam and trace file: set tracefd. The best effort has been made to document correctly all of the trace formats, but be warned that this list is not complete, and may contain errors. NS2 is one of the best simulation tool used by majority of scholars today due to its highlighted features like support for OOPs concept, C++ programming fundamentals, real time emulation support etc. NS2 Mechanism 9. 10 ()Location: Netherlands ()Registed: 2013-09-12 (6 years, 46 days) Ping: 87 ms; HostName: web0081. Simulate Random MAC Protocol in NS2 (Part IV) Date Sun 15 December 2013 Category network Tags ns2 / mac / trace / python Now we have designed the simulator , add a new MAC protocol to NS2 , and implement the Random Resend MAC protocol , the final part will be analyze the trace file to measure the performance of our new protocol. For the throughput calculation of TCP, the NS-2 trace file will need to be examined by using a script or a programming language (e. awk file ex = packet_lost. Introduction#. Shiburaj P. code for trace file that used to generate xgraph in NS2 Good Afternoon to All, I'm using NS2. Filter out your information like if you want to trace all of the drop packets, just filter it out you will get all the drop packets. The information is based on NS2 version 2. trace file having output of [code ]ls -ltr[/code] command and you want the average size of the files. For the network topology it generates and the simulation scenario, refer to Figure 4 in the "Simple Simulation Example. tcl in the terminal. c in Dovecot 1. So, i think you need to use AWK script to analyze the trace file. Ns2 solution tech works mostly in the NS2 research area. It uses TCL as its scripting language, Otcl adds object orientation to TCL. nam w ns namtrace-all nf : ﻥﺎﻳﺎﭘ ﻝﺍﻭﺭ ﻒﻳﺮﻌﺗ proc finish global ns nf ns flush-trace Close the NAM trace file close nf Execute NAM on the trace file exec nam out. If the file appears in the \toIPA\failure folder, the file transfer did not work. The []Trace::format method defines the trace file format used in trace files produced by the Trace class. M2ANET Simulation in 3D in NS2 Nasir Mahmood, John DeDourek, Przemyslaw Pochec Faculty of Computer Science University of New Brunswick Fredericton, Canada e-mail: {nasir. And in order to get much more result we can get, we need to create a batch file under shell to initial the simulation under different situation. Trace files, in general, are usually logs produced by a program. Running NAM nam is a UNIX program and it is run as a command line. ns-2 Introduction mort (Richard Mortier) Credits Some of this material is based on, variously: ns-2 documentation UCB ns-2 tutorial workshop, June 1999 Kevin Fall, Kannan Varadhan, Polly Huang Mistakes are my own Disclaimer I ns-2 is not easy to use correctly IMO neither C++ nor OTcl are pleasant languages And neither is improved by smashing them together There is much documentation, not all. 31/tcl/wimax folder by typing ns l2handover. Note that you have to explicitly make tcl/test/test-all-poisson executable, as context diffs cannot reliably represent [. Xgraph is an X-Windows application that includes: Interactive plotting and graphing. trace file is then sent by the source node in the NS2 simulation environment to the receiver node. root-servers. ) Specific extension (DSR format) 39 Perl Script in Reading Trace. Download Network Simulator is a network simulator in the world, but lacks in ways of analyse its trace files. Topology Description Network consists of 4 nodes (n0, n1, n2, n3). What typical functions are needed in order to extract useful data from trace files (think in terms of getting values from some text columns, sorting of strings, etc. Options: -[p/f] packet or frame mode -s. awk scripts for analysis of trace files in ns2; Step by step installation of ns-2. Zero is the default for a clean exit. In this section, I will show you a simple way how you can create output files in your Tcl scripts which can be used as data sets for xgraph. The INSIGNIA trace files will be written to the directory result/ (-ins_dir). 27 i m doing on ns2. Each line is a NAM event. Ns2 Tutorial For Wireless Sensor Networks Pdf NS2. tr extension) in recording of the simulation data. You cannot give your trace file as a direct input to Xgraph. The third system (the snoop system) checks all the intervening traffic, so the snoop trace reflects what is actually happening on the wire. Ns2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless networks. tcl' is the name of a nam trace file that was generated by ns, Sample Output for NAM like this :. 0 Post navigation Previous post OBS Network in NS2. I am seeing many of the following error ("soc nnn error - operation=5, ntresnt[0]=517, ntresnt[1]=54") in my Listener trace file. host port: sends the RTP packets to specified host and UDP port the MPEG4 video file to be transmitted the generated trace file. Related Posts to : NS-2 and Trace file Trace soap message - program to read trace files - Encrypt/Decrypt a file from source file to target file. You must add your logging file on the classpath. The trace file obtained is simple. There will be three output files: mobility file, activity file and config file. com/file/4wynfo3o3cazr9e/aodv. 1 0 2 tcp 40 ------- 1 0. There are two primary but distinct types of monitoring capabilities currently supported by the simulator. h) files of your ns2 distribution. However, I failed to adopt them in NS 2. NS2: Course for beginners Tool Command Language is used to create scenario code in ns2, AWK is a data driven programming language used to analysis trace file, and Xgraph/gnuplot is used to generate graph for results (2 and half hours). The scenario. Các bạn có chia sẻ hay thảo luận nào thì đóng góp qua chủ đề này nhé. I want to plot graph using xgraph tool. tcl file by typing the following syntax in the terminal: "ns [file name]. The []Trace::format method defines the trace file format used in trace files produced by the Trace class. NS2: How to add new routing protocol January 20, 2010 Article Writing routing protocol is fairly easy in NS2, but for beginners it seems very difficult. A TimeHandler, as name suggests, is an object created to manage time, and is defined in the common/timer-handler(. 1) Video Trace Files Generation. tr w]$ns trace-all $tracefdwhere,tracefd → file handle for test. 1 Mobile Node. There are two primary but distinct types of monitoring capabilities currently supported by the simulator. NS-2 can be obtained in two formats, one is All-at-once and other one is From-all-the-pieces. M2ANET Simulation in 3D in NS2 Nasir Mahmood, John DeDourek, Przemyslaw Pochec Faculty of Computer Science University of New Brunswick Fredericton, Canada e-mail: {nasir. Ns2 solution tech works mostly in the NS2 research area. And we can trace these records to evaluate the performance of special stuffs in our network, such as. uk:80 IP PROXY & PORT Online, IP Proxy and Port Online (Proxy Checker) tool shows about your IP Proxy and Port connect to Host is alive or die. The compiled C++ objects are made available to the Otcl interpreter and in this way, the ready-made C++ objects can be controlled from the OTcl level. Introduction to Network Simulator NS2 is a primer providing materials for NS2 beginners, whether students, professors, or researchers for understanding the architecture of Network Simulator 2 (NS2) and for incorporating simulation modules into NS2. Trace files Generating in NS2 5. For that, the main ns-2 simulation script will simply include that mobility scenario file (mobility trace file) in the appropriate location. 255 -It undefined -Il 24 -If 0 -Ii 0 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4. Ruiz While performing this task I faced a no. Network simulators are tools used to simulate discrete events in a network and which helps to predict the behaviours of a computer network. Welcome to LinuxQuestions. pdf), Text File (. The logical. OMNeT++ simulation programs possess a modular structure. Creation of Flooding Attack in NS2 AODV ??? Short Note on Flooding Attack : Malicious Node will create a more no of RREQ to a node, which is even doesn't exist in the network topology. A simple tool has been provided as part of this lab to analyze the trace files generated after simulation with ns2. Trace file in Trace file is written by an application for storing whole information in a network. Hence, it is good idea to get familiar with the trace file formats. 33 version by. How To Install and Run NS2 In Linux. Required 3 rd party tools. The compiled C++ objects are made available to the Otcl interpreter and in this way, the ready-made C++ objects can be controlled from the OTcl level. It eliminates the need to configure and run perl/awk scripts over the trace file. (APP) Tool is a ns2 tracefile Analyser. Design and Simulation of Vehicular Adhoc Network using SUMO and NS2 1211. Analyzing a SQL Trace File with SQL Statements 27 April 2010 8 Comments Written by Christian Antognini As of Oracle Database 11g the DBMS_SQLTUNE package provides the SELECT_SQL_TRACE function. The important states are + which means a packet has been enqueued at a router, and r which means the packet has been received by its destination. OpenCMIS will do the operation correctly and it can serve as your reference sample. awk file ex = packet_lost. For that, the main ns-2 simulation script will simply include that mobility scenario file (mobility trace file) in the appropriate location. ns-3's Ascii Trace file is somewhat similar to ns-2's trace file. 2 Old trace format. It is constructed to maintain backward compatibility with output files in earlier versions of the simulator (, ns v1) so that ns v1 post-processing scripts continue to operate. Implementing parser in python to read NS2 trace files to calculate link, network and average throughput for efficient parsing of trace files for least time and complexity. My research topic is about protocol and algorithm design, resource allocation and localisation in wireless sensor network, UAV network and Ad Hoc network. Phone-trace. AODV Simulation in NS2 (Complete Tutorial) - Duration: 12:20. trns → Simulator instance. There will be three output files: mobility file, activity file and config file. tr extension) in recording of the simulation data. The architect has drawn a beautiful sweeping curved edge to their building, You link the dwg file into your model and see its a Spline. Step 11) Run “make install” in the ns2. tcl file represents an example configuration file which users can build other scenarios from by following the instructions provided in the file. These are naming conventions used in trace file format of ns-2 where AGT represents application layer protocols and RTR represents routing protocols at network layer. 35(AODV) Step 1: Copy the file of aodv in the different folder name as taodv. 2> A simple example on ns2 which you have performed to test and understand how ns2 works This is all, Thank you very much and please let me know how I can help you in return. This means that everyone goes out and writes their own tools to parse through these files. txt) or view presentation slides online. The []Trace::format method defines the trace file format used in trace files produced by the Trace class. You will need to use the trace files calculation in many ns2 simulations. NS-2 is one of the most popular open source network simulators that widely used in research community, which generates trace file during the simulation experiment. nam w] $ns namtrace-all $nf. com/file/4wynfo3o3cazr9e/aodv. NS2 supports record application layer, routing layer, MAC layer and node movement those four types of data in difference layers. Example 4 is the same OTcl script as the one in the "Simple Simulation Example" section with a few lines added to open a trace file and write traces to it. Its input is an nsts NS-2 Trace Statistics is a tool for easy generation of summary statistics from RPI NS-2 Graphing and Statistics Package Graphing and statistics framework for the NS-2 discrete event simulator. please give a manual for changig the files in ns2. The duplex links between n0 and n2, and n1 and n2 have 2 Mbps of bandwidth and 10 ms of delay. This tool provides an easy way to fulfil this exhaustive task allowing users to trace graphics. The C source file to calcualte delay can be downloaded here: To use this C code:. 1 0 2 tcp 40 ------- 1 0. 3 kB or 85% of the original size. Network Simulator 2 (ns2) is a very popular network simulation software. leach source code ns2; Tcl script for create Multicast network ns2; TCL script for UDP communication ns2; TCL script for TCP communication between nodes; Energy Model for Mobile Nodes ns2; data transfer between nodes using TCP in ns2; Wired Network in ns2; output for wireless network xgraph; reno tcl scripts; olsr xgraph; aodv xgraph ns2; drop delay awk. 5, October 2014 DATA MINING OF NS-2 TRACE FILE Ahmed Jawad Kadhim IRAQ- Ministry of Education- General Directorate of Education in Qadisiyah- Ibn al Nafis School for Boys ABSTRACT Data mining is important process to extract the useful information and pattern from huge amount of data. Description. Generally, trace data is either displayed directly during execution of the simulation, or (more commonly) stored in a file to be post-processed and analyzed. WHERE: the node where the action happened. The jitCompilationStart managed debugging assistant (MDA) is activated to report when the just-in-time (JIT) compiler starts to compile a function. You are currently viewing LQ as a guest. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Nam is also needed to install. Tracking the file object is used to specify the Trace file (with. All three windows are shown in the figure (next page). Ns is a discrete event simulator targeted at networking research. nhưng mà khi mình copy qua thư viện của ns2 để chạy lệnh lại ko được , bạn giúp mình với , có phải khi chạy nam mình gõ lệnh ns tenfile. # Set up trace file $ ns_ use-newtrace set tracefd [open simple. A simple tool has been provided as part of this lab to analyze the trace files generated after simulation with ns2. These are naming conventions used in trace file format of ns-2 where AGT represents application layer protocols and RTR represents routing protocols at network layer. Unlike other simulation tools, the users have to learn the TCL scripting for topology definition, and AWK scripts for analyzing the trace files. Want more detail? See which nameservers are failing. 1st phase: I assume that you already installed NS2. This script is modified from Elmurod website. 33 with the edited files when i run my TCL code i get the following errors: invalid command name "Agent/CPUMA". data received from Local Authorities regarding vehicle removals and relocations will be processed and stored on the TRACE. In addition to its own format, NS2 also has the Nam trace format, which contains the necessary information from the simulation to drive the Nam visualizer. [email protected] awk, perl, java, c/c++ or matlab). An Introduction to NSAn Introduction to NS2An Introduction to NS2 • Ct t tj bCreate trace objects All NS2 OTcl f ll files. Các bạn có chia sẻ hay thảo luận nào thì đóng góp qua chủ đề này nhé. Ros Pedro M. Zero is the default for a clean exit. The information is based on NS2 version 2. and this is trace file s -t 0. 34 and AODV. kindly guide me. DVMRP: Distance Vector Multicast Routing Protocol The growing multimedia demands on today’s Internet for efficiently providing services for tasks such as videoconferencing, news tickers, interactive games, file distribution, radio broadcasting is constantly growing. Here is a sample of trace file from NS2 (However ns2 supports a new type of trace file also), but this post will make you understand the old trace format only. Program Language: Java | C | NS2 (. Nam is also needed to install. Tracking the file object is used to specify the Trace file (with. cc(3) Add this function in CMU-Trace. The trace file has then been used to calculate the average end -to-end delay of the packets during the simulation via a PERL script Avgdelay. The acronym pcap (usually written in lower case) stands for packet capture, and is actually an API that includes the definition of a. In the near future, smart cars will be there on the roads, so we need to. Trace File in NS2. At least one people in each group must hav e an account on the CS department UNIX servers. However, I failed to adopt them in NS 2. General instructions: 1. The logical. • Start Exceed on the machine at your desk. In order to generate a trace file. Here the ns is an executable program obtained by compiling the entire NS2 code using "make" utility and the. Trace graph is a good application that comes very easy to NS2 user. Create a web page and in aspx file at header, write the tag Trace="false". The working set size increases for a program that is already in native image format because mscorjit. I have a simple tcl code of two nodes that send packets to each other. Visualizing Network Activities in NS. Creation of Flooding Attack in NS2 AODV ??? Short Note on Flooding Attack : Malicious Node will create a more no of RREQ to a node, which is even doesn't exist in the network topology. txt) or view presentation slides online. Generally, trace data is either displayed directly during execution of the simulation, or (more commonly) stored in a file to be post-processed and analyzed. 11016 2 3 tcp 40 ------- 1 0. Use and complete the template provided. 5 Applications objects An application object may be of two types, a traffic generator or a simulated application. The file is listing descriptions of about 10,000 packets. In the near future, smart cars will be there on the roads, so we need to. The important states are + which means a packet has been enqueued at a router, and r which means the packet has been received by its destination. The second field is telling the time at which the event occurs. Trace files and Description in nS2 11. In order to validate my simulation, I need to compare it to similar simulations. Welcome to LinuxQuestions. The []Trace::format method defines the trace file format used in trace files produced by the Trace class. This blog is helpful to people who really started their carrier as a Salesforce Developer to became SME in Salesforce Development. The Network Simulator (NS2) This blog will help to tell about the network simulator ns2 which proves to be very helpful in simulating networks environments. The INSIGNIA trace files will be written to the directory result/ (-ins_dir). NS2: Course for beginners Tool Command Language is used to create scenario code in ns2, AWK is a data driven programming language used to analysis trace file, and Xgraph/gnuplot is used to generate graph for results (2 and half hours). pdf), Text File (. properties file here. Simulator Description. Hello, I have implemented LEACH protocol in ns2. C is stand-alone application based on C, but does not require this module to operate. 35, it runs well. The trace file would look like this. プロジェクト概要; 開発ダッシュボード. nam w] $ns namtrace-all $nf. Following is a list of functionalities provided by the Trace Analysis tool:. SUMO is Simulation of Urban MObility. Tools for Generating TCL Scripts for NS2 4. awk then run for any trace file which is in output of any tcl file in ns2. Query Refused : This can be caused due to security relatd options in configuration file. IP Server: 23. 04LTS NS2-nam TRACE trace trace TRACE NS2 NS2 ns2 ns2 NS2 NS2 NS2中最全的无线Trace格式--较易理解 2012-01-06 layer action header application 路由器 stream 无线. Petach Tikva 49170 Israel Tel Aviv Tel Aviv Israel. プロジェクト概要; 開発ダッシュボード. You can generate your own table by running nam -p. ppt), PDF File (. In ns2, C++ is used for detailed protocol implementation and Otcl is used for the setup. AODV Simulation in NS2 (Complete Tutorial) - Duration: 12:20. CMU is the extension of NS2 to provide wireless network support. I have a created a wireless trace in NS2 which is of the format as given below: s 0. Code for closing opened trace file upon termination: Below is a set of code for NS2 Trace file format for closing file upon termination. The best effort has been made to document correctly all of the trace formats, but be warned that this list is not complete, and may contain errors. 2007 3 S-38. Calculate Routing Performance Metric from trace file; Summary of ns-2 bugs for wireless simulation. thx in advance :) March 15, 2013 at 8:41 PM. Can I also call you on phone if I am stu. It simply simulates a network, and provides a trace file of all the events that occured. Trace Files Generated in NS2 NS2 currently supports a number of different types of trace files. The bonnmotion-ns2-example. A simple tool has been provided as part of this lab to analyze the trace files generated after simulation with ns2. The file is listing descriptions of about 10,000 packets. If you have followed all the previous steps, then you can execute a. The below tcl script shows the code for creation of six nodes in the network. Unlike other simulation tools, the users have to learn the TCL scripting for topology definition, and AWK scripts for analyzing the trace files. Hello Sir good morning thanks for the information here. i have created a. of Information and Communications Engineering University of Murcia December, 2004. tcl file represents an example configuration file which users can build other scenarios from by following the instructions provided in the file. and this is trace file s -t 0. The important states are + which means a packet has been enqueued at a router, and r which means the packet has been received by its destination. AODV Simulation in NS2 (Complete Tutorial) - Duration: 12:20. OliOutline • An example of trace file. Tracegraph is a great application that comes handy to ns2 users. 7 of the ns2 manual. )-Introduction to Network Simulator NS2-Springer US (2012)': A trace file is a text file which collects all trace strings throughout the simulation. hii pushpita, this is deepti, will you please help me out, i need to implement LEACH for my project purpose, but all the files those i got frm google search r in ns2. tr w]$ns trace-all $tracefdwhere,tracefd → file handle for test. The trace characteristics for two or more components of an Interchange are controlled by different parameters in the same configuration file. The duplex links between n0 and n2, and n1 and n2 have 2 Mbps of bandwidth and 10 ms of delay. Where to Run NS2 Our department unix server - eustis. From those data, we could use a program to calculate the average throughput or mean value of end-to-end delay of the flow. Tools Supported by Evalvid in Ns2 Framework. Trace files, in general, are usually logs produced by a program. You might have better luck on a support forum or mailing list specific to that project. An AWK script example to analyze the trace and calculate throughput. To node field gives you the the output node at which the event occurs. And we can trace these records to evaluate the performance of special stuffs in our network, such as. Shiburaj P. I am assuming that your out. 04 1 Introduction. All of them are discrete-event network simulator, primarily used in research[4] and teaching. Ok, the prerequisite is Ubuntu 10. Protocol changes were made by extending original NS2 code in C. ca Abstract— number of projects that match the M2ANET model have In this paper, the enhancements to the ns2 source. tr) and visualization (*. Generally the simulated networks have entities like links, switches, hubs, applications, etc. ) IP Trace; 37 Trace file format (cont. Read the ns2 trace file and configure the movement patterns of all nodes contained in the global ns3::NodeList whose nodeId is matches the nodeId of the nodes in the trace file. To run this simulation, download "ns-simple. A text file with commands for such node location initialization and movements is called as ns-2 mobility trace file. NS2 supports record application layer, routing layer, MAC layer and node movement those four types of data in difference layers. Step2: Convert the traffic data file into actual/destination trace file format. The ns-3 tracing system is built on the concepts of independent tracing sources and tracing sinks, and a uniform mechanism for connecting sources to sinks. h PT_OLSR not defined and in cmu-trace. This lab is to be done in groups of two students 2. Understand relation between delay, throughput and loss rates. C is stand-alone application based on C, but does not require this module to operate. Read the ns2 trace file and configure the movement patterns of all nodes contained in the global ns3::NodeList whose nodeId is matches the nodeId of the nodes in the trace file. 33 * - expected output: example prints out messages generated by each read line from the ns2 movement trace file. Each packet can be in a different state. The trace file is given as input file to xgraph to plot the graph. 2)Is the Trace file db's level or Table level or else server level. 1 ns-2 Tutorial Exercise Multimedia NetworkingGroup, The Department of Computer Science, UVA Jianping Wang Partly adopted from Nicolas’s slides. OpenCMIS will do the operation correctly and it can serve as your reference sample. NS2 Programs Network Simulator is a piece of hardware or software that simulates and predicates the behavior of a network without the presence of an actual network. While we do not yet have a description of the TRACE file format and what it is normally used for, we do know which programs are known to open these files. In order to run and install NS2 you need a PC with a C++ compiler and UNIX operation system (FreeBSD, Linux, SunOS, or Solaris). nam w] $ns namtrace-all $nf. This file is used to record the packets and compute the following metrics – Number of data packets sent. tr - which contains a record for every packet arrival, departure and queue event, and a file sim. Understand relation between delay, throughput and loss rates. Trace files and Description in nS2 11. Generate trace file in NS2,OTCL Script reuired. › C++ defines the internal mechanism of the simulation objects › › Used when dealing with a packet Used when need to modify existing NS2 modules. tr" will keep the sending or receiving time, "s'" or "r" label and, node's MAC address. trace file format:. of packets received). 151 Owner is Bezeq International, Israel. Here all 2014 Network Simulator NS2 Projects are available with Source code, Documentation and Execution/Explanation Support. tcl file by typing the following syntax in the terminal: "ns [file name]. The Network Simulator (NS2) This blog will help to tell about the network simulator ns2 which proves to be very helpful in simulating networks environments. Advantage and Disadvantage of NS2 7. プロジェクト概要; 開発ダッシュボード. cc is the above taken from the ns2. For the network topology it generates and the simulation scenario, refer to Figure 4 in the "Simple Simulation Example. NS2 Wireless Trace Format. Can I also call you on phone if I am stu. All of them are discrete-event network simulator, primarily used in research[4] and teaching. [ns] Adding comments to the trace file Reza Karimi. tcl file is an input configuration file of executable ns file. Trace files are stored in the Automatic Diagnostic Repository (ADR), in the trace directory under each ADR home. The entire template must be completed. Setup trace support in ns-2 by opening file test. Read the ns2 trace file and configure the movement patterns of all input objects. Example 4 is the same OTcl script as the one in the "Simple Simulation Example" section with a few lines added to open a trace file and write traces to it.