Professional Documents
Culture Documents
CN Lab PGM 4
CN Lab PGM 4
Advantages:
Small range network hence more secure
Devices communicate easily with each other without
any problem
AP also manages all stations within this network and
thereby making the network more portable and
manageable
Disadvantages:
BSS contains one AP therefore it does not support
mobility (free moving place)
It only provides short-range wireless communication
As BSS includes only one AP and many devices or
station, every station communicates through the
same medium. Creating problems while
transmission.
Hence limited number of devices are recommended
ESS
An ESS consists of more than one AP. An ESS lets mobile users roam
anywhere within the area covered by multiple Aps
An access point is a device that creates a wireless local area network, or
WLAN
Wireless Simulation
• No physical links
• Configuration work is to setup – Nodes, traffic, and wireless behavior –
Nodes are responsible for queuing (and not links)
• Wireless specific attributes – Antenna type, radio propagation
• Wired links: Doesn’t play direct role – Need to define propagation delay
and bandwidth
• Wireless links: distance plays significant part – Signal strength ∝ 1/d2 –
Bandwidth is built into wireless model – Attribute datarate_ can be set for
Mac/802_11
• Default is 1Mb (NS2.35)
• Routing protocol needs to be defined
• e.g. DSDV for Adhoc routing
• required when a nodes out from a range of current node to another
node.
• Protocol choice depends upon speed of mover node
• Max range of node is defined by power level
• Attribute txPower of node-config parameter
• Value 0.28183815 corresponds to 250m
• The simulation has number of attributes to configure
• common convention - make attribute of 1 object opt
• opt(channel), opt(mac), opt(x), opt(y), …
Creating Wireless Scenario
• Mobile node components in ns2
• Link Layer (LL),
• Interface Queue (IfQ),
• MAC layer,
• Wireless channel
• Radio parameters
• antenna,
• radio-propagation model,
• type of ad-hoc routing
Topology Creation
Config API to Create Wireless Nodes
Topology
Wireless/Radio Parameters
Node movements
Wireless Trace File Format
awk Script
Awk processing script
Simple Wireless - 2 Nodes
• New node APIs which are available as of ns-2.1b6, released January
18, 2000. If you have an earlier version of ns you must upgrade to use
these features
• To simulate a very simple 2-node wireless scenario.
• The topology consists of two mobilenodes, node_(0) and node_(1).
• The mobilenodes move about within an area whose boundary is
defined in this example as 500mX500m.
• The nodes start out initially at two opposite ends of the boundary.
• Then they move towards each other in the first half of the simulation
and again move away for the second half.
• A TCP connection is setup between the two mobilenodes.
• Packets are exchanged between the nodes as they come within hearing
range of one another.
• As they move away, packets start getting dropped.
• Begin by creating a tcl script for the wireless simulation.
• A mobilenode consists of network components like Link Layer (LL),
Interface Queue (IfQ), MAC layer, the wireless channel nodes transmit
and receive signals from etc.
Adhoc Wireless - 6 nodes
Mobile node parameter setup