16
Ns Ns Simulation of IEEE Simulation of IEEE 802.11 802.11 SC546 Project (Fall 2002) SC546 Project (Fall 2002) SOO IL KIM ( SOO IL KIM ( [email protected] [email protected] ) ) JISUN YOON ( JISUN YOON ( [email protected] [email protected] ) )

Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM ([email protected]) [email protected] JISUN YOON ([email protected]) [email protected]

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

NsNs Simulation of IEEE Simulation of IEEE 802.11802.11

SC546 Project (Fall 2002)SC546 Project (Fall 2002)

SOO IL KIM (SOO IL KIM ([email protected]@bu.edu))JISUN YOON (JISUN YOON ([email protected]@bu.edu))

Page 2: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

2SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Project descriptionsProject descriptions

GoalsGoals Understand the IEEE 802.11Understand the IEEE 802.11 Do wireless LAN simulations using NsDo wireless LAN simulations using Ns

FocusFocus Ad hoc networkingAd hoc networking Collision avoidance (RTS/CTS Collision avoidance (RTS/CTS

handshake)handshake)

Page 3: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

3SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Wired vs. WirelessWired vs. Wireless Wireless communicationWireless communication

No wired links: radio, infrared, laserNo wired links: radio, infrared, laser Ad hoc networkAd hoc network

Problems in Wireless Network (IEEE Problems in Wireless Network (IEEE 802.11)802.11) No multi-hop awarenessNo multi-hop awareness Hidden/ ExposedHidden/ Exposed UnfairnessUnfairness Packet drop is occurred often by errors in Packet drop is occurred often by errors in

transmission layertransmission layer (Compare) Problems in Wired network(Compare) Problems in Wired network

Major cause of dropped packets: Congestion in Major cause of dropped packets: Congestion in RoutersRouters

Page 4: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

4SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Hidden/ Exposed nodeHidden/ Exposed node

Data transmission from A to BData transmission from A to B Hidden node =D (possibly Deaf node)Hidden node =D (possibly Deaf node)

Cause packet collisionCause packet collision Exposed node=CExposed node=C

Prohibited from transmittingProhibited from transmitting

From “The deaf node problem in Ad hoc wireless LANs” by S. Ray, D. Starobinski, and J.B.Carrunthers

Page 5: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

5SC546 (Fall 2002) Ns Simulation of IEEE 802.11

802.11 Operations (#1)802.11 Operations (#1)

S R

A

C

B11 22

33 44

S R

A

C

B

S R

A

C

B

S R

A

C

B

RTS

RTS

RTS

CTS

CTS

CTS

Page 6: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

6SC546 (Fall 2002) Ns Simulation of IEEE 802.11

802.11 Operation (#2)802.11 Operation (#2)

Receive RTSReceive RTS: Defer until CTS should have been sent: Defer until CTS should have been sent Receive CTSReceive CTS: Defer until Data should have been sent: Defer until Data should have been sent If you don’t receive CTS or ACK, back off and try it all over If you don’t receive CTS or ACK, back off and try it all over

againagain

(from http://www-ece.rice.edu/!ashu/reneclass/lectures/elec437lecture2.pdf)(from http://www-ece.rice.edu/!ashu/reneclass/lectures/elec437lecture2.pdf)

A S R

B

CRTS

CTS

Data Data

Data

ACK

RTS

CTS

RTS

CTS

Page 7: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

7SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Ns (Network Simulator)Ns (Network Simulator)

A discrete event simulator targeted A discrete event simulator targeted at networking researchat networking research

The collaboration of USC/ISI, LBL, The collaboration of USC/ISI, LBL, UCB, and Xerox PARCUCB, and Xerox PARC

Two main components: Ns, NamTwo main components: Ns, Nam Validation is neededValidation is needed

Page 8: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

8SC546 (Fall 2002) Ns Simulation of IEEE 802.11

NsNs Support wired/wireless modelsSupport wired/wireless models

Traffic models and applicationsTraffic models and applications Web, FTP, telnet, constant-bit rate, stochasticWeb, FTP, telnet, constant-bit rate, stochastic

Transport protocolsTransport protocols Unicast: TCP(Reno, Vegas, etc.), UDPUnicast: TCP(Reno, Vegas, etc.), UDP Multicast: SRMMulticast: SRM

Routing and queueingRouting and queueing Wired routing, ad hoc routing and directed diffusionWired routing, ad hoc routing and directed diffusion Queueing protocols: RED, drop-tail, etc.Queueing protocols: RED, drop-tail, etc.

Physical mediaPhysical media Wired (point-to-point, LANs), wireless (multiple Wired (point-to-point, LANs), wireless (multiple

propagation models), satellitepropagation models), satellite Tracing, visualization using NamTracing, visualization using Nam

Page 9: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

9SC546 (Fall 2002) Ns Simulation of IEEE 802.11

NsNs Ns ProgrammingNs Programming

CCreate the event reate the event schedulerscheduler

TTurn tracingurn tracing CCreate networkreate network SSetup routingetup routing IInsert errorsnsert errors CCreate transport reate transport

connectionconnection CCreate trafficreate traffic TTransmit application-ransmit application-

level datalevel data

Using Ns(from http://www.isi.edu/nsnam/ns/ns-tutorial/)

Page 10: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

10SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Environments/Environments/ConfigurationsConfigurations

set val(chan) Channel/WirelessChannel ;# channel typeset val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation modelset val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(ant) Antenna/OmniAntenna ;# Antenna typeset val(ant) Antenna/OmniAntenna ;# Antenna type set val(ll) LL ;# Link layer typeset val(ll) LL ;# Link layer type set val(ifq) Queue/DropTail/PriQueue ;# Interface queue typeset val(ifq) Queue/DropTail/PriQueue ;# Interface queue type set val(ifqlen) 50 ;# max packet in ifqset val(ifqlen) 50 ;# max packet in ifq set val(netif) Phy/WirelessPhy ;# network interface typeset val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC typeset val(mac) Mac/802_11 ;# MAC type set val(nn) 4 ;# number of mobilenodesset val(nn) 4 ;# number of mobilenodes set val(rp)set val(rp) AODV ;# routing protocol AODV ;# routing protocol set val(x) 800set val(x) 800 set val(y) 800set val(y) 800

Page 11: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

11SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Simulation #1Simulation #1

ScenarioScenario Two fixed nodesTwo fixed nodes moving within 600m x 600m flat moving within 600m x 600m flat

topologytopology DSR ad hoc routingDSR ad hoc routing TCP and CBR trafficTCP and CBR traffic Receiver move in and out of rangeReceiver move in and out of range

ResultsResults Time vs. packets arrivedTime vs. packets arrived

Page 12: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

12SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Simulation #2Simulation #2

ScenarioScenario Two fixed pairs (4 nodes)Two fixed pairs (4 nodes) moving within 800m x 800m flat topologymoving within 800m x 800m flat topology AODV ad hoc routingAODV ad hoc routing TCP and CBR trafficTCP and CBR traffic 2 nodes in each pair communicate each 2 nodes in each pair communicate each

otherother (hidden node) (hidden node) ResultsResults

Time vs. packets arrivedTime vs. packets arrived

Page 13: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

13SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Simulation #3Simulation #3

ScenarioScenario Six fixed nodesSix fixed nodes Change Routing algorithmChange Routing algorithm 4 Ad hoc routing: DSR/ DSDV/ AODV/ 4 Ad hoc routing: DSR/ DSDV/ AODV/

TORATORA The left-most node sends data to the The left-most node sends data to the

right-most noderight-most node ResultsResults

Time vs. packets arrivedTime vs. packets arrived

Page 14: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

14SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Further studiesFurther studies

Check the effectiveness of RTS/CTS Check the effectiveness of RTS/CTS handshakehandshake

Consider a lot of nodes in a small Consider a lot of nodes in a small spacespace

More experiments using other traffic More experiments using other traffic model (e.g. burst)model (e.g. burst)

Source-level (C++) modification for Source-level (C++) modification for deeper understandingdeeper understanding

Page 15: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

15SC546 (Fall 2002) Ns Simulation of IEEE 802.11

Useful linksUseful links

Monarch projectMonarch project http://www.monarch.cs.rice.eduhttp://www.monarch.cs.rice.edu (more links will be added on the web)(more links will be added on the web)

Page 16: Ns Simulation of IEEE 802.11 SC546 Project (Fall 2002) SOO IL KIM (kimsooil@bu.edu) kimsooil@bu.edu JISUN YOON (faithink@bu.edu) faithink@bu.edu

16SC546 (Fall 2002) Ns Simulation of IEEE 802.11

That’s allThat’s all

Thanks.Thanks.