[ns] Routing of packets

2006-10-06 Thread Pragasen Mudali

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 

[ns] How to setup - Random Error Generator in NS2

2006-10-06 Thread Aleksandar Smolovic

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] number of packet in the queue

2006-10-06 Thread Bilel Romdhani

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] Implementation of DiffServ for MANETs

2006-10-06 Thread Mohammad Haseeb Zafar

Is their any Implementation of DiffServ for MANETs?
 




[ns] Mac/Simple layer on ns-2

2006-10-06 Thread Andres Fernando Estupinan Lopez

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