[ns] plz reply Link state problem

2010-04-21 Thread waqar haq
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queu

[ns] plz reply Link state problem

2010-04-20 Thread waqar haq
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queu

[ns] Link state problem

2010-04-19 Thread waqar haq
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queu

[ns] Link state problem

2010-04-19 Thread waqar haq
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queu

[ns] Link state problem

2010-04-18 Thread waqar haq
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queu

[ns] Link state problem

2010-04-16 Thread waqar haq
hi can anybody tell me how to enable load balancing and bandwidth count features of link state plz plz help me

[ns] Link state routing Algo problem

2010-04-09 Thread waqar haq
hi well its quite easy to use link state routing protocol in ns2 simply use $ns rtproto LS but what if we have to do load balancing and also want routing agent to consider link bandwidth before taking routing decisions. Aare there any options ??? Thnxs in Advance

[ns] multipath problem

2010-04-02 Thread waqar haq
well i was trying to insert multiple routes to node but following error are comming below is the code plz reply *Code:* Agent/rtProto/SLRA instproc madd-route {peerAddr dst check nodeid} { $self instvar nextHop_ global multi test target_list puts "check $check" set node_ [$self id2hand

[ns] Multipath routing problem

2010-03-28 Thread waqar haq
hi i m writing a routing Algo. for the wired network i have write most of the code and now working with load balancing issue i have formulated it and have also write the code but problem is after sensing a congestion in a network or getting link utilization high it calls my method madd-routes

[ns] Multipath routing info

2010-03-20 Thread waqar haq
hi i m doing some load balancing stuff i have multiple routes to destination in my routing table can you tell me how i can use these routes for load balancing i have searched and find out that we have to set multipath to 1 then it uses it all the routes in round robin fashion any info or poin

[ns] getting link queue class prob

2010-03-15 Thread waqar haq
hi to all well these are problems i m facing now i was trying to get nos of bytes currently contain in a Que after searching i have found that queue class contain a packetqueue object that have a protected variable "bytes_" i have done this to get a queue handle set queulimt [[[$ns link $node

[ns] queue split object prob

2010-03-12 Thread waqar haq
hi to all plz do reply, i m in die hard need i was trying to get nos of bytes currently contain in a que after searching i have found that queue class contain a packetqueue object that hav a protected variable "bytes_" i have done this to get a queue handle set queu [[[$ns link $node $nbr ] s

[ns] getting queue limit prob

2010-03-09 Thread waqar haq
hi to all m trying to get a queue limit using this code set queue [[$ns_ link $node $nbr] set queue_] set queueli [$queue queue_in_bytes_] puts "queuuelimit $queueli" i have used simple drop tail queue after getting handle of queue from link i tried to use queue_in_bytes as its

[ns] LInk bandwidth issue plz reply

2010-02-24 Thread waqar haq
hi to all plz do reply m in despratre need of it i have implented a routing algo and i want to get information about how much the link is utilized and further more can anyone tell me how an you tell me how to get bandwith of a link i tried the following scheme but its not working set ns_

[ns] how to get link utilization info

2010-02-23 Thread waqar haq
hi to all i have implented a routing algo and i want to get information about how much the link is utilized and further more can anyone tell me how an you tell me how to get bandwith of a link i tried the following scheme but its not working set ns_ [Simulator instance] set link_

[ns] getting link bandwith prob

2010-02-21 Thread waqar haq
hey hi to all can you tell me how to get bandwith of a link i tried the following scheme but its not working set ns_ [Simulator instance] set link_ [$ns_ link $node $nbr] set bw [$link_ bw?] puts "bandwidh $bw" and in ns-link i wrote a proc Link instproc bw? {} {

[ns] creating to new adder classifier problem

2010-02-14 Thread waqar haq
i have created a routing algorithm by further inherating it from agent/rtproto/MyAlgo i want my Algo to receive all packet that is received by the node should also recieved by my agent too wat would be the solution??? and i have learned tht it would be easy to create a addr classifier if so ca

[ns] tcp and udp on same node problem

2010-02-14 Thread waqar haq
hey hi 2 all well i have created my routing protocol and it works gud but when i use udp simulate -- it works fine when i use tcp simulate it also works fine--- but when i use both as a source at same node at a time tcp doesn't simulate or no simulation is performed only routing packets a

[ns] how to Create Adr classifier

2010-02-11 Thread waqar haq
Hello and to all i have created a routing algorithm by further inherating it from agent/rtproto/MyAlgo i want my Algo to receive all packet that is received by the node wat would be the solution??? and i have learned tht it would be easy to create a addr classifier if so can you tell me how t

[ns] Add-route is not working

2010-02-10 Thread waqar haq
i have implemented a routing algorithm for wired network after calculating routes i called a function from c++ to tcl that does following { $node_ add-route $subnet $peerAddr puts "$node_ add-route $subnet $peerAddr" } every thing is going fine and simulation ends without any error but

[ns] size of packet and Application traffic

2010-02-07 Thread waqar haq
hi i have tried to create a routing algo for the wired network i follow the dv and use dv tcl script where neccessay and port almost everything in c++, every thing is going fine but there are some problem too i don't how to set size_ of my packet consequently, in trace file it put 0 in packet

[ns] Directed broadcast

2010-02-05 Thread waqar haq
hi can any one tell me how to send a directed broadcast actually i want to send the packet to all interface except the one from which i receive i tried a loop but it gives me Event scheduler error with wrong event id plz help me thnks

[ns] Multiple destination

2010-02-04 Thread waqar haq
hi ya can any one tell me how to send a packet to multiple destination i have tried a scheme but it wont work i put the target in the loop this is just a code for the demonstrtion for (NNode *n = ntable_->node_; n != NULL; n = n->next) { if (n->status == DIRECT && n->link !