NS2 downloads,Angular js ,NS2 TCL Scripts,NS2 Install,NS2 Awk,Xgraph,NS2 research,NS2 problems,NS2 trace files, NS2 help,NS2 solutions,NS2 routing protocols download,MAODV download,PUMA download,AODV awk scripts,AODV throughput download,awk script for AODV,energy for AODV,end-toend delay for NS2,jitter for NS2,
Wednesday, 27 March 2013
NS2 Simulation Environment Setup
Subscribe to:
Post Comments (Atom)
hi , how did you control your data rate in your TCL file?
ReplyDeleteI used Mac/802_11 set dataRate_ 1.0e6 to control but, it seems not working
ReplyDeleteBy Default the data rate will be 11 mbps.you can see the effect in trace file. Data rate is the bandwidth ,basic rate is the data transfer
Deleterate
command :
Mac/802_11 set dataRate_ 11Mb
Mac/802_11 set basicRate_ 2Mb
(I'm not good at speaking English Please forgive my bad English)
ReplyDeleteWhy basicRate_ need to set 2Mb, and how do i know what value should i set when i want to set another dataRate_
?
I read mac-802_11.cc at line #1247 to #1260
if(dst != MAC_BROADCAST) {
/* store data tx time for unicast packets */
ch->txtime() = txtime(ch->size(), dataRate_);
dh->dh_duration = usec(txtime(phymib_.getACKlen(), basicRate_)
+ phymib_.getSIFS());
} else {
/* store data tx time for broadcast packets (see 9.6) */
ch->txtime() = txtime(ch->size(), basicRate_);
dh->dh_duration = 0;
}
Does it means broadcast use basicRate_ and unicast use dataRate_ ?
Thank you for your response :)