[ns] Simulating a C++ program in NS2

2014-01-08 Thread rania
Hi.. I'm new to NS2, and i was woundering how can i simulate a C++ framework in NS2. i've already simulated my framework using TCL (network topology, agents), but i dont know how to integrate my C++ files in NS2! Can someone please help me!! best Regards. rania -- View this

[ns] transmitting user data over TCP in NS2

2014-02-06 Thread rania
Hello I’ve developed a C++ security framework, and now I want to perform a simulation using NS2. My simulation will transmit user data over TCP (in the Application Layer) through using TcpApp class. And I’ve found the required source code to perform this (tcpapp.tcl, tcpapp.h, tcpapp.cc), which

Re: [ns] transmitting user data over TCP in NS2

2014-02-09 Thread rania
Thank u Mr.Rajeswari for your reply. but i was wondering how did you inherited the Appdata class to write your own fields in the data packet? And, did you define your packets and agent and thier OTcl linkage in separate files (.h and .cc)? BTW, i'm new to NS2 Best Regards -- View this me

[ns] make problem

2009-04-03 Thread Rania Kamal
hi all, i have a problem when typing make in ns-2.29 directory: Makefile:64: *** commands commence before first target. Stop. how can i solve it ? thanks

[ns] recompile problem

2009-04-03 Thread Rania Kamal
hi all   when i recompile ns2 to reflect changes that i made in ns2 files by typing make in ns2 directory appear to me the following:   Makefile:468: warning: overriding commands for target 'gen/' Makefile:465: warning: ignoring old commands for target 'gen/' Makefile:472: warning: overriding co

[ns] draw relationship between 2 things

2009-04-25 Thread Rania Kamal
hi all how can i draw a relationship between two things with a third fixed parameter, for ex, i want to compare between two protocols AODV,GPSR and take these matrixs, Packet delivery ratio, Overhead, Path length for Packet delievery ratio: i want adrawing with y axis = Packet delievery ratio 

[ns] extract data from trace output files

2009-04-25 Thread Rania Kamal
hi all i simulate gpsr protocol and i get trace o/p file how can i draw a relationship between packet delievery ratio and pause time thanks

[ns] trace graph

2009-05-13 Thread Rania Kamal
hi all i want to know detail steps of installation of "Trace graph-network simulator ns-2 trace files analyser" in windows i wait u thanks 

[ns] agent setting

2009-05-23 Thread Rania Kamal
hi all i want to know what these scripts line means:- for {set i 0} {$i < $opt(nn)} {incr i} { $ns_ at 0.2 "$ragent_($i) turnon" $ns_ at 20.0 "$ragent_($i) neighborlist" } $ns_ at 11.0 "$ragent_(0) startSink 10.0" $ns_ at 10.5 "$ragent_(99) startSink 10.0" $ns_ at 25.0 "$ragent_(24) sinklist"

[ns] Capture threshold

2009-05-29 Thread Rania Kamal
hi all i have a question about Capture threshold, i don't know what does it means? i found the following: "Phy/WirelessPhy set CPThresh_ 10..0", Capture threshold which determines the strength of the radio signal for capture to occur. thanks

[ns] what means these lines

2009-05-29 Thread Rania Kamal
Hi All i want to know what these lines means? proc usage { argv0 }  {  puts "Usage: $argv0"  puts "\tmandatory arguments:"  puts "\t\t\[-x MAXX\] \[-y MAXY\]"  puts "\toptional arguments:"  puts "\t\t\[-cp conn pattern\] \[-sc scenario\] \[-nn nodes\]"  puts "\t\t\[-seed seed\] \[-stop sec\] \[-t

[ns] Fw: DSR

2009-08-14 Thread Rania Kamal
hi all did anyone know how can i get DSR code for Broch et. al., or how can i modify the tcl script attached according to the following simulation parameters to get high packet delievery ratio, around 0.8 to 0.98   the simulation parameters: * simulations are for networks of 50, 112, and