please help

67 views
Skip to first unread message

alehegn minale

unread,
Nov 7, 2018, 2:33:03 AM11/7/18
to ns-u...@googlegroups.com
dear ns2 users
how i can add multicast  function and make cluster the multicast and non multicast group  together  in ns2 after clone AODV  protocol  and i need to test the performance


thanks a lot !!

knudfl

unread,
Nov 7, 2018, 7:43:01 AM11/7/18
to Network Simulator 2 (NS2)
"Cluster" is a default function in ns2.
"Multicast" is a default function in ns2.

So I guess it should just be a matter of using / writing the right simulation.tcl .
Examples with `multicast´ ... see attachment ...
000-multicast.txt

alehegn minale

unread,
Nov 8, 2018, 1:21:29 AM11/8/18
to ns-u...@googlegroups.com
thanks a lot for ur help
i need to ask one question again is that not necessary  to add multicast and clustering function in .cc and .h that means  no need to write a code on aodv.cc and aodv.h files and i can write the complete code on tcl files?


thanks in advance


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

knudfl

unread,
Nov 8, 2018, 9:10:20 AM11/8/18
to Network Simulator 2 (NS2)
»» not necessary  to add multicast and clustering function in .cc and .h «« :

Please test for yourself some various situations with the available examples ....
1.  Multicast-examples.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNa0pKc0V2UEdDWTQ/view?usp=sharing
Example simulation :
$ tar xvf Multicast-examples.tar.gz
$ cd ex
-multicast/ex/
$ ns binary
.tcl

2.  clustering-examples-12.17.tar.gz
https://drive.google.com/file/d/1_g0SPnuOMYUuFqkNxnePl-fsmItbRx-U/view?usp=sharing

You already got the "tree link" ... to search in all 3000 ex

alehegn minale

unread,
Nov 10, 2018, 10:06:48 AM11/10/18
to ns-u...@googlegroups.com
thank very much for ur help but how can i compare the performance of the two protocols? that is why the multicast function and clustering can be done on tcl so how i can compare the two protocols in tcl file

thanks in advance

knudfl

unread,
Nov 10, 2018, 11:19:28 AM11/10/18
to Network Simulator 2 (NS2)
Cluster and multicast are not really protocols. Just ways of setting up / organizing a network.

There is no "multicast" in the shown clustering examples.
But at least one example in a search with all 3000 simulations : test-suite-hier-routing.tcl
I.e.  ns-2.35/tcl/test/test-suite-hier-routing.tcl

The search is attached :
[000-All-examples-4]$ grep -n multicast * > multicast-all.txt
test
-suite-hier-routing.tcl:20:#  There is a order dependence of hierarchical routing and multicast:
test
-suite-hier-routing.tcl:22:#  if you turn on hier routing BEFORE multicast, the trace result is
test
-suite-hier-routing.tcl:23:#  different from you turn on hier routing AFTER multicast. The reason is
test
-suite-hier-routing.tcl:24:#  that set-address-format{} checks multicast from ns-address.tcl; if it's
test
-suite-hier-routing.tcl:29:#  multicast is turned on AFTER hierarchical routing? Is this a bug? Should
test
-suite-hier-routing.tcl:176:    # XXX If we first allocate a simulator with -multicast on, then
test
-suite-hier-routing.tcl:178:    # from we turn multicast on AFTER we turn on hierarchical routing!
test
-suite-hier-routing.tcl:180:    # different address format if it finds multicast is turned on.
test
-suite-hier-routing.tcl:181:    $ns_ multicast on

multicast-all.txt

alehegn minale

unread,
Nov 10, 2018, 12:02:30 PM11/10/18
to ns-u...@googlegroups.com
ok just i need to do this paper i am attached it please see it and how i can implement it

singh2015.pdf

knudfl

unread,
Nov 10, 2018, 3:52:25 PM11/10/18
to Network Simulator 2 (NS2)
I have no idea.  I test and run existing code.cc for ns2, if not too many errors.
.... That's it.   I cannot develop code.

Recommended are supported 'Networking simulators' like ns3, OMNet++ / Castalia.


Reply all
Reply to author
Forward
0 new messages