Re: Need help with below scenario in NS2

190 views
Skip to first unread message
Message has been deleted
Message has been deleted

knudfl

unread,
Sep 24, 2021, 1:01:33 PM9/24/21
to Network Simulator 2 (NS2)
Hi.

Actually not something I know anything about.  Except the information I already supplied

There is also the SUMO examples, with roads : "Urban VANET scenario's"

I have built sumo many times (when build questions were asked), but never really used it, except for a few commands.

On Friday, September 24, 2021 at 1:30:06 AM UTC+2 dnme...@gmail.com wrote:
HI Knud,

Can you kindly help with this. 

On Thursday, September 23, 2021 at 10:09:35 AM UTC-4 Durgesh Tiwari wrote:
Create a topology diagram and implement it in NS2 based on the following scenario.
There is a smart city having two road junctions of four roads, 
minimum of two RSU units, 
2-two-lane roads, where vehicles cross each other. 
It is mandatory that there should be communication between vehicles to vehicles and Vehicles to RSUs, i.e., mandatory to show the
V2V and V2R communication. Choose the best available routing algorithm (e.g., DSR, AODV,
DSDV etc) for your designed topology. TCP model should be used as a network model for
packet transmission. 

Thank you

knudfl

unread,
Sep 24, 2021, 1:04:17 PM9/24/21
to Network Simulator 2 (NS2)

My Email

unread,
Feb 12, 2022, 5:51:52 AM2/12/22
to Network Simulator 2 (NS2)
Screenshot from 2022-02-12 02-49-41.png

Dear Sir,

I have problem with Poisson implementation please


set udp_(0) [new Agent/UDP]
$ns_ attach-agent $node_(1) $udp_(0)
set null_(0) [new Agent/Null]
$ns_ attach-agent $node_(2) $null_(0)
set poisson_(0) [new Application/Traffic/Poisson]
$poisson_(0) set packetSize_ 512
$poisson_(0) set interval_ 0.05
$poisson_(0) set random_ 1
$poisson_(0) set maxpkts_ 10000
$poisson_(0) attach-agent $udp_(0)
$ns_ connect $udp_(0) $null_(0)

knudfl

unread,
Feb 12, 2022, 2:22:31 PM2/12/22
to Network Simulator 2 (NS2)
@eb.al... ,    Hi.

→ my answer  Jun 19, 2018, 8:39:44 PM


If you want an answer for your simulation.tcl :  Please attach / upload the file.

..... Images with text will often not be read.

knudfl

unread,
Feb 12, 2022, 2:53:49 PM2/12/22
to Network Simulator 2 (NS2)
Two new examples with your code
set udp_(0) [new Agent/UDP]
$ns attach-agent $node_(1) $udp_(0)
set null_(0) [new Agent/Null]
$ns attach-agent $node_(2) $null_(0)

set poisson_(0) [new Application/Traffic/Poisson]
$poisson_(0) set packetSize_ 512
$poisson_(0) set interval_ 0.05
$poisson_(0) set random_ 1
$poisson_(0) set maxpkts_ 10000
$poisson_(0) attach-agent $udp_(0)
$ns connect $udp_(0) $null_(0)

New is     2022__P-aodv-Soumia.tcl,  4-2022-40p-aodv-40.tcl 

......... No issues. Your errors : You seem to be using an executable 'ns' with no Poisson patch/code added.
My tests
$ ns235-poisson-64 2022__P-aodv-Soumia.tcl :   OK
$ ns235-poisson-64 4-2022-40p-aodv-40.tcl :       OK

Rama Krishna

unread,
Feb 12, 2022, 7:21:38 PM2/12/22
to ns-u...@googlegroups.com
Sir, is it possible to implement genetic algorithm in ns2 for cluster formation

--
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/a78268cc-134f-4a15-9a27-f89119081923n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages