# Copyright (c) 2011 Jaideep & Aditi.
# All rights reserved.
# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2 ;# number of mobilenodes
set val(rp) DSDV ;# routing protocol
# =====================================================================
# ======================================================================
# Main Program
# ======================================================================
#
# Initialize Global Variables
#
set ns [new Simulator]
set f [open four.tr w]
$ns trace-all $f
set nf [open four.nam w]
$ns namtrace-all-wireless $nf 670 670
# set up topography object
set topo [new Topography]
$topo load_flatgrid 700 700
#
# Create God
#
create-god $val(nn)
#
# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel.
# Here two nodes are created : node(0) and node(1)
# configure node
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF
for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns node]
$node_($i) random-motion 0 ;# disable random motion
}
#
#
# Define node movement model
#
puts "Loading connection pattern..."
#
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#
$node_(0) set X_ 5.0
$node_(0) set Y_ 2.0
$node_(0) set Z_ 0.0
$node_(1) set X_ 390.0
$node_(1) set Y_ 385.0
$node_(1) set Z_ 0.0
#
# Now produce some simple node movements
# Node_(1) starts to move towards node_(0)
#
$ns at 50.0 "$node_(1) setdest 45.0 40.0 45.0"
# Define node initial position in nam
for {set i 0} {$i < $val(nn)} {incr i} {
# 20 defines the node size in nam, must adjust it according to your scenario
# The function must be called after mobility model is defined
$ns initial_node_pos $node_($i) 40
}
set udp0 [new Agent/UDP]
$ns attach-agent $node_(0) $udp0
array set dbans {
"how are you" "fine"
"Are you there" "yes"
"hi" "Thanks"
"" "Not Found"
}
set udp1 [new Agent/UDP]
$ns attach-agent $node_(1) $udp1
$ns connect $udp0 $udp1
# Setting the class allows us to color the packets in nam.
$udp0 set class_ 0
$udp1 set class_ 1
# The "process_data" instance procedure is what will process received data
# if no application is attached to the agent.
# In this case, we respond to messages of the form "ping(###)".
# We also print received messages to the trace file.
Agent/UDP instproc process_data {size data} {
global ns
global udp0
global udp1
global dbans
$self instvar node_
# note in the trace file that the packet was received
$ns trace-annotate "[$node_ node-addr] received {$data}"
set flag1 "0"
set flag "0"
foreach db [array names dbans] {
set str3 [string equal $db $data]
if {$str3 == "1"} {
set flag "1"
set str4 [$node_ node-addr]
$ns trace-annotate "Replying correct question for recieved data:{$data}"
$ns trace-annotate "question: $db answer: $dbans($db)"
set ans "$dbans($db)"
switch $str4 {
0 {$ns at 80 "$udp0 send 828 replied:$ans"}
1 {$ns at 80 "$udp1 send 828 replied:$ans"}
2 {$ns at 80 "$udp2 send 828 replied:$ans"}
default {puts "I don't know what the number is"}
}
}
}
set str5 [string equal $flag $flag1]
if {$str5 == "1"} {
$ns trace-annotate "Answer not found in database"
}
}
# Now, schedule some messages to be sent, using the UDP "send" procedure.
# The first argument is the length of the data and the second is the data
# itself. Note that you can lie about the length, as we do here. This allows
# you to send packets of whatever size you need in your simulation without
# actually generating a string of that length. Also, note that the length
# you specify must not be larger than the maximum UDP packet size (the default
# is 1000 bytes)
# if the send procedure is called without a second argument (e.g. "send 100")
# then a packet of the specified length (or multiple packets, if the number
# is too high) will be sent, but without any data. In that case, process_data
# will not be called at the receiver.
$ns at 50.3 "$udp0 send 500 {how are you}"
$ns at 70.5 "$udp1 send 828 hi"
#
# Tell nodes when the simulation ends
#
for {set i 0} {$i < $val(nn) } {incr i} {
$ns at 150.0 "$node_($i) reset";
}
$ns at 150.0 "stop"
$ns at 150.01 "puts \"NS EXITING...\" ; $ns halt"
proc stop {} {
global ns f nf
$ns flush-trace
close $f
close $nf
}
puts "Starting Simulation..."
$ns run
# This is developed by Mr. Jaideep Rao, Final year student in IT, MIT, Manipal
# All rights reserved.
# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2 ;# number of mobilenodes
set val(rp) DSDV ;# routing protocol
# =====================================================================
# ======================================================================
# Main Program
# ======================================================================
#
# Initialize Global Variables
#
set ns [new Simulator]
set f [open four.tr w]
$ns trace-all $f
set nf [open four.nam w]
$ns namtrace-all-wireless $nf 670 670
# set up topography object
set topo [new Topography]
$topo load_flatgrid 700 700
#
# Create God
#
create-god $val(nn)
#
# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel.
# Here two nodes are created : node(0) and node(1)
# configure node
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF
for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns node]
$node_($i) random-motion 0 ;# disable random motion
}
#
#
# Define node movement model
#
puts "Loading connection pattern..."
#
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#
$node_(0) set X_ 5.0
$node_(0) set Y_ 2.0
$node_(0) set Z_ 0.0
$node_(1) set X_ 390.0
$node_(1) set Y_ 385.0
$node_(1) set Z_ 0.0
#
# Now produce some simple node movements
# Node_(1) starts to move towards node_(0)
#
$ns at 50.0 "$node_(1) setdest 45.0 40.0 45.0"
# Define node initial position in nam
for {set i 0} {$i < $val(nn)} {incr i} {
# 20 defines the node size in nam, must adjust it according to your scenario
# The function must be called after mobility model is defined
$ns initial_node_pos $node_($i) 40
}
set udp0 [new Agent/UDP]
$ns attach-agent $node_(0) $udp0
array set dbans {
"how are you" "fine"
"Are you there" "yes"
"hi" "Thanks"
"" "Not Found"
}
set udp1 [new Agent/UDP]
$ns attach-agent $node_(1) $udp1
$ns connect $udp0 $udp1
# Setting the class allows us to color the packets in nam.
$udp0 set class_ 0
$udp1 set class_ 1
# The "process_data" instance procedure is what will process received data
# if no application is attached to the agent.
# In this case, we respond to messages of the form "ping(###)".
# We also print received messages to the trace file.
Agent/UDP instproc process_data {size data} {
global ns
global udp0
global udp1
global dbans
$self instvar node_
# note in the trace file that the packet was received
$ns trace-annotate "[$node_ node-addr] received {$data}"
set flag1 "0"
set flag "0"
foreach db [array names dbans] {
set str3 [string equal $db $data]
if {$str3 == "1"} {
set flag "1"
set str4 [$node_ node-addr]
$ns trace-annotate "Replying correct question for recieved data:{$data}"
$ns trace-annotate "question: $db answer: $dbans($db)"
set ans "$dbans($db)"
switch $str4 {
0 {$ns at 80 "$udp0 send 828 replied:$ans"}
1 {$ns at 80 "$udp1 send 828 replied:$ans"}
2 {$ns at 80 "$udp2 send 828 replied:$ans"}
default {puts "I don't know what the number is"}
}
}
}
set str5 [string equal $flag $flag1]
if {$str5 == "1"} {
$ns trace-annotate "Answer not found in database"
}
}
# Now, schedule some messages to be sent, using the UDP "send" procedure.
# The first argument is the length of the data and the second is the data
# itself. Note that you can lie about the length, as we do here. This allows
# you to send packets of whatever size you need in your simulation without
# actually generating a string of that length. Also, note that the length
# you specify must not be larger than the maximum UDP packet size (the default
# is 1000 bytes)
# if the send procedure is called without a second argument (e.g. "send 100")
# then a packet of the specified length (or multiple packets, if the number
# is too high) will be sent, but without any data. In that case, process_data
# will not be called at the receiver.
$ns at 50.3 "$udp0 send 500 {how are you}"
$ns at 70.5 "$udp1 send 828 hi"
#
# Tell nodes when the simulation ends
#
for {set i 0} {$i < $val(nn) } {incr i} {
$ns at 150.0 "$node_($i) reset";
}
$ns at 150.0 "stop"
$ns at 150.01 "puts \"NS EXITING...\" ; $ns halt"
proc stop {} {
global ns f nf
$ns flush-trace
close $f
close $nf
}
puts "Starting Simulation..."
$ns run
# This is developed by Mr. Jaideep Rao, Final year student in IT, MIT, Manipal
dear sir i tried your script "TCL script to demonstrate Message sending"... thanks for that but i can not get the nam window. I add "exec nam four.nam" command in stop procedure. but it also not showing the nam window.... please help me to get that.
ReplyDeleteThanks and regards
Balaji.m
Sir i am new to ns2. i want to know about channels in NS2 and i want to create number of channels in ns2 please help me to get that
ReplyDeleteThanks and Regards
Balaji.m
Hi,
DeletePlease check whether NAM is installed or not?
For learning NS-2 you better to study NS_2 manuals, which is available in NS-2 website only.
hello sir,
ReplyDeleteI am doing a project in MANET using NS2...i want 2 use the BFS algorithm to find the shortest path... Though i am new to NS2 i was puzzled how to do that..pleas help to sort out this... Thanks in advance sir....
Hi,
DeleteFirst learn the architecture of NS-2, then identify the protocol, which is related to your work and modify according to your requirement.
hello Sir, I would like to know whether network coding is possible in ns2.34. If yes, could you help with some sample codes of network coding, or any other references.
ReplyDeleteDear Nikumani Choudgury,
DeleteDid you find any simple code of network coding?
I have no clue how to start doing NC in ns2.
Thank you
hello sir
ReplyDeleteI am doing project in wsn and using ns2.34+mannasim.
Can u provide me any sample codes for forming clusters of sensor nodes as well as for message sending
I'm doing the same project! working on weighted clustering algorithms... did u find any code? if you find any source code for clustering please send me too,
DeleteThanks a lot
Elnaz
Hello Sir,
ReplyDeleteQuery is how I can get total number of packets node 'A' has forwarded to node 'B'. And total no of packets 'A' gets from 'B'
Pls help me.
Hi,
DeleteYou can calculate it using AWK scripts.
can we send the whole file instead of message. for example: abc.txt instead of any one or two line message ?
ReplyDeleteHi,
DeleteNo, we cant send the file.
hi
ReplyDeletei want implement a clutering algorithm in ns2 (for vanet)
Do you have more documet for implemet Cluster on ns2?
can you help me?
tanks alot.
Hi,
DeleteYou can use LEACH or PEGASIS.
sir..
ReplyDeleteI am doing a Project on MANET in AODV protocol..sir can u tell me how to create an malicious node that will only drop the packets..
Hi,
DeleteThere are some codes available, which fulfills your requirement.
http://elmurod.net/en/index.php/archives/196
hello sir
ReplyDeletewhen i modified dsragent.cc in ns2.34 by using this code then some error is created is below
code:
void MDSRAgent::getRouteForPacket(SRPacket &p, bool retry)
{
Entry *e = request_table.getEntry(p.dest);
Time time = Scheduler::instance().clock();
if snooze==1&&recv.ACK==1
SRPacket rrp = p;
rrp.pkt = p.pkt->copy();
hdr_sr *srh = hdr_sr::access(rrp.pkt);
hdr_ip *iph = hdr_ip::access(rrp.pkt);
hdr_cmn *cmh = hdr_cmn::access(rrp.pkt);
iph>daddr()=Address::instance().create_ipaddr(p.dest.getNSAddr_t(),RT_PORT);
iph->dport() = RT_PORT;
iph>saddr()=Address::instance().create_ipaddr(net_id.getNSAddr_t(),RT_PORT);
iph->sport() = RT_PORT;
cmnh->ptype() = PT_DSR;
cmnh->size() = size_;
cmnh->num_forwards() = 0;
}#endif
void TcpBuS::RouteError(SRPacket& p)
{
hdr_sr *srh = hdr_sr::access(p.pkt);
if (!srh->route_error())
return;
ID who = ID(srh->down_links()[srh->num_route_errors()-1].tell_addr, ::IP);
if (who != net_id && who != MAC_id)
{
return;
if (ch->num_forwards() > rt->rt_hops) {
local_rt_repair(rt, p);
{
return = RERR_L;
if(rt->rt_flags == RTF_UP) {
assert(rt->rt_hops != INFINITY2);
forward(rt, p, NO_DELAY);
{
return = RERR_S;
}
void MDSR::newack(Packet* pkt)
{
hdr_tcp *tcph = hdr_tcp::access(pkt);
register int ackno = tcph->ackno();
int progress = (ackno > highest_ack_);
if (ackno == maxseq_) {
cancel_rtx_timer(); // all data ACKd
} else if (progress) {
set_rtx_timer();
}
if (progress)
highest_ack_ = ackno;
if (t_seqno_ < highest_ack_)
t_seqno_ = highest_ack_; // seq# to send next
hdr_flags *fh = hdr_flags::access(pkt);
iph>daddr()=Address::instance().create_ipaddr(p.dest.getNSAddr_t(),RT_PORT);
iph->dport() = RT_PORT;
iph>saddr()=Address::instance().create_ipaddr(net_id.getNSAddr_t(),RT_PORT);
iph->sport() = RT_PORT;
}
when i add this code in this then we get error:
dsr/dsragent.cc:357:17: error: expected type-specifier before ‘TcpBus’
dsr/dsragent.cc:357:17: error: expected ‘)’ before ‘TcpBus’
dsr/dsragent.cc:357:23: error: cannot convert ‘int*’ to ‘TclObject*’ in return
dsr/dsragent.cc: In member function ‘void DSRAgent::getRouteForPacket(SRPacket&, bool)’:
dsr/dsragent.cc:1489:5: error: ‘snooze’ was not declared in this scope
dsr/dsragent.cc:1489:18: error: ‘recvack’ was not declared in this scope
dsr/dsragent.cc:1530:3: error: ‘endif’ was not declared in this scope
dsr/dsragent.cc:1532:3: error: expected ‘;’ before ‘srh’
dsr/dsragent.cc:1519:11: warning: unused variable ‘srh’ [-Wunused-variable]
dsr/dsragent.cc:1596:6: error: ‘TcpBuS’ has not been declared
dsr/dsragent.cc:1597:1: error: a function-definition is not allowed here before ‘{’ token
dsr/dsragent.cc:2852:1: error: expected ‘}’ at end of input
dsr/dsragent.cc: In member function ‘virtual TclObject* TcpBusClass::create(int, const char* const*)’:
dsr/dsragent.cc:358:3: warning: control reaches end of non-void function [-Wreturn-type]
dsr/dsragent.cc: At global scope:
dsr/dsragent.cc:95:12: warning: ‘dsr_salvage_max_attempts’ defined but not used [-Wunused-variable]
make: *** [dsr/dsragent.o] Error 1
Hi,
DeleteErrors are due to synatax erros. Check the code written by you.
sir.
ReplyDeletei already implemented this in ns 2.35 but showing a result like this...
num_nodes is set 5
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
ns: _o71 hacker:
(_o71 cmd line 1)
invoked from within
"_o71 cmd hacker"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o71" line 2)
(SplitObject unknown line 2)
invoked from within
"_o71 hacker"
sir plz help me its very urgent...i will be grateful..
Hi,
DeleteDid you patch the hacker function?
Hi,
ReplyDeleteI want to disable and enable a node based on its queue size. How can I do this?
Anji.
Hi Anji,
DeleteYou need write a module in mobilenode class and you need to use queue function for getting the status of the node.
Hello sir
ReplyDeletecan we directly use setdest in tcl itself for pause time of individual nodes.
For example: $ns at " $n() setdest "
Is their any provision for adding PAUAE TIME field in it for individual nodes?
Because alternatively on re configuring setdest directory like:
./setdest -n 50 -p 200 -s uniform -m 0.0 -M 50.0 -t 900.0 -x 1000 -y 1000 >scen-50
I got a file scen-50.
How to use this now?
As I try to use
1)set val(cp) "scen-50"
&
2)set val(sc) "scen-50"
but both has no effect on performance.
Please guide me with your knowledge.....
Hi,
DeleteYou can add Pause time in .cc file you can play with it.
Thanks for such a quick response!
DeleteWhere in setdest.cc i should do that change?
also
cant we do it for individual nodes like we do
for destination nodes & speeds
$ns at " $n() setdest x y speed"
pause time field??
HI,
DeleteNo, we cant do it, as we are doing for individual node. You better to change in .cc file.
sir i am unable to do it..
Deleteplease help me out....
how i change
DeleteHi Sir
ReplyDeleteI have used
Mac/802_11 set SlotTime_ 0.000010
Mac/802_11 set SIFS_ 0.000020
Mac/802_11 set CWMax_ 1023
in my tcl script & viaried SIFS values to check throughput.
But in ns directory:
ns/ns-2.35/mac
how can i vary sifs value in mac-802_11.cc or .h file.
Also how to differentiate between 802.11 a/b/g in ns directory within ns directory?
Thanks for this active blog....
Hi,
DeleteVarying SIFS means dynamic or static. In case static you can keep changing the value and try with in TCL script in many places. Dynamic variation means you need write code for it.
thanks sir..
Delete& how to differentiate between 802.11 a/b/g within ns directory?
i tried replacing &SIFSTIME by .000010 then .000008 then .000006 in ns directory ns/ns-2.35/mac
PHY_MIB::PHY_MIB(Mac802_11 *parent).......
....
{parent->bind("SIFS_", &SIFSTime);
but may be failed to recompile..thats why getting unchanged performances for various sifs values...
looking for a solution from you....
Hi,
DeleteUsually we will set MAC 802_11, I have not come across problem in differentiating 802.11 a/b/g.
Regarding modification, try to debug the program by displaying the value in .cc file and see the flow of execution.
Hi Sir
ReplyDeleteThanks alot for helping ns beginners.
I want to implement pcf over dcf in manet, for Qos guarantees in real time data transmission over manet.
What changes in my tcl should I do to send video packets?
& how to create & allocate multiple parallel channels for best effort & high priority data separately?
As I am not getting any clue of how to generate video traffic through CBR application, & its relation & implementation within tcl code.
Also what should be written in tcl code for creating two channels,one separate each for text data & other for video data over manet.
HI,
DeletePlease refer following link:
http://140.116.164.80/~smallko/ns2/myevalvid2.htm
thx sir!
Deleteif i am having a video file of 5 MB,
& want to simulate transmission of that file over mobile adhoc network on ns2.35.
Then what should be done?
As Adhoc is infrastructurless doesnt provide Qos for high priority data.
So I gone through various papers & found the solution that,
I have to first create multiple parallel channel separate for best effort data & high priority data.
Then implement pcf over dcf by next hop selection algorithm.
I have leant to create topology only & dont know further step...
Hi,
DeleteI don't know much about it. If you get any solution, I request you to share in this blog.
I looked for solution almost everywhere in tutorials in ns mailing list..in mohittahiliani blog in http://hpds.ee.ncku.edu.tw/~smallko/ns2/ns2.htm & other blogs..but couldnt move further.
DeleteSir if we want to transmit voice packets rather than video packets..
How can we carry out that?
As there is a realaudio folder in ns directory...
will that be of any use?
& For multiple channels I found we can use
set chan_0_ [new $val(chan)]
set chan_1_ [new $val(chan)]
but dont know how to use them for separate best effort & high priority data.......
So I gone through paper
Delete"Quality of Service Aware MAC Based on IEEE 802.11 for Multihop Ad-Hoc Networks--
authors:- S. Sivavakeesar, G. Pavlou "
& his thesis work.
It contains the algorithm & flowcharts.
Please give me some solution.
Thank You.
just setting the default parameters in tcl will be enough for differentiating a/b/g?
ReplyDeleteam i going in right direction
by passing a value as argument in
parent->bind("SIFS_", &SIFSTime);
in place of &SIFSTime...
Hi,
DeleteDon't initialize the value in &SIFSTime. It is the method to read and initialize the variable from TCL script.
Hi sir
DeleteIn tcl script we write
set val(mac) Mac/802_11 ;# MAC type
But what is done to differentiate different standards.
If I want to implement on 802.11n then that should have different default parameters.
Please clarify sir,I am in a mess!
Also I inserted this line in tcl itself
Mac/802_11 set SIFS_ 0.000020
then .000010 then .000008...
please correct me if i am wrong for changing SIFS values?
This procedure is correct.
DeleteGood evening sir
ReplyDeleteOn using awk for simple simulations for 50 nodes is showing no results,dont know where the problem lies?
Average Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00
and
GeneratedPackets = 45
ReceivedPackets = 0
Packet Delivery Ratio = 0%
Total Dropped Packets = 0
Average End-to-End Delay = 0 ms
And on modifying the location of nodes i am getting the results.
Please throw your light on this issue
Thanks
Hi,
DeletePlease check the condition in AWK script.
Hello Sir
ReplyDeleteFirst of all I thank you for helping us out.
I have generated scenario for 10-20-30-40-50 adhoc nodes,
Now I want to detect hidden terminal problem if any in the scenario & pleasr suggest me the modification I need to carry out in my tcl for removal of the hidden terminal problem.
Hi,
DeleteI didn't get detection of hidden terminal problem. If you can detect why do you call it as hidden? There is solution to solve this problem i.e. RTS and CTS packets.
My guide told me that it cant be done on ns2.
DeleteHidden terminal problem can be removed on NCTUNS(commercialised now).
Is it so?
If no then how that can be implemented on network simulator2.
Thank you
Hi,
DeletePlease check ns-2.34/tcl/edu directory for hidden station folder. It may help you in your research.
Thx for replying!
ReplyDeleteBut sir I am still unable to modify setdest.cc for different pause time.
I want to vary pause time from 10 to 100 in steps of 10 for 50 adhoc nodes.
If you dont mind can you tell me steps to carry out the modification for pause time of say 10?
HI,
DeleteI don't have steps to modify you have to identify the feasibility of modifying the code is setdest.cc. Then find the function which tracks pause time, there you modify according to your requirement.
Hello sir good morning!
DeleteAs given in tutorials to vary pause time,speed range etc,
1. Go to ns directory and run "configure".This creates a makefile for setdest.
2.Go to indep-utils/cmu-scen-gen/setdest. Run "make" , which first creates a stand-alone object file for ~ns/rng.cc and then creates the executable setdest.
3. Run setdest with arguments as shown below:
./setdest [-n num_of_nodes] [-p pausetime] [-s maxspeed] [-t simtime]
[-x maxx] [-y maxy] > [outdir/movement-file]
i reconfigure it for 10 different pause time using above steps & obtained 10 different text files like 10.text,20.text..etc.Then keep them in a folder named "pause time".
Tcl files will now include
puts "Loading scenario file..."
source "pausetime/10.text"
Please verify above steps.
Because on varying pause time it is expected to get different results but getting same results.
The steps you are following is correct. But each time it will execute separately so you won't get the result for single execution.
DeleteThanks Sir!
DeleteI repeated simulation with all scenario files separately.
But there is an error of node definition.
I created topology using scenario generator & scenario files have different variables for nodes.
What should I do?
Thanks sir.
ReplyDeleteIn tcl script we write for MAC type:
set val(mac) Mac/802_11 ;# MAC type
But what is to be done to differentiate between standards a/b/g.
If I want to implement on 802.11g then ?
set val(mac) Mac/802_11 ;# MAC type
this will not be enough I suppose.
HI,
DeleteI need to check, right now I do't know.
Ok sir!
Deletethanks for your replies!
I have suggested this blog to many of my friends!
And they will be benefited in the same way as others like I have been,
under your guidance!
Thank you very much Ashwin. If you get solution please share it in this blog.
DeleteSir I am reading this for multimedia transmission :
ReplyDeletehttp://140.116.164.80/~jhlin5/ns2/ns2.htm
&
http://www.sce.carleton.ca/~amatrawy/mpeg4/
Hope this will help me & other readers!
Thank you
I am getting following error on terminal after loading scenario file;
ReplyDeletecan't read "node_(0)": no such variable
while executing
"$node_(0) set X_ 220.862351576651"
(file "scen-50" line 4)
invoked from within
"source.orig scen-50"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source "scen-50""
(file "scene1.tcl" line 329)
Hi,
DeleteIt says node_(0) is not created, so please check the line which creates node object.
underscore in node definition was the problem.
Deleteyou are pin point correct
thx alot sir!
But now throughput with scenario file is coming out to be :
Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00.
Without scenario file it was:
Throughput[kbps] = 813.02 StartTime=3.10 StopTime=23.05.
What could be the prblem in awk?
Also is it legal to use awk posted in verious blogs?
Thank you sir for helping out!
ReplyDeleteIf without recompiling the kernel
I carry out the changes like:
Increasing the group size say 5,10,20,30,40,50 nodes and check the PDF,JITTER,NRL,Throughput,Delay using awk scripts'& get different results for each tcl & then draw graphs for group size vs PDF,Jitter,NRL.....
Will that be enough to be considered as research work?
Can I publish a paper or in other case submit masters thesis with those results?
Hi,
DeleteYou can consider it as a analysis.
Thank you very much sir!
DeleteOne more question:
About hidden terminal problem type I;
If we created a topology of 500x500 of 100 nodes then most of the nodes will be in carrier sensing & transmitting range of each other.
Then the problem is bound to occur I suppose?
Am I right?
I want to display a message that network is having a hidden terminal.
And which nodes are facing the problem?
Good afternoon sir!
ReplyDeleteUnderscore in node definition was the problem.
You are pin point correct
thx alot sir!
But now throughput with scenario file is coming out to be :
Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00.
Without scenario file it was:
Throughput[kbps] = 813.02 StartTime=3.10 StopTime=23.05.
What could be the problem in awk?
Also is it legal to use awk posted in various blogs?
Ya... You can use.
DeleteThanks Sir!
DeleteAnd why throughput with scenario file is coming out to be :
Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00
hai suyash,
Deletehas your problem sorted out?i am facing the same error as yours. no effect even after varying pause time in setdest utility.can u tell me what is the remedy,
Sir, my ubuntu version is 12.10 and i need to install gcc-4.3 in it..where can i get it? when i tried the command sudo apt-get install gcc-4.3 i am getting the following error
ReplyDeletesudo apt-get install gcc-4.3
[sudo] password for surekha:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gcc-4.3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Can u help me?
Hi,
DeleteThere is no error. It has installed properly.
Hi, can u help me clear this error in run.tcl
ReplyDeleteInvalid command name NetIf/Shared/Media
> > > invoked from within
> > >
> > > "_o16 next _o3 _o27 LL Mac/802_11 Queue/DropTail/PriQueue 50
> Phy/WirelessPhy
> > > Antenna/OmniAntenna _o14 { }"
> > >
> > > ("eval" body line 1)
> > >
> > > invoked from within
> > >
> > > "eval $self next $args"
> > >
> > > (procedure "_o16" line 6)
> > >
> > > (ODMRPNode add-interface line 6)
> > >
> > > invoked from within
> > >
> > > "$node add-interface $channel_(0) [new $opt(prop)] $opt(ll) $opt(mac)
> > > $opt(ifq) $opt(ifqlen) $opt(netif) $opt(ant) $topo \ "
> > >
> > > (procedure "create-mcast-mobile-node" line 19)
> > >
> > > invoked from within
> > >
> > > "create-mcast-mobile-node $i 0 "
> > >
> > > invoked from within
> > >
> > > "if { [string compare $opt(rp) "odmrp"] == 0} {
> > >
> > > for {set i 0} {$i < $opt(nn) } {incr i} {
> > >
> > > create-mcast-mobile-node $i 0
> > >
hi,
ReplyDeletesir tell me coding of difference routing protocols like reactive ,proative and hybrid .i need detail about hybrid differentiated servies architecture
Hi,
DeleteI think following links will help you.
http://en.wikipedia.org/wiki/List_of_ad_hoc_routing_protocols
http://hv.diva-portal.org/smash/record.jsf?pid=diva2:358259
Thank you very much sir!
ReplyDeleteJust One more question:
About hidden terminal problem type I;
If we created a topology of 500x500 of 100 nodes then most of the nodes will be in carrier sensing & transmitting range of each other.
Then the problem is bound to occur I suppose?
Am I right?
I want to display a message that network is having a hidden terminal.
And which nodes are facing the problem?
Dear Sir Ramakrishna
ReplyDeleteI need 802.11n TCl and .cc file in NS2.35. how i will get these. Can u help me in this regard. thanks
waiting
Hi,
DeleteSorry, I could not find source code of IEEE 80.11n.
Sir,
ReplyDeleteI am a research student. I want to to implement fuzzy logic to data transmission in NS2. Is it possible? Can you please suggest me any reference?
Thanking you.
Hi,
DeleteSorry, I don't have any idea about fuzzy logic in NS-2.
Hello Sir,
ReplyDeleteI am M. Tech student doing project on clustering in MANET. Cluster heads are elected base on node degree, speed of node. I am using Random Waypoint Mobility Model to generate nodes' movement. I don't know which ns2 file i should modify or how i should write the algo in c++. I search codes related to clustering in the net but in vain.
Can you please help me with some simple codes about clustering. Will be thankful to you.
Hi,
DeleteThere are so many clustering codes like leach, pegasis, etc. Please try to find source code in net.
Hello Sir ,
ReplyDeleteI have two questions :
1> can we embed any data like some txt or a table in these messages
2> have you used any kind of database , plz help me to understand how the messages are being passed as the first message "how are you" is being verified by database and thn its replying " Fine "
kindly reply it FAST As soon AS Possible...
Hi,
DeleteYou can send messages using char* variables in packet structure. I am not sure about text files. I have not tried. But I have sent messages using char* method. I feel that you can send file in the same method.
I am trying to use three nodes in ur program but while running it is showing an error stating that " cannot read udp2" but i hv already mentioned it .
DeleteI am using following codes if i comment "$ns connect $udp1 $udp2" line then code is running well but with this line its giving the error,
kindly help.
I hv made following modifications in ur above code.
set val(nn) 3 ;# number of mobilenodes
$ns namtrace-all-wireless $nf 670 670
set windowVsTime2 [open win.tr w]
$ns at 10.0 "$node_(1) setdest 45.0 60.0 45.0"
$ns at 15.0 "$node_(2) setdest 60.0 85.0 5.0"
set udp0 [new Agent/UDP]
$ns attach-agent $node_(0) $udp0
array set dbans {
"m1-node0-____-xxxx-sw-____" "received"
"m2-node0-____-yyyy-sw-____" "received"
"m2-node1-____-yyyy-ne-____" "received"
"hi" "Thanks"
"" "Not Found"
}
set udp1 [new Agent/UDP]
$ns attach-agent $node_(1) $udp1
$ns connect $udp0 $udp1
set udp2 [new Agent/UDP]
$ns attach-agent $node_(2) $udp2
$ns connect $udp1 $udp2
$ns at 50.3 "$udp0 send 500 {m1-node0-____-xxxx-sw-____}"
$ns at 60.5 "$udp1 send 828 {m2-node1-____-yyyy-ne-____}"
$ns at 60.5 "$udp0 send 500 {m2-node0-____-yyyy-sw-____}"
$ns at 70.3 "$udp0 send 500 hi"
Dear Sir,
ReplyDeletei want to design static multipath using DSR routing protocol in NS2. can you please help me how to do that because i am new in ns2.
Thank you in Advance..
Hi,
DeleteSearch contributed codes in Wikipedia.
hi sir, can u just send me d ns2 code for sending video and audio packets in a network..
ReplyDeleteHi,
DeleteUse following link:
http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm
Hi sir Ramakrishna
ReplyDeleteI need a code tcl of protocole aodv dynamic (with motion of nodes )
so can you help me because I realy need it !!!!!!!
thnx
Hi,
DeleteYou can use setdest command to generate TCL with mobile nodes. You can also use NSG2.1.
How can i send audio and video packets in a network using ns2?
ReplyDeleteHi,
DeleteYou can use EvalVid patch.
can anyone help me in making the setdest utility's effect in tcl script by varying pause time?i am getting an error as can't read "God_" no such variable while executing etc etc......very very urgent
ReplyDeleteHi,
DeleteI think you are use different TCL scripts, one is form setdest and downloaded one, so it will not be having compatibility.
sir, distance between node (d) and transmission power (Pt) is related by formula Pr=(Pt*Gt*Gr*ht^2*hr^2)/(d^4*L).But when I'm changing the transmission power and even when P_Tx gets equal to zero then to packets are being transmitted.There is no effect of change in transmission power on distance between node in NS2. Plz HELP!!!
ReplyDeleteHi,
DeleteYou can use nodes x and y coordinates for calculating the distance between them. Another method based on the communication delay.
sir, i need enegry efficent aodv protocol ns2 source code
ReplyDeleteHi,
DeleteSorry, I dont have.
Sir,
ReplyDeleteI want to implement virtual network embedding algorithm in ns2 simulator. Can u provide me some source code?
please reply.
Thanks
Hi,
DeleteWhat is virtual network embedding algorithm ?
Hi Sir,
ReplyDeleteNice blog..! Thanks for help the beginners NS. I am using NS2 to simulate OLSR protocol in MANET. How to print queue status on each nodes to trace file? I want an output similar to:
....
....
Node 0 maximum queue 64
Time 50.000 Node 0 current queue 50
Node 1 maximum queue 64
Time 50.000 Node 1 current queue 45
Node 2 maximum queue 64
Time 50.000 Node 2 current queue 57
....
....
How to do that?
please reply,
Thanks.
You need implement the code in the queue you have used.
Deletewhen i try to install ns-2.31 but i saw some errors below:
ReplyDelete/libotcl.a when searching for -lotcl
/usr/bin/ld: cannot find -lotcl
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
—–
i’m a student and i beginer with ns-2
please, help me to solve these errors.
thanks so much
Hi,
DeleteInstall the libraries needed then install ns-2.
Hi Sir, when i install ns-2.31 i saw some errors:
Delete/usr/bin/ld: skipping incompatible /home/dragana/ns-allinone-2.31.mulTFRC/tclcl-1.19/libtclcl.a when searching for -ltclcl
/usr/bin/ld: cannot find -ltclcl
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
--------
i don't know how to solve it,
please help me,
thanks
Hi sir, i want implement flooding hello message in vanet, how to make flooding hello message with tcl scripts ?
ReplyDeletethanks
Hi,
DeleteThe you can use broadcast address and send hello message.
can you give me script example sir ? I can do flood to neighbours, but I don't know received or not hello messages, and use timer expired in helloo message
Deletehello
ReplyDeletethank you for the work that help me
my question
how i know that the message is sent . and recieved by other node
.?
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by the author.
ReplyDeletei m running the puma.tcl example of ns2.35
ReplyDeleteand after executing the pdf. awk
$0 ~/^s.* AGT/ {sendLine ++ ; }
$0 ~/^r.* AGT/ {recvLine ++ ;}
i get:
cbr s:1001 r:15188, r/s Ratio:15.1728, f:0
s > r ==> totally wrong, right ?
where do u think is my problem?
thank you so much
you r helping me too much :)
Hi sir!
ReplyDeleteI am unable to get awk for e-e delay in new trace format.
Can you provide me the link to download.
I am actually tangled in between the two format.
Thanks in advance!
hello sir
ReplyDeletei want to create wireless nodes based on some parameters like battery power, trust value, stability, degree....using this we choose our cluster head(CH) or based on weight based clustering algo...as CH moves new CH will be choosen that has the highest value..
please guide me sir..
thank you
Sir,
ReplyDeletei found ur blog very useful. i have learnt many things. i have one doubt.i have a tcl script in which we assign a value to "nn"(number of nodes).i include sceanrio file and traffic file created by setdest utility and cbrgen.tcl respectively. there is "n" in setdest and "nn" and "mc" in cbrgen.tcl. how do you relate "nn" of tcl,"n" of setdest and "nn" and "mc" of cbrgen.tcl.when i run the tcl script to find pdf or throughput.which value of n that is no.of nodes is used.how values for all these to be assigned.please clarify sir, i am struck here.waiting for your reply.
sir
ReplyDeletecan you help me tcl code for the sequential probability test
sir,
ReplyDeletewhat changes has to be made in tcl script for make use of multirate wireless network?
Hello Sir ,
ReplyDeleteGood Afternoon .
I am a M.tech student and working in ns2 . Sir i want to know how to use scen and cbr file in tcl code .
Hi,
DeleteYou can import the file using following method:
source directory/filename
Hi sir my self naresh, working on ns2 projects. I want to use RED algorithm instead of drop tail for wired cum wireless network. I hav tryed by it is saying "floating point exception". Do we have any parameters to be set for RED.
ReplyDeletenum_nodes is set 2
ReplyDeletewarning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
hii sir.. iam mtech student plz resolve my issues..iam not getting any output by running this program
The output will in .tr file.
Deletehello Sir,
ReplyDeletei want to know that to find the distance between two mobile node we have to use everytime GPS , or any other method is available there by using AODV routing protocol? my guide suggest me. can we find the distance between the source and destination?
hi.
ReplyDeletehow i can contact with u ???
your email address plz ??????????????????????????????
i need to help in implement new clustering algorithm in ns2.
plz assistant me.
thanx
hi !!
ReplyDeletesir i want to add 5 nodes in your program
can you tell me how can i do this so that i can pass message among 5 nodes !!
thanks
You need to use the node creation method, which available in NS-2 Manuals.
DeleteHello Sir,
ReplyDeleteI am a M.E student. I am doing project in Wireless sensor networks using NS-2. I am new to NS-2. Please help me How to calculate the node degree using NS-2?
Thanks,
Raja
Hi,
DeleteWhat do you mean by degree?
Dear Sir,
ReplyDeleteHow can i find the distance between two nodes in ns2 , not manually but from the code?
Hi,
DeleteYou can use nodes x_ and y_ value, then using distance formula you can calculate the distance between 2 nodes.
Hello Sir,
ReplyDeleteCan you help me regarding the tcl code for "Simulation of Congestion control in cloud computing environment using NS2"
Hi,
DeleteSorry, I have not worked in cloud computing in NS2
hiii...m new to ns2....jst wanted to know how to implement watchdog in ns2???
ReplyDeleteif i make changes to aodv.cc and aodv.h...den do i need to compile it or install ns2 once again by cleaning the previous installation????
ReplyDeleteHi,
DeleteYou need compile the NS-2 only when you are doing some changes to the .cc and .h file.
make clean
make
make install
are the steps to be followed.
how to do dis...m a newbie...so really dnt 9 much abt dis....
Deletei want to implement watchdog..i hav d code also wid me...but dnt 9 how to run it...
i want to do point to potint communication in a secure way using encryption or password method
ReplyDeletecan you tell me how can i do this?
Hi,
DeleteThe communication can be implemented with security algorithm like MD5 or SHA-1.
You can configure these c code in ns2.
how to broadcast a packet to all nodes
ReplyDeleteHI,
DeleteYou have to use broadcast id in packet creation period and initialize the dest_ variable in packet.
sir,
ReplyDeletehow multirate transmission for cooperative mac protocol can be incorporated in ns-2?
HI,
DeleteYou are talking about wired or wireless?
sir,
Deletewireless network
Hi,
DeleteThen you can configure each node with different range, BW and capacity.
hey hiii...i want to add malicious node in aodv...
ReplyDeletei followed the link which u gave in ur previous posts...
http://elmurod.net/en/index.php/archives/196
i made tha chnges acc 2 d link...n save it n den run tcl
but i m getting the error...unkonown varible hacker....
Hi,
DeleteThe ns2 need to compiled after any changes.
i compiled using make command....bt again d same error..."can't read ns : no variable found hacker......
Deletehi
ReplyDeleteCan you suggest me measures to minimise e2edelay in aodv protocol?
i tried by varying rxthresh but didnt worked out well.
thanks
Hi,
DeleteE2e delay varies with hops, node distance also, so try changing these parameters also.
Thank You sir,
Deletebut how can we vary hops in tcl.
also why is that for tcp traffic varying Rxthresh is working fine for minimising e2edelay,whereas its not working for cbr traffic.
Please help me out sir.
hey i made certain chnges in aodv.cc and aodv.h n nw m getting segmentation fault...i replaced the changed ones wid d original aodv.cc &aodv.h but still getting d same error....i complied the files n give d commands make clean n make...den also same error???
ReplyDeletedoes it make any differnce if i making chnges in code according to ns2.34 but i hav ns 2.35???
ReplyDeletei edit aodv.cc & aodv.h for making node malicious..bt not successful...can it be one reason???
HI,
DeleteYa there might be difference.
Hello Sir,
ReplyDeleteFrom Where i can find tcl script for the Node-Disjoint Multipath Routing protocol for MANET?
Hello sir,
ReplyDeleteEm an M.Tech student doing ma project in mobile sensor networks in NS2. Em new to dis tool.. I've jus now started simple scripts. I need to implement an algorithm while a node passes a message to its neighbour node. Where i need to implement my algorithm exactly? Is it ok if i make changes in god.cc file?? Please guide me so that i can start my project.. Thanks in advance..
Hi,
DeleteNo, you cant change god.cc, you need work on some protocol file.
Thank you very much 4 d reply sir.. If em taking AODV protocol, where should i include my codings in that file? Also tell me where should i include my own node structures and other data structures that i need to maintain inside every node? Em totally clueless how to start up with.. Plz explain me little bit in detail.. Or can u suggest me any site where i can learn about these things clearly?
DeleteYou need identify the module, which matches exactly with your requirement. First identify the type of the message you are interested. Then see, where it has send and received, modify according to your requirement.
DeleteThanx for the reply. I need to identify the neighbors of a mobile node first and then to send and receive messages. How to identify neighbors? How and where i need to call that neighbor finding function if i have one in my .cc file?
Deletehello sir.. can u tell me that how c++(.cc) file can be run in ns2 on ubuntu???
ReplyDeleteHI,
DeleteYou can call functions and run. Otherwise make the file as part of some protocol and run.
hello sir, can u tell me the solution of this error
ReplyDelete*** glibc detected *** ns: realloc(): invalid next size: 0x08a043b0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x74882)[0x18a882]
/lib/libc.so.6(+0x7772c)[0x18d72c]
/lib/libc.so.6(realloc+0xcf)[0x18f28f]
ns(TclpRealloc+0x23)[0x8452673]
ns(Tcl_Realloc+0x2a)[0x83dbd5a]
ns(Tcl_SetObjLength+0x71)[0x8432c11]
ns(TclpNativeJoinPath+0xad)[0x8407c3d]
ns(Tcl_FSJoinPath+0x324)[0x841a5a4]
ns(Tcl_JoinPath+0x6c)[0x840802c]
ns(TclpInitLibraryPath+0x534)[0x8446474]
ns[0x83fb0aa]
ns(Tcl_FindExecutable+0xff)[0x83fb3af]
ns(Tcl_Main+0x2f)[0x8420a2f]
ns(nslibmain+0x20)[0x83c97c0]
ns(main+0x1b)[0x83c991b]
/lib/libc.so.6(__libc_start_main+0xf5)[0x12f635]
ns[0x81c88d1]
======= Memory map: ========
00116000-002c1000 r-xp 00000000 08:05 144207 /usr/lib/libc-2.15.so
002c1000-002c2000 ---p 001ab000 08:05 144207 /usr/lib/libc-2.15.so
002c2000-002c4000 r--p 001ab000 08:05 144207 /usr/lib/libc-2.15.so
002c4000-002c5000 rw-p 001ad000 08:05 144207 /usr/lib/libc-2.15.so
002c5000-002c8000 rw-p 00000000 00:00 0
002c8000-002e8000 r-xp 00000000 08:05 145002 /usr/lib/libxcb.so.1.1.0
002e8000-002e9000 r--p 0001f000 08:05 145002 /usr/lib/libxcb.so.1.1.0
002e9000-002ea000 rw-p 00020000 08:05 145002 /usr/lib/libxcb.so.1.1.0
00369000-0036a000 r-xp 00000000 00:00 0 [vdso]
00500000-00517000 r-xp 00000000 08:05 150572 /usr/lib/libnsl-2.15.so
00517000-00518000 r--p 00016000 08:05 150572 /usr/lib/libnsl-2.15.so
00518000-00519000 rw-p 00017000 08:05 150572 /usr/lib/libnsl-2.15.so
00519000-0051b000 rw-p 00000000 00:00 0
005a3000-005c2000 r-xp 00000000 08:05 144200 /usr/lib/ld-2.15.so
005c2000-005c3000 r--p 0001e000 08:05 144200 /usr/lib/ld-2.15.so
005c3000-005c4000 rw-p 0001f000 08:05 144200 /usr/lib/ld-2.15.so
0065f000-00688000 r-xp 00000000 08:05 150531 /usr/lib/libm-2.15.so
00688000-00689000 r--p 00029000 08:05 150531 /usr/lib/libm-2.15.so
00689000-0068a000 rw-p 0002a000 08:05 150531 /usr/lib/libm-2.15.so
00e09000-00e0c000 r-xp 00000000 08:05 150253 /usr/lib/libdl-2.15.so
00e0c000-00e0d000 r--p 00002000 08:05 150253 /usr/lib/libdl-2.15.so
00e0d000-00e0e000 rw-p 00003000 08:05 150253 /usr/lib/libdl-2.15.so
08048000-08597000 r-xp 00000000 08:05 793853 /home/smriti/ns-allinone-2.34/ns-2.34/ns
08597000-08633000 rw-p 0054e000 08:05 793853 /home/smriti/ns-allinone-2.34/ns-2.34/ns
08633000-0863b000 rw-p 00000000 00:00 0
08a00000-08a21000 rw-p 00000000 00:00 0 [heap]
43bdf000-43d13000 r-xp 00000000 08:05 144924 /usr/lib/libX11.so.6.3.0
43d13000-43d14000 r--p 00134000 08:05 144924 /usr/lib/libX11.so.6.3.0
43d14000-43d17000 rw-p 00135000 08:05 144924 /usr/lib/libX11.so.6.3.0
43d19000-43d1b000 r-xp 00000000 08:05 144916 /usr/lib/libXau.so.6.0.0
43d1b000-43d1c000 r--p 00001000 08:05 144916 /usr/lib/libXau.so.6.0.0
43d1c000-43d1d000 rw-p 00002000 08:05 144916 /usr/lib/libXau.so.6.0.0
43d43000-43d53000 r-xp 00000000 08:05 145010 /usr/lib/libXext.so.6.4.0
43d53000-43d54000 r--p 0000f000 08:05 145010 /usr/lib/libXext.so.6.4.0
43d54000-43d55000 rw-p 00010000 08:05 145010 /usr/lib/libXext.so.6.4.0
43d57000-43d73000 r-xp 00000000 08:05 144634 /usr/lib/libgcc_s-4.7.2-20120921.so.1
43d73000-43d74000 rw-p 0001b000 08:05 144634 /usr/lib/libgcc_s-4.7.2-20120921.so.1
4ed1c000-4edfc000 r-xp 00000000 08:05 143604 /usr/lib/libstdc++.so.6.0.17
4edfc000-4ee00000 r--p 000e0000 08:05 143604 /usr/lib/libstdc++.so.6.0.17
4ee00000-4ee01000 rw-p 000e4000 08:05 143604 /usr/lib/libstdc++.so.6.0.17
4ee01000-4ee08000 rw-p 00000000 00:00 0
b7703000-b7707000 rw-p 00000000 00:00 0
b7719000-b771b000 rw-p 00000000 00:00 0
bf945000-bf966000 rw-p 00000000 00:00 0 [stack]
Aborted (core dumped)
when m running my tcl scripts this is occure
Hi,
DeleteThe error is due to syntax of dynamic memory creation function. Check online.
sir i cannot under stand how to remove this error plz help me................
Deletegoggle not clear all that
hi please i am trying to set up the simulation with two identical traffic flows going in the opposite directions on a full duplex link.please can i get help
ReplyDeleteHi,
DeleteWhat do you mean by identical flow?
hi can you help how detect selfish nodes MANET
ReplyDeleteHello sir, can we send files which are on our computer, let's say abc.txt from one node to another using ftp?
ReplyDeleteHi,
ReplyDeletei have run this code provided above but it gives an error
ns:
[code omitted because of length]
: missing close-brace
while executing
"Simulator instproc create-wireless-node args {
$self instvar routingAgent_ wiredRouting_ propInstance_ llType_ \
macType_ ifqType_ ifqlen_ phyType_ ch..."
can you help me out with this?
Sir, please reply how to extract and use speed from sumo output file in ns2
ReplyDeleteHi Sir
ReplyDeleteI am in MS thesis in FANETs. I want to replace the routing technique of DSR with any optimized routing technique.
can you help me plz ?