[ns] Mac/Simple layer on ns-2
Hi for all, I have some questions about the Mac/Simple layer on ns-2 -Somebody knows what is the basic functionality of the Mac/Simple Layer on ns-2? and for what applications or networks this layer is intended to? -If i want to simulate a generic wireless network ¿can i use this mac layer rather than mac802_11? Thanks in advance for help and comments Best regards, Andrés
[ns] Implementation of DiffServ for MANETs
Is their any Implementation of DiffServ for MANETs?
[ns] number of packet in the queue
i m using ns2.27 and i m trying to extend mac layer ! how can i know the number of the packet in the queue (i want to display that by using printf("...",.) in the mac-802_11.cc)
[ns] How to setup - Random Error Generator in NS2
Hi all, I need to setup link between two nodes where I have RANDOM ERRORS with PER (packet error rate) = 10exp-7, 10exp-6,10exp-5 etc. So, I need to setup Error generator in ns2. Can somebody tell me how to do this? Thanks. A.
[ns] Deference between diff_prob and diff_rate
Hello, What is the deference between diff_prob and diff_rate in directed diffusion implementation? Help me please, Best Regards. - Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.
Re: [ns] problen with traffic generator
You can also use: set opt(interval) [expr 1 / ($opt(rate) + 0.0)] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Matthias Budde > Sent: quinta-feira, 5 de Outubro de 2006 8:28 > To: ns-users@ISI.EDU > Subject: Re: [ns] problen with traffic generator > > > Hi, > > The README is faulty in this case. Try "-rate 4.0" instead of "-rate 4". > That'll work. > > Best, > > -Matt > > Am Donnerstag, 5. Oktober 2006 02:00 schrieb [EMAIL PROTECTED]: > > Message: 15 > > Date: Wed, 4 Oct 2006 19:19:20 +0200 > > From: "Pragasen Mudali" <[EMAIL PROTECTED]> > > Subject: [ns] problen with traffic generator > > To: ns-users@ISI.EDU > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > I want to generate a constant bit rate of 4 packets per second. When > using > > the cbrgen.tcl script with -rate set to 4 I receive this message > "invalid > > sending rate 4". > > The error is generated when executing these lines of code. > > > > set opt(interval) [expr 1 / $opt(rate)] > > if { $opt(interval) <= 0.0 } { > > puts "\ninvalid sending rate $opt(rate)\n" > > exit > > } > > > > I find it strange that a rate of 4 packets per second doesn't work > because > > it is used as an example in the traffic generator's README file. > > What should do to receive a constant bit rate of 4 packets per second? > > > > All help appreciated > > > > Pragasen > >
[ns] Routing of packets
I have created a wireless network of 30 nodes and am using AODV as the routing protocol. after running the simulation I find that the majority of packets are dropped if the destination is outside of the sender's broadcast radius. Effectively the routing protocol does not work because intermediate nodes do not forward packets. Attached is my simulation script. How can I ensure that the intermediate nodes forward packets using the routing protocol? All help is appreciated. #= #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) 30;# number of wireless nodes set val(x) 1000 set val(y) 700 set val(rp) AODV;# routing protocol set val(scen) "scen-1000x700-30-901-1-3";# scenario file set val(cp) "cbr-30-29-8-64";# connection pattern file set val(sim_duration)900;# duration of the simulation run set val(addr_type)flat;# addressing type LL set mindelay_ 50us; LL set delay_ 25us; LL set bandwidth_ 0;# not used Agent/Null set sport_ 0; Agent/Null set dport_ 0; Agent/CBR set sport_ 0; Agent/CBR set dport_ 0; Agent/UDP set sport_ 0; Agent/UDP set dport_ 0; Agent/UDP set packetSize 64; Queue/DropTail/PriQueue set Prefer_Routing_Protocols 1; #= #ADDITIONAL OPTIONS based upon Linksys WRT54G specs #= # unity gain onmidirectional antennas, centered in the node and 1.5m above it Antenna/OmniAntenna set X_0; Antenna/OmniAntenna set Y_0; Antenna/OmniAntenna set Z_1.5; Antenna/OmniAntenna set Gt_ 4.0;# transmit antenna gain (to be finalised) Antenna/OmniAntenna set Gr_ 4.0;# receive antenna gain (to be finalised) ### #DSSS (IEEE 802.11b) Mac/802_11 set SlotTime_ 0.20;#20us Mac/802_11 set SIFS_ 0.10;#10us Mac/802_11 set PreambleLength_72;#72 bits Mac/802_11 set PLCPHeaderLength_48;#48 bits Mac/802_11 set PLCPDataRate_ 1.0e6 Mac/802_11 set dataRate_ 11Mb;# rate for data frames Mac/802_11 set basicRate_ 2Mb;# rate for control frames Mac/802_11 set aarf_ 1;# adaptive auto rate fallback ### Phy/WirelessPhy set L_ 1.0;# system loss factor Phy/WirelessPhy set freq_ 2.462e9;# channel 11. 2.462GHz Phy/WirelessPhy set bandwidth_11Mb;# 11 Mbps channel bandwidth Phy/WirelessPhy set Pt_ 0.063095734;# transmission power in watts Phy/WirelessPhy set CPThresh_ 10.0;# collision threshold (to be finalised) Phy/WirelessPhy set CSThresh_ 3.70789e-09;# carrier sense power Phy/WirelessPhy set RXThresh_ 3.70789e-09;# receive power threshold based on above frequency, transmit power and a distance of 160m; calculated under TwoRayGround model by tools from ns2 ### ErrorModel80211 noise1_ -104 ErrorModel80211 noise2_ -101 ErrorModel80211 noise55_ -97 ErrorModel80211 noise11_ -92 ErrorModel80211 shortpreamble_ 1 ErrorModel80211 LoadBerSnrFile_"ber_snr_choi.txt" #= #MAIN PROGRAM #= # #Initialise golbal variables # set ns_ [new Simulator] set tracefd