[ns] How can i install zrp into my ns2?

2010-05-16 Thread tiongsquare


i only manage to find ZRP for an older version of NS (NS2.1b9), i'm currently
using allinone-2.34, how do i install the zrp in? i'm quite new to ns2 but i
need it for my final yr project, thanks!
-- 
View this message in context: 
http://old.nabble.com/How-can-i-install-zrp-into-my-ns2--tp28579726p28579726.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] ns2 and netbeans or eclipse

2010-05-17 Thread tiongsquare


Hi, on the site tutorial u post, below there's a note: "Add those files to
your cvsignore, respectively delete them from your patchfile after creating
it", just wondering where is this patchfile? thanks!


Volker Richter wrote:
> 
> 
> Hello,
> 
> I'm using the eclipse IDE to make changes in the ns-2 sources.
> It works really well, but I recommend the newest eclipse C/C++
> version due to the improvements of the index system.
>  
> That is the tutorial which I have used:
> 
> http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
> 
> Best regards,
> 
> Volker
> 
> Rodrigo Palucci Pantoni schrieb:
>> Hello all,
>> Anybody there had tried to insert ns2 in netbeans or eclipse IDE for
>> debugging? Had it works? It is available a tutorial?
>>
>> Thanks.
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ns2-and-netbeans-or-eclipse-tp22710643p28586197.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Problem compiling ns-2.34 with eclipse Galileo under ubuntu

2010-05-17 Thread tiongsquare


Hi, im having the same problem as you now, did you manage to solve the
problem?


Albane Delos wrote:
> 
> 
> Hi all,
> 
> I am currently trying to make ns-2.34 work in Eclipse Galileo. Without
> Eclipse it works and compiles just fine but in Eclipse I have the
> following
> errors:
> 
> make all
> Building file: ../ns_tclsh.cc
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ns_tclsh.d"
> -MT"ns_tclsh.d" -o"ns_tclsh.o" "../ns_tclsh.cc"
> Dans le fichier inclus à partir de ../ns_tclsh.cc:28:
> ../config.h:60:19: attention : tclcl.h : Aucun fichier ou dossier de ce
> type
> (No file or directory)
> ../ns_tclsh.cc:34: erreur: ‘Tcl_Interp’ was not declared in this scope
> ../ns_tclsh.cc:34: erreur: ‘interp’ was not declared in this scope
> ../ns_tclsh.cc:35: erreur: expected ‘,’ or ‘;’ before ‘{’ token
> ../ns_tclsh.cc: In function ‘int main(int, char**)’:
> ../ns_tclsh.cc:52: erreur: ‘Tcl_Main’ was not declared in this scope
> make: *** [ns_tclsh.o] Erreur 1
> 
> I work with ns-2.34 under Ubuntu 9.04.
> The workspace for eclipse is ns-allinone-2.34. And the project directory
> is
> ns-2.34.
> I am guessing the compiler can't find the file tclcl.h because it is not
> actually in the project directory but I can't figure out how to resolve
> the
> problem. My environment variables LD_LIBRARY_PATH, and TCL_LIBRARY are
> well
> set. I have been looking everywhere but couldn't find anything that would
> have helped me.
> 
> Thanks for your time and answer.
> 
> Albane
> 
> 
> 
> -- 
> Albane Delos
> +34 693 902 686
> 
> Étudiante à l'INSA de Lyon, département Télécommunications, Services et
> Usages
> Étudiante à l'UPC Barcelona, ETSETB (Escola Tècnica Superior d'Enginyeria
> de
> Telecomunicacions de Barcelona)
> Étudiante à l'UPC Barcelona, Master of Science in Information and
> Communication Technologies
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-compiling-ns-2.34-with-eclipse-Galileo-under-ubuntu-tp26099324p28587102.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Can i use the same tcp script for diff implementation of a protocol?

2010-05-19 Thread tiongsquare


i mean example for different implementation fo aodv protocol, can i use the
same tcl script to run it? or each tcl script is specially made for a
particular implementation of aodv? thanks =)
-- 
View this message in context: 
http://old.nabble.com/Can-i-use-the-same-tcp-script-for-diff-implementation-of-a-protocol--tp28606970p28606970.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Getting this error when running tcl script

2010-05-19 Thread tiongsquare


"num_nodes is set 25
invalid command name "25"
while executing
"$val(nn)"
invoked from within
"$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-pr..."
"

anyone knows whats wrong? thanks!
-- 
View this message in context: 
http://old.nabble.com/Getting-this-error-when-running-tcl-script-tp28609173p28609173.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Got this error when running tcl script for zrp

2010-05-21 Thread tiongsquare


I manage to install zrp(made for ns2.19b) into my ns2.34 without any complie
errors but when i try the run the tcl script provide in its demo folder it
gives me the following errors:

ti...@tiong:~/demo$ ns demo1_rad2.tcl
num_nodes is set 22

(_o15 cmd line 1)
invoked from within
"_o15 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o15" line 2)
(SplitObject unknown line 2)
invoked from within
"_o15 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
$ns_ initial_node_pos $node_($i) 20
}"
(file "demo1_rad2.tcl" line 131)

anyone knows whats wrong? thanks =)
-- 
View this message in context: 
http://old.nabble.com/Got-this-error-when-running-tcl-script-for-zrp-tp28632768p28632768.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Segmentation fault while running zrp

2010-05-21 Thread tiongsquare


facing Segmentation fault when i run tcl script for zrp(2.19b) in ns2.34

anyone have a solution? thanks =)
-- 
View this message in context: 
http://old.nabble.com/Segmentation-fault-while-running-zrp-tp28636923p28636923.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] the recv() in routing protocol process one packet at a time or multiple?

2010-06-10 Thread tiongsquare


the recv() does it process one packet at a time and the rest queuing up
outside? or at one time multiple packets can access the recv()? hope someone
can clear my doubts, thanks!
-- 
View this message in context: 
http://old.nabble.com/the-recv%28%29-in-routing-protocol-process-one-packet-at-a-time-or-multiple--tp28844205p28844205.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] the recv() in routing protocol process one packet at a time or multiple?

2010-06-11 Thread tiongsquare



Thanks alot!!!



Teerawat Issariyakul wrote:
> 
> 
> 
> Hi,
> 
> NS2 is a single-thread program. It processes one thing at the time. This
> is also true for function recv() which process one packet at a time.
> 
> Best Regards,
> 
> Teerawat Issariyakul
> http://www.ns2ultimate.com/
> http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
> http://twitter.com/T_Bear
> http://www.t-issariyakul.blogspot.com
> http://www.ece.ubc.ca/~teerawat
> 
> 
> 
> 
> On 6/10/2010, "tiongsquare"  wrote:
> 
>>
>>
>>the recv() does it process one packet at a time and the rest queuing up
>>outside? or at one time multiple packets can access the recv()? hope
someone
>>can clear my doubts, thanks!
>>--
>>View this message in context:
http://old.nabble.com/the-recv%28%29-in-routing-protocol-process-one-packet-at-a-time-or-multiple--tp28844205p28844205.html
>>Sent from the ns-users mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/the-recv%28%29-in-routing-protocol-process-one-packet-at-a-time-or-multiple--tp28844205p28862469.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Strange problem with ns2 printf

2010-06-21 Thread tiongsquare


not sure if is ns2 problem or c++ issue,

i did a function call testingprint(); somewhere else

int ff2 = 0;
void
Myprog::testingprint()
{
if(ff2 == 0){
#ifdef DEBUG
fprintf(stderr, "I am from %d node TESTING \n", index);
#endif
printf("AT(%d) hello TESTING \n", index);
testingprint2();
ff2 = 1;
}
}

i notice that if my printf are within if else statements which are in a
function(testingprint()), only node 0 will be printed

I am from 0 node TESTING 
AT(0) hello TESTING

, but if i remove the if else statements, all my nodes will print.

I am from 0 node TESTING 
AT(0) hello TESTING 
I am from 1 node TESTING 
AT(1) hello TESTING 
I am from 2 node TESTING 
AT(2) hello TESTING 

im only having this problem when there is if else in a function, if the if
else is not in a function but in the main, there is no prob :( anyone knows
whats wrong?

-- 
View this message in context: 
http://old.nabble.com/Strange-problem-with-ns2-printf-tp28947016p28947016.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] total number of packets sent out from a mobile node in C++?

2010-06-28 Thread tiongsquare


Is it possible to calculate the total number of packets sent out from a
mobile node in C++? i'm working on a routing protocol currently. thanks!
-- 
View this message in context: 
http://old.nabble.com/total-number-of-packets-sent-out-from-a-mobile-node-in-C%2B%2B--tp29008550p29008550.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] MPR in OLSR

2010-07-03 Thread tiongsquare


anyone knows or have tried taking the mpr implementation out from olsr to use
it for own routing protocol? i'm currently looking at um-olsr implemention,
kind of lost in how to extract the mpr codings out, anyone done it before?
or knows where can i find mpr codes for ns2 anywhere else? thanks!
-- 
View this message in context: 
http://old.nabble.com/MPR-in-OLSR-tp29063446p29063446.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] why will mpr reduce redundant messages overall?

2010-07-07 Thread tiongsquare


i understand that mpr indeed helps to reduce the amount of broadcast messages
in the protocol(which uses it) point of view, but i thought mpr itself will
result in periodic sending of hello messages, wouldnt that in turn produce
more messages? 

redundant messages avoided from sending by using mpr + hello messages of mpr
= more messages produced by the mpr assisted protocol?

can anyone clear my doubts? thanks! :confused:
-- 
View this message in context: 
http://old.nabble.com/why-will-mpr-reduce-redundant-messages-overall--tp29094681p29094681.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] How can i calculate the no of data packets sent out from my routing protocol?

2010-07-26 Thread tiongsquare


How can i calculate the no of data packets sent out from my routing protocol
node (c++)? thanks =)
-- 
View this message in context: 
http://old.nabble.com/How-can-i-calculate-the-no-of-data-packets-sent-out-from-my-routing-protocol--tp29264794p29264794.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] having problem running important tools Manhattan Mobility Generator for ns2

2010-07-26 Thread tiongsquare


during the execution it prompt me to enter the map file name, but which is
the map file in the directory??? thanks
-- 
View this message in context: 
http://old.nabble.com/having-problem-running-important-tools-Manhattan-Mobility-Generator-for-ns2-tp29264960p29264960.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] How do I generate the Manhattan mobility scenarios in ns2?

2010-07-26 Thread tiongsquare


i have try a few generators but alot can't configure much, i need one that
allows me to config max speed, min speed, safe distance, acceleration, no of
vert and hori grids. thanks!!!
-- 
View this message in context: 
http://old.nabble.com/How-do-I-generate-the-Manhattan-mobility-scenarios-in-ns2--tp29267878p29267878.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] what does seed in cbrgen.tcl means?

2010-07-27 Thread tiongsquare


in ns2 own cbrgen which is used to gen traffic file, there is this parameter
seed: Seed to the RNG to generate a random traffic pattern. so what does
this seed means? what is "Seed to the RNG to generate a random traffic
pattern"? thanks!
-- 
View this message in context: 
http://old.nabble.com/what-does-seed-in-cbrgen.tcl-means--tp29276365p29276365.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] do i need to use a specific traffic pattern file according to the movement scenario file i'm using?

2010-07-27 Thread tiongsquare


do i need to use a specific traffic pattern file made for the movement
scenario file i'm using? or both doesn't have relation with each other? my
movement scenario file is manhattan, so can i just use cbrgen in ns2 to gen
for the traffic part? thanks!

-- 
View this message in context: 
http://old.nabble.com/do-i-need-to-use-a-specific-traffic-pattern-file-according-to-the-movement-scenario-file-i%27m-using--tp29276383p29276383.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Is this the correct way to set wireless radio range and channel bandwidth?

2010-07-28 Thread tiongsquare


Hi, i want to set my radio propagation range for each mobilenode to 225m and
the channel to operate at 2Mbps

1) for the channel bandwidth i read this the way to set it in the tcl script
Mac/802_11 set dataRate_ 2Mb
but do i need to set Phy/WirelessPhy set bandwidth_ 2Mb also? are they the
same thing or i just need to set one of them?

2) for the radio range i found info abt setting it below:
*Phy/WirelessPhy set RXThresh_ *

To compute this appropriate value:

*threshold -m  [other-options] distance* 

my qns is does it matter which propagation-model i'm using?  i'm using
manhattan model for my scenario, so do i need one that fits in my scenario?
or any will do? thanks!

-- 
View this message in context: 
http://old.nabble.com/Is-this-the-correct-way-to-set-wireless-radio-range-and-channel-bandwidth--tp29284758p29284758.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] How can i speed up ns2 simulation?

2010-07-28 Thread tiongsquare


Is there anyway i could speed up my ns2 simulation? my simulation has 1000
nodes, 5000x5000 manhattan map and more..and the simulation taking hrs =.=,
hope there is a way to speed up because i need this script to test my
protocol and also do multiple simulations on other protocol to compare the
results. thanks!
-- 
View this message in context: 
http://old.nabble.com/How-can-i-speed-up-ns2-simulation--tp29289012p29289012.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] generate scenario file for ns2

2010-07-29 Thread tiongsquare


Hi, im currently using important tools - USC mobility generator tool to gen
scenario files but i need to create a bigger map than the ones provided with
the program, do anyone knows how they actually get those coordinates values?
or how they get all the values? thanks!!! need it urgently for my project!!! 

TOOL link: http://nile.cise.ufl.edu/important/software.htm

Format:]

=

MANHATTAN

HOR_STREET_NUM 
VER_STREET_NUM 
LANE_NUM 
LANE  
   
CROSSPOINT 

CROSSPOINT 


mahattan map for the tool
"MANHATTAN
HOR_STREET_NUM 3
VER_STREET_NUM 3
LANE_NUM 12
LANE 0 0 1 0.10 249.00 999.90 249.00 6 10.00 60.00
CROSSPOINT 0 3 0 1 249.00 249.00
CROSSPOINT 1 3 1 -1 250.00 249.00
CROSSPOINT 2 4 0 1 499.00 249.00
CROSSPOINT 3 4 1 -1 500.00 249.00
CROSSPOINT 4 5 0 1 749.00 249.00
CROSSPOINT 5 5 1 -1 750.00 249.00
LANE 0 1 -1 999.90 250.00 0.10 250.00 6 10.00 60.00
CROSSPOINT 0 5 1 -1 750.00 250.00
CROSSPOINT 1 5 0 1 749.00 250.00
CROSSPOINT 2 4 1 -1 500.00 250.00
CROSSPOINT 3 4 0 1 499.00 250.00
CROSSPOINT 4 3 1 -1 250.00 250.00
CROSSPOINT 5 3 0 1 249.00 250.00"
-- 
View this message in context: 
http://old.nabble.com/generate-scenario-file-for-ns2-tp29294775p29294775.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] nam error: Warning: Tracefile events are not sorted by time. in terminal

2010-07-29 Thread tiongsquare


I got the following errors appearing on terminal when running through my nam,
does it mean i have to sort my scenario time in descending order? below are
2 scenario file, one got the error(bonnmotion) the other no error(important
tool). thanks!

Warning: Tracefile events are not sorted by time.
n -t 4.791455 -s 500 -x 4964.819461 -y 3610.00 -U -13.511317 -V 0.00
-T 0.370060
The above event should occur at or after -t 4.791455.

 scenario file generated by bonnmotion 1.4: got the above error

$node_(0) set X_ 4810.0
$node_(0) set Y_ 942.342377951872
$ns_ at 0.0 "$node_(0) setdest 4810.0 928.2510864438568 13.779121055111823"
$ns_ at 1.0226553240700014 "$node_(0) setdest 4810.0 923.2510864438568
13.763585513452547"
$ns_ at 1.3859327560380734 "$node_(0) setdest 4810.0 903.2510864438568
13.977635627087498"
$ns_ at 2.8167899148297693 "$node_(0) setdest 4810.0 898.2510864438568
13.692978309321193"

$node_(1) set X_ 3460.9044078195984
$node_(1) set Y_ 1010.0
$ns_ at 0.0 "$node_(1) setdest 3539.7874436705333 1010.0 14.4683970545"
$ns_ at 5.590122244988379 "$node_(1) setdest 3554.7874436705333 1010.0
13.830046749142454"
$ns_ at 6.674717277245236 "$node_(1) setdest 3579.7874436705333 1010.0
14.060220428270108"
$ns_ at 8.4527832846411 "$node_(1) setdest 3594.7874436705333 1010.0
13.638065622123186"

I have another scenario file generated by important tools which doesn't have
the error
.
$node_(8) set X_ 482.752747
$node_(8) set Y_ 333.330078
$node_(8) set Z_ 0.00
$node_(9) set X_ 333.330048
$node_(9) set Y_ 625.225891
$node_(9) set Z_ 0.00
$ns_ at 899.00 "$node_(0) setdest 827.588562 665.669983 39.326439"
$ns_ at 899.00 "$node_(1) setdest 333.329987 755.627625 36.718323"
$ns_ at 899.00 "$node_(2) setdest 333.329987 515.757263 14.865998"
$ns_ at 899.00 "$node_(3) setdest 611.462158 666.669983 26.069723"
$ns_ at 899.00 "$node_(4) setdest 106.749870 333.330017 13.191124"
$ns_ at 899.00 "$node_(5) setdest 665.669983 395.347931 24.016253"
$ns_ at 899.00 "$node_(6) setdest 333.329987 582.369080 32.785618"
..
-- 
View this message in context: 
http://old.nabble.com/nam-error%3A-Warning%3A-Tracefile-events-are-not-sorted-by-time.-in-terminal-tp29299410p29299410.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] nam: Unable to open the file!!!

2010-07-30 Thread tiongsquare


Cannot connect to existing nam instance. Starting a new one...

nam: Unable to open the file "testing-out.nam"

this nam file is 4.6GB size, does nam has problem opening large nam file?
because i thought initially is my nam program problem, but i try opening
small nam files and it works. anyone knows whats wrong?
-- 
View this message in context: 
http://old.nabble.com/nam%3A-Unable-to-open-the-file%21%21%21-tp29303341p29303341.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] mobilenode data traffic

2010-07-30 Thread tiongsquare


how is it possible to obtain data pkts/sec traffic information from my
routing protocol? thanks!
-- 
View this message in context: 
http://old.nabble.com/mobilenode-data-traffic-tp29303361p29303361.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] plot graph

2010-08-02 Thread tiongsquare


i have gnuplot installed and have some awk scripts

i need delivery ratio on my y axis and mobility speed on my x- axis(20 30 40
...80)
so it means i need a awk script which can take in mobility speed value as
input and output the delivery ratio for that speed? if yes, my problem now
is the delivery ratio awk script i have does not sort the delivery ratio by
mobility speed, how can i change it to make it do what i needed? thanks!

awk script of delivery fraction i got:
BEGIN {
sendLine = 0;
recvLine = 0;
fowardLine = 0;
}
 
$0 ~/^s.* AGT/ {
sendLine ++ ;
}
 
$0 ~/^r.* AGT/ {
recvLine ++ ;
}
 
$0 ~/^f.* RTR/ {
fowardLine ++ ;
}
 
END {
printf "cbr s:%d r:%d, r/s Ratio:%.4f, f:%d \n", sendLine, recvLine,
(recvLine/sendLine),fowardLine;
}
 
-- 
View this message in context: 
http://old.nabble.com/plot-graph-tp29326159p29326159.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] need help in retrieving desired information from tracefiles!!!

2010-08-03 Thread tiongsquare


i'm stuck in my project of retrieve info from the traces and plot the graphs
for a fews days already.
need help in retrieving information from the trace file which i need it to
plot using gnuplot. Any help will be appreciated!!!

i need to plot delivery ratio - mobility speed,
average end-to-end Delay - mobility speed,
delivery ratio - no of nodes, 
average end-to-end Delay - no of nodes,
total pkts - mobility speed,
total pkts - no of nodes,
delivery ratio - network traffic load(data pkts),
average end to end Delay - network traffic load(data pkts),

i'm looking for awk scripts that can take in inputs of mobility speed, no of
nodes and network traffice load(data pkts) and compute the opposite axis
values but so far no vaild ="(

i also try programs like ns-2 graphing and statistics package, trace graph
and JTrana but all doesn't plot these performance graphs.

anyone knows how to compute any of them? or have any solutions or links that
can help me?
-- 
View this message in context: 
http://old.nabble.com/need-help-in-retrieving-desired-information-from-tracefiles%21%21%21-tp29335123p29335123.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] segmentation fault with dsr

2010-08-07 Thread tiongsquare


hi,

Solution:

In yr tcl script, include the following:

if { $val(rp) == “DSR” } {
set val(ifq)CMUPriQueue
} else {
set val(ifq)Queue/DropTail/PriQueue
}

http://cromagnonlife.wordpress.com/2010/08/08/solution-ns2-segmentation-fault-core-dumped-when-using-dsr/


sriram balakrishnan wrote:
> 
> 
> i tried to simulate the wireless1.tcl file given in marcs tutorial and ran
> it for 50 nodes and 20 connections but when the protocol is set to dsr it
> gives segmentation fault any idea why
> 
> -- 
> B Sriram
> Wing Commander
> mob : 09733706981
> 
> 

-- 
View this message in context: 
http://old.nabble.com/segmentation-fault-with-dsr-tp19852112p29375655.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] Problem using DSR in ns 2.34 and few general queries

2010-08-07 Thread tiongsquare


hi,

Solution:
Hi,
In yr tcl script, include the following:

if { $val(rp) == “DSR” } {
set val(ifq)CMUPriQueue
} else {
set val(ifq)Queue/DropTail/PriQueue
}

http://cromagnonlife.wordpress.com/2010/08/08/solution-ns2-segmentation-fault-core-dumped-when-using-dsr/


visq wrote:
> 
> Sir,
> I have the following problem testing a scenario using DSR protocol in ns
> 2.34. 
> 
> 1) It gives segmentation error .
> 
> How to solve this problem? It worked fine with AODV and DSDV.
> 
> 2)simulation time . when i specified that
>  $ns at 2.0 "$cbr0 start"
> $ns at 6.0 "$cbr0 stop"
> 
> In simulation the  start time and stop time are different. and in not in
> accordance with tcl script.
> 
> 3)Regarding the throughput calculation, Suppose I am sending a tcp packet
> of 1500 bytes at 1.00 and the packet is received at 1.35 what is
> throughput in this case ? Is throughput calculated at sender side or
> receiver side? 
> And what is throughput in case of multiple flows or multiple senders? is
> throughput defined for each sender? or a network on a whole?
> 4) Regarding the trace format :-  what does this trace indicate?
> Sconfig 0.0 tap: on snoop: rts? on errs? on
> Sconfig 0.0 salvage: on !bd replies? on
> Sconfig 0.0 grat error: on grat reply: on
> Sconfig 0.0 $reply for props: on ring 0 search: on
> Sconfig 0.0 using MOBICACHE
> s 2.0 _11_ AGT  --- 0 tcp 1500 [0 0 0 0] --- [11:0 36:0 32 0]
> [0 0] 0 0
> r 2.0 _11_ RTR  --- 0 tcp 1500 [0 0 0 0] --- [11:0 36:0 32 0]
> [0 0] 0 0
> s 2.007477689 _11_ RTR  --- 1 DSR 32 [0 0 0 0] --- [11:255 36:255 32
> 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-using-DSR-in-ns-2.34-and-few-general-queries-tp29356436p29375660.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Solution to ns2 dsr segmentation fault

2010-08-07 Thread tiongsquare


will like to share the solution with everyone =)

Solution:
In yr tcl script, include the following:

if { $val(rp) == “DSR” } {
set val(ifq)CMUPriQueue
} else {
set val(ifq)Queue/DropTail/PriQueue
}

http://cromagnonlife.wordpress.com/2010/08/08/solution-ns2-segmentation-fault-core-dumped-when-using-dsr/
-- 
View this message in context: 
http://old.nabble.com/Solution-to-ns2-dsr-segmentation-fault-tp29375670p29375670.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Need awk scripts for avg end2end delay and total sent packets(data + control) urgently!!

2010-08-09 Thread tiongsquare


hi all, im looking for awk scripts for avg end to end delay and total sent
packets(data + control) for my project which is due soon, any help will be
appreciated! :)
-- 
View this message in context: 
http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-urgently%21%21-tp29389653p29389653.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Need awk scripts for avg end2end delay and total sent packets(data + control) urgently!!

2010-08-09 Thread tiongsquare


hi thanks for replying, the one i need is for wireless new trace format.


Muhammad Faiz wrote:
> 
> 
> 
> On Mon, Aug 9, 2010 at 6:21 PM, tiongsquare 
> wrote:
> 
>>
>>
>> hi all, im looking for awk scripts for avg end to end delay and total
>> sent
>> packets(data + control) for my project which is due soon, any help will
>> be
>> appreciated! :)
>> --
>> View this message in context:
>> http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-urgently%21%21-tp29389653p29389653.html
>> Sent from the ns-users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Muhammad Mubasher Faiz
> Master program in Computer Science
> University West
> Trolhattan,Sweden.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-for-wireless-new-trace-formaturgently%21%21-tp29389653p29390228.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Need awk scripts for avg end2end delay and total sent packets(data + control) urgently!!

2010-08-09 Thread tiongsquare


$ns_ use-newtrace


visq wrote:
> 
> 
> How to obtain a new trace? is there any command that we need to append to
> the tcl script?
> 
> On Mon, Aug 9, 2010 at 10:54 PM, tiongsquare
> wrote:
> 
>>
>>
>> hi thanks for replying, the one i need is for wireless new trace format.
>>
>>
>> Muhammad Faiz wrote:
>> >
>> >
>> >
>> > On Mon, Aug 9, 2010 at 6:21 PM, tiongsquare 
>> > wrote:
>> >
>> >>
>> >>
>> >> hi all, im looking for awk scripts for avg end to end delay and total
>> >> sent
>> >> packets(data + control) for my project which is due soon, any help
>> will
>> >> be
>> >> appreciated! :)
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-urgently%21%21-tp29389653p29389653.html
>> >> Sent from the ns-users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Muhammad Mubasher Faiz
>> > Master program in Computer Science
>> > University West
>> > Trolhattan,Sweden.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-for-wireless-new-trace-formaturgently%21%21-tp29389653p29390228.html
>> Sent from the ns-users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
>  k vamsi krishna
> electronics and communication engineering
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Need-awk-scripts-for-avg-end2end-delay-and-total-sent-packets%28data-%2B-control%29-for-wireless-new-trace-format-urgently%21%21-tp29389653p29390437.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] URGENT!!!! delay of aodv and dsr in ns2.34 not correct!

2010-09-09 Thread tiongsquare


hi guys really need help here, i been simulation dsr aodv by varying the
number of network load, then i calculated the end to end delay, however the
result isnt what i expected, it begins with high delay with lowest
trafficload, then it goes down and up again forming a "U" shape trend. how
could low network load has high delay? anyone know whats wrong with the 2
protocol that is already in ns2.34? i try with um-olsr and has no problem
with that. any help will be greatly appreciated
-- 
View this message in context: 
http://old.nabble.com/URGENT%21%21%21%21-delay-of-aodv-and-dsr-in-ns2.34-not-correct%21-tp29673500p29673500.html
Sent from the ns-users mailing list archive at Nabble.com.