[ns] Physical Layer extension
Hi all is it possible to design a new physical model for ns2 like when we implemente a new routing or mac protocol? regards
Re: [ns] routing wireless network manually
Dear shima Manual routing is an option for wired routing, you can do it by firstly typing $ns rtproto Manual and then adding your disired route by add-rout-to-adj-node like below: $ns duplex-link $n1 $n2 10Mb 100ms DropTail $n1 add-route-to-adj-node -default $n2 $n2 add-route-to-adj-node -default $n1 I should tell you if you search for it in list there are many error, not solved yet. Regards Sajad m
[ns] Error: no-slot{} default handler
I'm trying to test my new routing by running a tcl script but it shows this error: channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o26: no target for slot 0 _o26 type: Classifier/Port content dump: classifier _o26 0 offset 0 shift 2147483647 mask 1 slots slot 255: _o28 (CMUTrace/Recv) -- Finished standard no-slot{} default handler -- *** Can anyone help me? Regards Sajad m
Re: [ns] Ns-users Digest, Vol 80, Issue 6
shaksteel at hotmail.com writes: Dear Sajad, I think you need to link an otcl file with your c files in order for ns to recognize it. Tcl scripting doesn't directly respond to c code. It has to be implemented through otcl. -- Dear shaksteel thanks for your replynig, could you pleas help me more if you know: I did it again and every thing went well, the o files has been created. But when I tried to run a simulation with rt(value)?SM. it showed segmentation fault error. Does any body know about this error? More over in my routing protocol I read some data from a text file, but it couldn't be read and shows it is null!! how about this problem? regards sajad m
[ns] Basic requirement for implementing a new protocol
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
[ns] Running a new routing algorithm
I'm trying to implement a new routing algorithm,saying SM; I've written scripts in 4 files: sm.cc , sm.h, and roting table smtb.cc, smtb.h. Then I added some necessary line to ns.lib and installed ns again successfully. But when I tried to run a simulation with rt(value) SM. it showed some errors. Moreover in the directory SM there's no sm.o!! whats the solution to run my routing algorithm?
[ns] Reading distance to implement a new routing algorithm
I want to implement a new routing protocol and need to read the distance between nodes and consider it as my metric? how can I do it?