[ns] Does the AODV routing protocol guaranty that always take a shortest path to destination?
Hi Does the AODV routing protocol guaranty that always take a shortest path to destination? Suppose that, there are multiple paths to a destination(a short and a long path). And the shortest path has heavy traffic. so in this shortest path the RREQ packet will received to destination latter than long but low traffic path. And the in AODV when a source, receive 1th RREPLY packet, immediately start to send the data packets. So in my scenario, the AODV will select the long path. Is it correct? Where I have mistake? Any Idea about this case?! -- Regards; Hosseini Nazhad.
[ns] Problem in start ontime ftp application in DSDV protocol
Hi Please run the script file(this is Wireless senario). Could you tel me, why the data packet's send start at (about) 50th Second? I have set it to start at 10th second.($ns at 10 $ftp start). I have used DSDV routing protocol, and I think the routing table in all 3 nodes are created until 3 second(Right?). So, why the packet sending late until 50th second? The Script File is as: # Define Options set val(chan) Channel/WirelessChannel ;#Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol #set val(rp) AODV ;# routing protocol set val(x) 500 set val(y) 400 set val(stop) 150 set ns [new Simulator] set tracefd [open simple.tr w] set windowVsTime2 [open win.tr w] set namtrace [open SimWrls.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # Create channel #1 and #2 set chan_1_ [new $val(chan)] set chan_2_ [new $val(chan)] # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace ON \ -channel $chan_1_ for {set i 0} {$i$val(nn)} {incr i} { set node_($i) [$ns node] } #set initial Location of nodes $node_(0) set X_ 5.0 $node_(0) set Y_ 5.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 #$node_(3) set X_ 230.0 #$node_(3) set Y_ 240.0 #$node_(3) set Z_ 0.0 #Movement Statemnet $ns at 10.0 $node_(0) setdest 250.0 250.0 3.0 $ns at 15.0 $node_(1) setdest 45.0 285.0 5.0 $ns at 110.0 $node_(0) setdest 480.0 300.0 5.0 #$ns at 70.0 $node_(1) setdest 455.0 252.0 5.0 #$ns at 90.0 $node_(1) setdest 490.0 285.0 5.0 set tcp [new Agent/TCP/Newreno] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $node_(0) $tcp $ns attach-agent $node_(1) $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 10 $ftp start proc plotWindow {tcpSource file} { global ns set time 0.01 set now [$ns now] set cwnd [$tcpSource set cwnd_] puts $file $now $cwnd $ns at [expr $now+$time] plotWindow $tcpSource $file } $ns at 10.1 plotWindow $tcp $windowVsTime2 for {set i 0} {$i$val(nn)} { incr i} { $ns initial_node_pos $node_($i) 30 } for {set i 0} {$i$val(nn)} { incr i} { $ns at $val(stop) $node_($i) reset; } $ns at $val(stop) $ns nam-end-wireless $val(stop) $ns at $val(stop) stop $ns at $val(stop)+0.01 puts \end simulation\ ; $ns halt $ns at 0.1 plotWindow $tcp $windowVsTime2 proc stop {} { global ns tracefd namtrace $ns flush-trace close $tracefd close $namtrace #puts SA:AM exec nam simwrls.nam # exec nam myout2.nam exit 0 } $ns run -- thanks Hosseini Nazhad.
[ns] always AODV specify shortest path?
Hi Does the AODV routing protocol guaranty always specify shortest path to destination? Suppose that, there are multiple paths to a destination, and the shortest path has heavy traffic, so in this shortest path the RREQ packet will receive to destination latter that long but low traffic path. Is it correct? Any Idea about this case?! -- Regards; Hosseini Nazhad.
[ns] period time of routing table advertisement in DSDV
Hi How I can change the period time of Send routing table information (routing table advertisement) of each node in DSDV routing algorithm? -- Regards; Hosseini Nazhad.
[ns] Problem in start ontime ftp application in DSDV protocol
Hi Please run the script file(this is Wireless senario). Could you tel me, why the data packet's send start at (about) 50th Second? I have set it to start at 10th second.($ns at 10 $ftp start). I have used DSDV routing protocol, and I think the routing table in all 3 nodes are created until 3 second(Right?). So, why the packet sending late until 50th second? -- Regards; Hosseini Nazhad.
[ns] Script files
Hi I want some script file for calculating: 1-System Bandwidth 2-Instant Bandwidth 3-Lattency and Jitter. Could any one help me? Whete I cant download these files? -- Regards; Hosseini Nazhad.
[ns] Packets in Link's Queue
Hi Suppose that, Node(A) want to send packets to Node(B) by TCP protocol. Node(A) send a packet , after deliver that ACK send 2 packets and after deliver those ACk send 4 packets and ... . The bandwidth =2Mbps Propagation delay is= 10ms Link's Queue length=20 Packet size is 1000 byte. Time =10second The window size is default in NS-2. My Question is : Why some packets(almost 14 packets) go in link's queue?How I can describe this event? Thanks
[ns] Packets in link's Queue
Hi Suppose that, Node(A) want to send packets to Node(B) by TCP protocol. Node(A) send a packet , after deliver that ACK send 2 packets and after deliver those ACk send 4 packets and ... . The bandwidth =2Mbps Propagation delay is= 10ms Link's Queue length=20 My Question is : Why some packets(almost 14 packets) go in link's queue?How I can describe this event? Thanks
[ns] DSDV Routing protocol in Wireless env.
Dear In wireless environment I have user DSDV as routing algorithm. I have 2 nodes and I have set Packet Transfer at 1.0 Second of simulation. But the packet transefer start at(almost) 2.80 second of simulation. On the other hand when I have use AODV as routing protocol, packet transfer start on time. Would you help me on this problem? -- Regards; Hosseini Nazhad.
[ns] calculate bandwidth!!!!!!!
Dear all I am new in Ns-2 and I have a little question. I this page http://www.isi.edu/nsnam/ns/tutorial/index.html, are written: When you start the script now with 'ns example2.tcl', you will notice that there is more traffic on the links from n0 to n2 and n1 to n2 than the link from n2 to n3 can carry. A simple calculation confirms this: We are sending 200 packets per second on each of the first two links and the packet size is 500 bytes. This results in a bandwidth of 0.8 megabits per second for the links from n0 to n2 and from n1 to n2 How you calculate the 0.8 megabits??? why .08? could you help me please?? -- Regards; Hosseini Nazhad.