Ns Simulation of IEEE SC546 Project (Fall 2002) SOO IL KIM JISUN YOON
SC546 (Fall 2002)Ns Simulation of IEEE Project descriptions Goals Goals Understand the IEEE Understand the IEEE Do wireless LAN simulations using Ns Do wireless LAN simulations using Ns Focus Focus Ad hoc networking Ad hoc networking Collision avoidance (RTS/CTS handshake) Collision avoidance (RTS/CTS handshake)
SC546 (Fall 2002)Ns Simulation of IEEE Wired vs. Wireless Wireless communication Wireless communication No wired links: radio, infrared, laser No wired links: radio, infrared, laser Ad hoc network Ad hoc network Problems in Wireless Network (IEEE ) Problems in Wireless Network (IEEE ) No multi-hop awareness No multi-hop awareness Hidden/ Exposed Hidden/ Exposed Unfairness Unfairness Packet drop is occurred often by errors in transmission layer Packet drop is occurred often by errors in transmission layer (Compare) Problems in Wired network (Compare) Problems in Wired network Major cause of dropped packets: Congestion in Routers Major cause of dropped packets: Congestion in Routers
SC546 (Fall 2002)Ns Simulation of IEEE Hidden/ Exposed node Data transmission from A to B Data transmission from A to B Hidden node =D (possibly Deaf node) Hidden node =D (possibly Deaf node) Cause packet collision Cause packet collision Exposed node=C Exposed node=C Prohibited from transmitting Prohibited from transmitting From “The deaf node problem in Ad hoc wireless LANs” by S. Ray, D. Starobinski, and J.B.Carrunthers
SC546 (Fall 2002)Ns Simulation of IEEE Operations (#1) SR A C B SR A C B SR A C B SR A C B RTS CTS
SC546 (Fall 2002)Ns Simulation of IEEE Operation (#2) Receive RTS: Defer until CTS should have been sent Receive RTS: Defer until CTS should have been sent Receive CTS: Defer until Data should have been sent Receive CTS: Defer until Data should have been sent If you don’t receive CTS or ACK, back off and try it all over again If you don’t receive CTS or ACK, back off and try it all over again (from AS R B C RTS CTS Data ACK RTS CTS RTS CTS
SC546 (Fall 2002)Ns Simulation of IEEE Ns (Network Simulator) A discrete event simulator targeted at networking research A discrete event simulator targeted at networking research The collaboration of USC/ISI, LBL, UCB, and Xerox PARC The collaboration of USC/ISI, LBL, UCB, and Xerox PARC Two main components: Ns, Nam Two main components: Ns, Nam Validation is needed Validation is needed
SC546 (Fall 2002)Ns Simulation of IEEE Ns Support wired/wireless models Support wired/wireless models Traffic models and applications Traffic models and applications Web, FTP, telnet, constant-bit rate, stochastic Web, FTP, telnet, constant-bit rate, stochastic Transport protocols Transport protocols Unicast: TCP(Reno, Vegas, etc.), UDP Unicast: TCP(Reno, Vegas, etc.), UDP Multicast: SRM Multicast: SRM Routing and queueing Routing and queueing Wired routing, ad hoc routing and directed diffusion Wired routing, ad hoc routing and directed diffusion Queueing protocols: RED, drop-tail, etc. Queueing protocols: RED, drop-tail, etc. Physical media Physical media Wired (point-to-point, LANs), wireless (multiple propagation models), satellite Wired (point-to-point, LANs), wireless (multiple propagation models), satellite Tracing, visualization using Nam Tracing, visualization using Nam
SC546 (Fall 2002)Ns Simulation of IEEE Ns Ns Programming Ns Programming Create the event scheduler Create the event scheduler Turn tracing Turn tracing Create network Create network Setup routing Setup routing Insert errors Insert errors Create transport connection Create transport connection Create traffic Create traffic Transmit application-level data Transmit application-level data Using Ns (from
SC546 (Fall 2002)Ns Simulation of IEEE Environments/Configurations set val(chan) Channel/WirelessChannel ;# channel type set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(ant) Antenna/OmniAntenna ;# Antenna type set val(ant) Antenna/OmniAntenna ;# Antenna type set val(ll) LL ;# Link layer type set val(ll) LL ;# Link layer type set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type set val(ifqlen) 50 ;# max packet in ifq set val(ifqlen) 50 ;# max packet in ifq set val(netif) Phy/WirelessPhy ;# network interface type set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(mac) Mac/802_11 ;# MAC type set val(nn) 4 ;# number of mobilenodes set val(nn) 4 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(rp) AODV ;# routing protocol set val(x) 800 set val(x) 800 set val(y) 800 set val(y) 800
SC546 (Fall 2002)Ns Simulation of IEEE Simulation #1 Scenario Scenario Two fixed nodes Two fixed nodes moving within 600m x 600m flat topology moving within 600m x 600m flat topology DSR ad hoc routing DSR ad hoc routing TCP and CBR traffic TCP and CBR traffic Receiver move in and out of range Receiver move in and out of range Results Results Time vs. packets arrived Time vs. packets arrived
SC546 (Fall 2002)Ns Simulation of IEEE Simulation #2 Scenario Scenario Two fixed pairs (4 nodes) Two fixed pairs (4 nodes) moving within 800m x 800m flat topology moving within 800m x 800m flat topology AODV ad hoc routing AODV ad hoc routing TCP and CBR traffic TCP and CBR traffic 2 nodes in each pair communicate each other (hidden node) 2 nodes in each pair communicate each other (hidden node) Results Results Time vs. packets arrived Time vs. packets arrived
SC546 (Fall 2002)Ns Simulation of IEEE Simulation #3 Scenario Scenario Six fixed nodes Six fixed nodes Change Routing algorithm Change Routing algorithm 4 Ad hoc routing: DSR/ DSDV/ AODV/ TORA 4 Ad hoc routing: DSR/ DSDV/ AODV/ TORA The left-most node sends data to the right-most node The left-most node sends data to the right-most node Results Results Time vs. packets arrived Time vs. packets arrived
SC546 (Fall 2002)Ns Simulation of IEEE Further studies Check the effectiveness of RTS/CTS handshake Check the effectiveness of RTS/CTS handshake Consider a lot of nodes in a small space Consider a lot of nodes in a small space More experiments using other traffic model (e.g. burst) More experiments using other traffic model (e.g. burst) Source-level (C++) modification for deeper understanding Source-level (C++) modification for deeper understanding
SC546 (Fall 2002)Ns Simulation of IEEE Useful links Monarch project Monarch project (more links will be added on the web) (more links will be added on the web)
SC546 (Fall 2002)Ns Simulation of IEEE That’s all Thanks. Thanks.