[ns] [Help/Query] error when running tcl code for a new routing protocol implemented
Hi nsusers, I have implemented a part of a hybrid routing protocol for adhoc networks. I have written the code for the neighborhood discovery and the local routing protocol. I just wanted to check if my code was working alright, therefore i wrote a simple tcl script which has 2 node, i make sure that the nodes are close to each other so that they can communicate with each other. The problem is that when i run the ns command i get the following errors: I cannot understand why i am getting these error or where i am going wrong. Please could anybody help me with these errors. thanks in advance. cheers, Melvin $ ns test1.tcl num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead (_o17 cmd line 1) invoked from within _o17 cmd tracetarget _o31 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 _o17 line 2) (SplitObject unknown line 2) invoked from within $ragent tracetarget $T (procedure _o14 line 14) (Node/MobileNode agenttrace line 14) invoked from within $node agenttrace $tracefd (procedure _o3 line 101) (Simulator create-wireless-node line 101) 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 ;# we disable random motion } (file test1.tcl line 79)
[ns] Neighborhood Discovery protocol implementation????
hi ns-users, Is the neighborhood discovery protocol (NDP) implemented in NS2 ? I am asking because the ns manual says that we can track neighbors of a node. I am implementing a hybrid routing protocol for MANETS in NS2 and was wondering if i have to implement the NDP protocol or its already implemented and i can use it. cheers, Melvin
[ns] linker errors .......
Hi ns users, i have written code for watchdog and pathrater, while i tried to execute the code, the code complied but it is giving me some linker errors like, [Linker error] undefined reference to `Connector::Connector()' [Linker error] undefined reference to `Connector::command(int, char const* const*)' and so on help me to debug these errors thanks in advance cheers, Melvin
[ns] dynamic or static linking
hi ns users, i have made some changes to one of the existing routing protocols for ad hoc networks. To make use of the changes do i have to compile the whole of NS2 or can i just compile the protocol (files) i have changed. Does NS2 use static linking or dynamic linking. Thanks in advance, Melvin