error in tcl

28 views
Skip to first unread message

i.g...@gmail.com

unread,
Jan 29, 2019, 5:39:54 AM1/29/19
to Network Simulator 2 (NS2)
i am new to NS-2 , tried running the code attached getting some errors

 invalid command name "Agent/RSUBeaconProtocol"
    while executing
"Agent/RSUBeaconProtocol instproc recv {source sport size data} {
$self instvar node_ ConnectionFlag_ PreviouslyConnectedRSUID_
global ns RSU_BROADCAST..."
    (file "ex2.tcl" line 68)
 
ex2.tcl

knudfl

unread,
Jan 29, 2019, 10:35:00 AM1/29/19
to Network Simulator 2 (NS2)
Hi.

.... shows some snippets of code which can be used in an ns2 simulation.
These snippets of code can also be used as individual configuration files, to be sourced in a simulation.tcl .

Conditions : The executable 'ns' must be patched with the " RSUBeaconProtocol".
Like some C++ code, and "RSUBeacon" entries to ns-2.35/tcl/lib/ns-files.tcl

Vannet simulation examples, `Vanet-examples-09.18.tar.gz´
https://drive.google.com/file/d/1wcDPDk68e6OPsUBaE_yC7whaAqUmTWf3/view?usp=sharing

i.g...@gmail.com

unread,
Jan 31, 2019, 7:00:54 AM1/31/19
to Network Simulator 2 (NS2)
Hi Knudfl

RSUBeaconProtocol patch is available anywhere ? and how do i do it ... sorry but i have no clue of doing this.

knudfl

unread,
Jan 31, 2019, 7:30:13 AM1/31/19
to Network Simulator 2 (NS2)
Hi.

Some people got the code ...   ~year 2017 ....
... Please try to make contact to somebody who will share a copy of the code.
( The original link is no more valid.)

i.g...@gmail.com

unread,
Feb 1, 2019, 12:35:57 AM2/1/19
to Network Simulator 2 (NS2)
Thank you for your reply , yes the link is not functional anymore.
Reply all
Reply to author
Forward
0 new messages