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.00000 tap: on snoop: rts? on errs? on
> Sconfig 0.00000 salvage: on !bd replies? on
> Sconfig 0.00000 grat error: on grat reply: on
> Sconfig 0.00000 $reply for props: on ring 0 search: on
> Sconfig 0.00000 using MOBICACHE
> s 2.000000000 _11_ AGT  --- 0 tcp 1500 [0 0 0 0] ------- [11:0 36:0 32 0]
> [0 0] 0 0
> r 2.000000000 _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.


Reply via email to