Tcl script

31 views
Skip to first unread message

Karan Kashyap

unread,
Oct 31, 2020, 2:08:14 PM10/31/20
to ns-u...@googlegroups.com
I have a doubt about the tcl script, 
I want to make the 40 nodes which move randomly nd  3 nodes have fix destination. Any suggestions me???
Method 1 : I use NSG2.1 for making this script but all work is done but 3 nodes set waypoint to Destination and they work but remains all nodes are fixed .


Method 2: I use setdest for mobility and cbrgen for communication but on the cbr file the nodes which show cbr connection at particular tym they don't meet at all that time which fix in cbrgen file .

This make a big confusion for analysis.
I want only 40 nodes mobile scenarios in which all node move random and 3 node show communication but its can't possible.
Plz guide me.
I highly thankful to all of you.
Thank you.

knudfl

unread,
Nov 1, 2020, 6:59:22 PM11/1/20
to Network Simulator 2 (NS2)
Hi.

Setdest :  You can edit the file to omit lines with nodes 0 - 1 - 2  if those are the static nodes.
                   Easier : Use nodes 37 - 38 - 39 as the static nodes, i.e. create a file with 37 nodes.

cbrgen : Not quote clear what you mean ( Static nodes are meant to have communication.)
      "cbr files" are easy to edit :  Edit a node number. Or / and copy a section ... and edit the text.

I uploaded some examples, mostly created with SUMO https://www.eclipse.org/sumo/
Examples, 30 ... 50 nodes :  scene30-50.tar.xz

Other tool for movement files: Bonnmotion http://sys.cs.uos.de/bonnmotion/

Karan Kashyap

unread,
Nov 2, 2020, 9:21:07 AM11/2/20
to ns-u...@googlegroups.com
Hello sir,
I want to print consume energy and remaining energy of all node in dynamic mobility model plz guide me.
I highly thankful to you sir.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/c86a61ac-9a2c-4ab4-8399-c8a48f444258n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages