Enhancing Bluetooth TCP Throughput via Packet Type Adaptation Ling-Jyh Chen, Rohit Kapoor, M. Y. Sanadidi, Mario Gerla Dept. of Computer Science, UCLA
ICC Outline of the Talk The problem: Wireless interference and bit errors severely affect TCP efficiency. The opportunity: Bluetooth offers multiple packet type options with different FEC and packet lengths. Moreover, the link layer API provides link error quality information. Opportunity for cross-layer adaptation. Key idea: dynamically select packet type based on measured link quality. The results: we show that the “Adaptive Packet Type” approach in Bluetooth can effectively enhance TCP performance.
ICC Who still remembers Bluetooth? Application Examples Automatic synchronization of calendars, address books, business cards Proximity operation (camera to cellphone, etc) Personal Area Network Designed for “cable” replacement
ICC Bluetooth Physical Link Point to point link master - slave relationship radios can function as masters or slaves ms s s m s Piconet Master can connect to 7 slaves Each piconet has max capacity =1 Mbps Frequency hopping pattern is determined by the master
ICC Piconet Topology Master Active Slave Parked Slave Standby Page - scan protocol Polling
ICC Piconet MAC Protocol : TDM/Polling m s1s1 s2s2 625 µsec f1 f2 f3 f hops/sec f5 f6
ICC Multi Slot Packets m s1s1 s2s2 625 µsec f1 f4 f5 f6 Data rate depends on type of packet
ICC Data Packet Types DM1 DM3 DM5 DH1 DH3 DH5 2/3 FEC No FEC Symmetric Asymmetric Symmetric Asymmetric
ICC Scatternet
10 Bluetooth packet types DH: Stop and Wait ARQ DM: ARQ as well as 2/3 FEC codes to correct single bit errors FEC coding scheme: (15, 10) Hamming code, each block of 10 information bits is encoded into a 15 bit codeword can correcting a single bit error in each block.
ICC Throughput Analysis DH mode: (ARQ) PER: 1 hop Throughput: 2 hop Throughput: DM mode: (ARQ+FEC) PER: 1 hop Throughput: 2 hop Throughput: P: Packet Error Rate, B: Bit Error Rate, S: Packet Size, T: Max Throughput
ICC PER vs BER
ICC ModeBER range DH5< DM5> , and < DM3> , and < DM1> Bluetooth Throughput
ICC Proposed Approach Adaptive Packet Type (APT): In BT specs, the function call, Get_Link_Quality, returns the Quality of the specified Link. We read the returned link Quality Value, and adapt packet type so as to optimize throughput.
ICC Simulation 1: Fixed BER Time: 600 seconds TCP Packet Size: 500 bytes Buffer Size: 9000 bytes
ICC Simulation 2: Varying BER Time: 600 seconds TCP Packet Size: 500 bytes Buffer Size: 9000 bytes BER: changes between and every 1 second
ICC Simulation 3: Measured BER Traces interference experiments using CSR chipset CSR provides LQ vs BER conversion tables : If BER (Bit Error Rate) = 0, LQ (Link Quality) = 255; perfect channel. If BER <= 40/40000, LQ = 255 – BER * If 40/40000 < BER <= 4000/40000, LQ = 215 – ((BER / 32) * 40000). If 4000/40000 < BER <= 40000/40000, LQ = 105 – ((BER / 256) * 40000). Simulation: Time: 600 seconds TCP Packet Size: 500 bytes Buffer Size: 9000 bytes BER: using the BER trace
ICC Simulation 3: measured BER trace
ICC Conclusions In Bluetooth, TCP throughput collapses with BER above 0.03% (eg, BER caused by near interference) APT (Adaptive Packet Type) approach can restore TCP throughput to acceptable values for much higher BER (we tested up to.3%) APT technique can be applied to any wireless link with packet length and FEC options, and with link quality (ie BER) feedback. Further work on BT crosslayer optimization will include: Adaptive optimization of number of retransmissions (for a mix of TCP and real time traffic) Interleaved FEC over multiple frames
ICC T h a n k you