130 likes | 210 Views
Chapter 16 Mobile Networking in ns. Presenter: Wu-Hong Tsai Date: 2010/11/01. Wireless mode consists of MobileNode MobileNode + additional features multi-hops ad-hoc networks, wireless LAN etc. MobileNode is a split object. MobileNode = basic Node object +
E N D
Chapter 16Mobile Networking in ns Presenter: Wu-Hong Tsai Date: 2010/11/01
Wireless mode consists of MobileNode • MobileNode + additional features multi-hops ad-hoc networks, wireless LAN etc. • MobileNode is a split object. • MobileNode = basic Node object + • moving ability within a given topology, • receiving and transmitting signal from and to the wireless channel • A major difference between MobileNode and Node MobileNode is not connected Links Nodes MobileNodes
Creating wireless topology • Four ad-hoc routing protocols • Destination Sequence Distance Vector (DSDV) • Dynamic Source Routing (DSR) • Temporally Ordered Routing Algorithm (TORA) • Ad-hoc On-demand Distance Vector (AODV) • Code Examples • ~/ns-2.34/tcl/ex/simple-wireless.tcl • ~/ns-2.34/tcl/ex/wireless-test.tcl
Creating Node movements • Code Examples:
Different MAC layer protocols for mobile networking • 802.11 MAC protocol • Contention based MAC protocol • Preamble based TDMA protocol • Time slots • Currently, ns supports a single hop, preamble-based TDMA MAC protocol • GSM, …
Different types of Routing Agents in mobile networking • DSDV • DSR • TORA • AODV
Trace support • The trace support for wireless simulations currently use cmu-trace objects. • CMUTrace/Drop, • CMUTrace/Recv, • CMUTrace/Send • Example: r 160.093884945 _6_ RTR --- 5 tcp 1492 [a2 4 6 800] ------- [65536:0 16777984:0 31 16777984] [1 0] 2 0 • Node ID: 6, UID: 5, TCP packet, Header Size: 1492, Channel: a2 • 65536:0 = 00010000 = 0.1.0:0, 16777984:0 = 01000300 = 1.0.3:0 • TTL: 31, TCP seqno, ackno: [1 0]
Extensions made to CMU’s wireless model (1/2) • Wireless model extended wired + wireless wired-cum-wireless • Wireless model: • multi-hop ad-hoc networks or • wireless LAN • Wireless model extended: • Multiple WLANs connected through wired node • mobileIP
Extensions made to CMU’s wireless model (2/2) • Routing considerations: • Wireless model has no Links concept,wired nodes wireless nodes? • BaseStationNode