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] difference in cbr rate

2010-08-07 Thread ankur goyal

Hi All,

I have few queries,

1) when we define cbr rate as $cbr_(0) set rate_ 0.1Mb and packet size as
$cbr_(0) set packetSize_ 512 this means that node should send app. 195
(0.1*1000*1000/512 = 195.32 Packets) packets in a second (Please correct me
if i am wrong). but when i run my simulation for 1 sec, I observe the number
of packets sent are only 25 packets.

Why is this so?

2) Instead of defining cbr rate in Mb if i define the rate in Kb or i just
define it 0.1, than the  umber of packets sent in 1 sec is only 1.

Why is this so?

3) while calculating the average delay of the network, should we take into
account the dropped packet as well? and if yes than what end time should we
take for dropped packets.

4) how can we put the varying data rate and average delay of the network
together in 1 file (either through awk script or through tcl file) so that i
can plot the curve between network load and average network delay?


Please help me in the above queries.

Thanks,
Ankur


[ns] code to add the hops(path) to source routing in the packet

2010-08-07 Thread Wei Zhang

Hello everybody,

I need code to add the hops of path to source routing in the packet. If you 
have it please send me soon.

Thank you in advance.
Wei





  


[ns] Basic requirement for implementing a new protocol

2010-08-07 Thread sajad m

Hi all
 
We read and heard a lot about  How to Implement  a new routing algorithm, but 
as a necessary requirement for implementing a new protocol, it's necessary to 
access the distance between nodes, their location or their residual energy. I 
know the way of access to such information through tcl but how about it through 
c++ code?
 
A probably answer is getloc, but how to use it?
 
Regards
sajad m