170 likes | 396 Views
Bluetooth in NS2. ECM 5078 Course Experiments Kang-Lun Fan NCTU Bun Lab. Nov. 1 st , 2007. Overview. ns2 Support 802.11 (wireless) & 802.3 (wired) Bluetooth : 802.15.1 Use extended module to simulate BlueHoc (IBM) Blueware (MIT) UCBT (University of Cincinnati). Bluetooth.
E N D
Bluetooth in NS2 ECM 5078 Course Experiments Kang-Lun Fan NCTU Bun Lab. Nov. 1st, 2007
Overview ns2 • Support 802.11 (wireless) & 802.3 (wired) • Bluetooth : 802.15.1 • Use extended module to simulate • BlueHoc (IBM) • Blueware (MIT) • UCBT (University of Cincinnati)
Bluetooth • Personal Area Network (PAN) • Low power • Nominal output power = 0 dBm (1 mW) • Low cost • Short range radio • GFSK modulation: BT=0.5, 0.28 < m < 0.35 • 2.4 GHz unlicensed ISM band • Frequency hopping scheme • 79 hop frequencies: f = 2402+k MHz, k= 0,..78 • robust wireless communication
Bluetooth • BER < 10-3 for: • –70dBm input power level. • 11 dB carrier to co-channel interference ratio • Symbol rate = 1 Ms/s. • Slotted channel with slot time = 625 μs. • Time-division duplex (TDD) for full-duplex. • Supports synchronous (voice) channel of 64 kbps in each direction. • Supports asynchronous channels of up to 721 kb/s (asymmetric) or 432.6 kb/s (symmetric).
UCBT • University of Cincinnati - BlueTooth • Baseband • Above baseband • LMP • L2CAP • BNEP • 2 Physical links • Synchronous connection oriented (SCO) • Asynchronous connection less (ACL)
UCBT • Use excluded ns • Different trace format • Tx/Rx/Collision/Lost • bdaddr • state • PAG:Page • CON:connection • src:slot-dst:slot • pktType • lt_addr • Accesscode
UCBT • Frequency • ARQqno • SEQno • Transmission Count • Size (in bits) • Timestamp • packetID:frag# • comment • CLK • <ignore the tailing 0, or use it for you own purpose>
UCBT • Define option • Configure node • $node($i) rt routingalgorithm • $node($i) SchedAlgopollingalgorithm • If using high rate (3mb) • $node(i) set-rate 3 ( node(i) is the master node ) • Set up trace (different from the 802.11 case) • trace-all-XXX [on|off|<filename>] • XXX: tx rx POLL NULL in-air
UCBT • Generating Traffic • CBR on UDP • $ns at time "$node(0) make-bnep-connection $node(i)DH5 DH3 noqos “ (Default[empty] is DH1)
Experiment-2 • Read bt_sample.tcl • Set up parameters • Trace • Polling algorithm • Routing algorithm • Rate • CBR + UDP traffic • Data size • Interpret Trace file • Measure throughput • Compare Polling algorithms
References • http://www.ececs.uc.edu/~cdmc/ucbt/ucbt.html • http://bluehoc.sourceforge.net/
Office Hour • Monday • PM 1:30~3:30 • Friday • AM 10:30~12:00 • Or by appointment via email