4.2 Clock Drift

Total Page:16

File Type:pdf, Size:1020Kb

4.2 Clock Drift ABSTRACT Title of dissertation TIME-BASED LOCATION TECHNIQUES USING INEXPENSIVE, UNSYNCHRONIZED CLOCKS IN WIRELESS NETWORKS Matthew Yew Mun Mah, Doctor of Philosophy, 2011 Dissertation directed by Professor Ashok Agrawala Department of Computer Science The ability to measure location using time of flight in IEEE 802.11 networks is impeded by the standard clock resolution, imprecise synchronization of the 802.11 protocol, and the inaccuracy of available clocks. To achieve real-time location with accuracy goals of a few meters, we derive new consensus synchronization techniques for free-running clocks. Using consensus synchronization, we improve existing time of arrival (TOA) techniques and introduce new time difference of arrival (TDOA) techniques. With this common basis, we show how TOA is theoretically superior to TDOA. Using TOA measurements, we can locate wireless nodes that participate in the location system, and using TDOA measurements, we can locate nodes that do not participate. We demonstrate applications using off-the-shelf 802.11 hardware that can determine location to within 3m using simple, existing optimization methods. The synchronization techniques extend existing ones providing distributed synchronization for free-running clocks to cases where send times cannot be controlled and adjusted precisely, as in 802.11 networks. These location and synchronization techniques may be applied to transmitting wireless nodes using any communication protocol where cooperating nodes can produce send and receive timestamps. TIME-BASED LOCATION TECHNIQUES USING INEXPENSIVE, UNSYNCHRONIZED CLOCKS IN WIRELESS NETWORKS by Matthew Yew Mun Mah Dissertation submitted to the Faculty of the Graduate School of the University of Maryland, College Park in partial fulfillment of the requirements for the degree of Doctor of Philosophy 2011 Advisory Committee: Professor Ashok Agrawala, Chair/Advisor Professor Bobby Bhattacharjee Professor Udaya Shankar Professor Charles Silio, Dean's Representative Professor Amitabh Varshney c Copyright by Matthew Yew Mun Mah 2011 Contents 1 Introduction1 1.1 Location Technologies..........................2 1.2 Time-based Location...........................4 1.2.1 Synchronization..........................5 1.2.2 Distance Measurements and Location..............6 1.3 Contributions...............................7 1.4 Notation.................................. 10 1.4.1 Distance.............................. 10 1.4.2 Time................................ 11 1.4.3 Wireless Nodes.......................... 12 2 Distance Measurement Primitives and the Location Problem 14 2.1 Time of Arrival (TOA).......................... 15 2.2 Time Difference of Arrival (TDOA)................... 15 2.3 Location Problem............................. 19 2.3.1 Trilateration............................ 20 2.3.2 Hyperbolic Location....................... 22 2.3.3 Alternate Names......................... 24 2.3.4 Anchor Node Geometry..................... 25 2.4 Comparison of TOA and TDOA..................... 26 2.5 Summary and Other Location Problems................ 27 3 Time Measurement 28 3.1 Synchronization.............................. 29 3.1.1 Cristian's Algorithm....................... 30 3.1.2 Simple Network Time Protocol (SNTP)............. 31 3.1.3 IEEE 1588............................. 32 3.1.4 Reference Broadcast Synchronization.............. 33 3.2 Basic Clock Model............................ 34 3.3 Empirical Clock Behavior........................ 35 3.3.1 Experiment Setup......................... 36 3.3.2 Nonlinear Results......................... 37 3.4 Piecewise Linear Clock Model...................... 38 3.4.1 Estimation of Offset....................... 39 3.4.2 Estimation of Clock Drift βb .................. 41 βa ii 3.5 Summary................................. 47 4 Consensus Clock Synchronization 48 4.1 Mathematical Background........................ 50 4.1.1 Matrix Digraphs......................... 51 4.1.2 Perron-Frobenius and Extensions................ 52 4.1.3 Power Method........................... 52 4.2 Clock Drift................................ 54 4.2.1 Clock Drift in Fully Connected Graph............. 54 4.2.2 Clock Drift General Graph.................... 55 4.3 Offset................................... 57 4.3.1 Offset in Fully Connected Graph................ 58 4.3.2 Offset in General Graph..................... 59 4.3.3 Offset Matrix Analysis...................... 59 4.4 Verification by Simulation........................ 64 4.5 Summary and Applications........................ 67 5 PinPoint 69 5.1 Implementation.............................. 71 5.1.1 Atheros Network Cards...................... 73 5.1.2 G2-based Devices......................... 74 5.2 Piecewise, Locally Linear Model..................... 75 5.3 PinPoint TOA............................... 76 5.4 PinPoint TDOA.............................. 77 5.4.1 TDOA Active Target....................... 77 5.4.2 No Send Times.......................... 79 5.4.3 Low Traffic Mobile Node..................... 80 5.5 Card Biases................................ 82 5.6 Error Estimation............................. 83 5.7 Outlier Filtering.............................. 86 5.7.1 Timestamp Stream Filtering................... 87 5.7.2 Distance Filtering......................... 90 5.8 TDOA Distance Measurement Experimental Results.......... 90 5.8.1 Experiment Setup......................... 90 5.8.2 Results............................... 91 5.9 Active Transmitter TDOA Experimental Results............ 92 5.9.1 Experiment Setup......................... 93 5.9.2 Results............................... 94 5.10 PinPoint TOA with G2-based RN-134................. 97 5.10.1 Experiment Setup......................... 97 5.10.2 Results............................... 98 5.11 Summary................................. 101 iii 6 Hybrid TOA-TDOA Analysis 103 6.1 PinPoint.................................. 105 6.2 Goodtry.................................. 108 6.3 Hybrid Information for Location..................... 109 7 PinPoint Usage Cases 111 7.1 Firefighters................................ 112 7.2 Retail Store................................ 113 7.3 Museums................................. 114 7.4 Rogue AP Problem............................ 114 7.4.1 Rogue AP Detection....................... 115 7.4.2 Existing Rogue AP Location................... 117 7.4.3 PinPoint for Rogue AP Location................ 117 7.5 Summary................................. 117 8 Conclusion 118 A Derivations 120 A.1 Point Clock Drift Error Estimation................... 121 A.2 Clock Offset θa!b in Consensus Time Scale............... 122 A.2.1 Consensus Clock Offset...................... 123 A.3 TOA.................................... 125 A.4 TDOA Variants.............................. 126 A.4.1 TDOA with Active Target.................... 126 A.4.2 TDOA without Send Times................... 127 A.4.3 TDOA for Low Traffic Mobile Node............... 128 A.5 Card Bias................................. 129 A.6 Alternate Clock Drift Notation..................... 130 B Existing Time-based Location Systems 131 B.1 Global Positioning System (GPS).................... 132 B.1.1 Assisted GPS (A-GPS)...................... 136 B.1.2 Differential GPS (DGPS)..................... 136 B.1.3 Planned GPS Enhancements................... 137 B.2 Pseudolites................................ 137 B.3 Long Range Aid to Navigation (LORAN), DECCA.......... 138 B.4 Goodtry.................................. 139 B.5 Mobile Phone Tracking.......................... 140 B.5.1 Enhanced Observed Time Difference (E-OTD)......... 140 B.5.2 Advanced Forward Link Trilateration (A-FLT)......... 141 B.5.3 GSM Uplink Time of Arrival (UL-TOA)............ 141 B.6 Combined RF and Ultrasound...................... 142 B.6.1 Cricket............................... 142 B.6.2 Active Bat............................. 142 iv C Sensor Network Localization Problem 144 C.1 Graph Rigidity Theory and Unique Localizability........... 146 C.2 Semidefinite Programming........................ 146 C.3 Spring-Mass Localization......................... 147 D 802.11 Implementation Considerations 149 D.1 Drivers................................... 150 D.1.1 Madwifi-ng............................ 150 D.1.2 ath5k............................... 153 D.2 RN-134.................................. 153 E The Hyperbola and Hyperboloid 156 E.1 Hyperbola................................. 156 E.2 Hyperboloid................................ 158 F Clock Oscillators 161 v Abbreviations ACK Acknowledgement AOA Angle Of Arrival AP Access Point CTS Clear To Send - response to RTS packet DOP Dilution Of Precision GPS Global Positioning System IEEE Institiute of Electrical and Electronics Engineers LBS location-based service LORAN Long Range Aid to Navigation LOS Line of sight MAC Medium Access Control MIMO Multiple-Input Multiple-Output NTP Network Time Protocol RBS Reference Broadcast Synchronization RF Radio Frequency RTS Request To Send SIFS Short InterFrame Spacing - minimum time between packets in 802.11 protocol SNTP Simple Network Time Protocol TDOA Time Difference of Arrival TOA Time of Arrival vi Chapter 1 Introduction The context-aware paradigm of computing exploits available context such as user preferences, time, and location by recognizing that context determines what informa- tion is relevant to a user [72, 31]. For example, if there is a traffic jam on the freeway, a car commuter may wish to adjust her route, but a subway rider may continue as usual. The general notion of context is intentionally vague to
Recommended publications
  • A Survey of Indoor Localization Systems and Technologies Faheem Zafari, Student Member, IEEE, Athanasios Gkelias, Senior Member, IEEE, Kin K
    1 A Survey of Indoor Localization Systems and Technologies Faheem Zafari, Student Member, IEEE, Athanasios Gkelias, Senior Member, IEEE, Kin K. Leung, Fellow, IEEE Abstract—Indoor localization has recently witnessed an in- cities [5], smart buildings [6], smart grids [7]) and Machine crease in interest, due to the potential wide range of services it Type Communication (MTC) [8]. can provide by leveraging Internet of Things (IoT), and ubiqui- IoT is an amalgamation of numerous heterogeneous tech- tous connectivity. Different techniques, wireless technologies and mechanisms have been proposed in the literature to provide nologies and communication standards that intend to provide indoor localization services in order to improve the services end-to-end connectivity to billions of devices. Although cur- provided to the users. However, there is a lack of an up- rently the research and commercial spotlight is on emerging to-date survey paper that incorporates some of the recently technologies related to the long-range machine-to-machine proposed accurate and reliable localization systems. In this communications, existing short- and medium-range technolo- paper, we aim to provide a detailed survey of different indoor localization techniques such as Angle of Arrival (AoA), Time of gies, such as Bluetooth, Zigbee, WiFi, UWB, etc., will remain Flight (ToF), Return Time of Flight (RTOF), Received Signal inextricable parts of the IoT network umbrella. While long- Strength (RSS); based on technologies such as WiFi, Radio range IoT technologies aim to provide high coverage and low Frequency Identification Device (RFID), Ultra Wideband (UWB), power communication solution, they are incapable to support Bluetooth and systems that have been proposed in the literature.
    [Show full text]
  • Real-Time Location Systems and Internet of Things Sensors
    FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO Real-time Location Systems and Internet of Things Sensors Filipe Manuel Ferreira Cordeiro Mestrado Integrado em Engenharia Informática e Computação Supervisor: Miguel Pimenta Monteiro July 25, 2019 Real-time Location Systems and Internet of Things Sensors Filipe Manuel Ferreira Cordeiro Mestrado Integrado em Engenharia Informática e Computação Approved in oral examination by the committee: Chair: Doctor Jorge Alves da Silva External Examiner: Doctor Helena Cristina Coutinho Duarte Rodrigues Supervisor: Doctor António Miguel Pontes Pimenta Monteiro July 25, 2019 Abstract Benefits from locating and tracking assets in industry have led many manufacturers to consider implementing Real-time location systems. Real-time location systems are used for locating and tracking, in real time, objects or people in indoor environments. But unlike satellite-based systems used for outdoor locating, RTLSs still rely on several different technologies each having its own advantages and its disadvantages. Because there isn’t a standard technology for real-time locating and because each industrial scenario can have different requirements and constraints, the selection of the most suitable system, by a manufacturer for its facilities, can be difficult. The use of radio frequency technologies, like Bluetooth or WiFi, in RTLS creates an opportunity to extend mobile tracking devices as IoT sensors. This dissertation aims to better understanding what are the best technologies for using an RTLS in an industrial environment, what are the current RTLS market solutions and demonstrate an integration of such solution into a Manufacturing Execution System. i ii Resumo Os benefícios de localizar e rastrear ativos na indústria levaram muitos fabricantes a considerar a implementação de sistemas de localização em tempo real.
    [Show full text]
  • Location Systems an Introduction to the Technology Behind Location Awareness
    Location Systems An Introduction to the Technology Behind Location Awareness iii Synthesis Lectures on Mobile and Pervasive Computing Editor Mahadev Satyanarayanan, Carnegie Mellon University Mobile computing and pervasive computing represent major evolutionary steps in distributed sys- tems, a line of research and development that dates back to the mid-1970s. Although many basic principles of distributed system design continue to apply, four key constraints of mobility have forced the development of specialized techniques. These include unpredictable variation in network quality, lowered trust and robustness of mobile elements, limitations on local resources imposed by weight and size constraints, and concern for battery power consumption. Beyond mobile computing lies pervasive (or ubiquitous) computing, whose essence is the creation of environments saturated with computing and communication yet gracefully integrated with human users. A rich collection of topics lies at the intersections of mobile and pervasive computing with many other areas of com- puter science. RFID Explained Roy Want 2006 Controlling Energy Demand in Mobile Computing Systems Carla Schlatter Ellis 2007 Application Design for Wearable Computing Dan Siewiorek, Asim Smailagic, and Thad Starner 2008 Location Systems: An Introduction to the Technology Behind Location Awareness Anthony LaMarca and Eyal de Lara 2008 Copyright © 2008 by Morgan & Claypool All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any
    [Show full text]
  • Position Location Techniques in Wireless Communication Systems
    MEE10: 67 Electrical Engineering Emphasis on Telecommunications October 2010 Position Location Techniques in Wireless Communication Systems Master Thesis Ayad M. H. Khalel Supervisor/ Examiner Professor Abbas Mohammed Department of Electrical Engineering School of Engineering Blekinge Institute of Technology Karlskrona, SWEDEN 1 Acknowledgment I wish to express my deep gratitude to Professor Abbas Mohammed for giving me the opportunity to do this thesis work, reading through my thesis draft time after time, giving me so many valuable advice and helping me develop my knowledge in many scientific issues. I am also thankful for his confidence, patience and encouragement through out the thesis work. I would like to express my thanks to my parents, brother and sisters for there support and encouragement. They were always there when I needed them. Thanks again. Ayad M.H. Khalel 2010 Karlskrona 2 CONTENTS ACKNOWLEDGMENT 2 TABLE OF CONTENTS 3 LIST OF FIGURES 5 LIST OF ACRONOMS 6 ABSTRACT 7 CHAPTER 1: POSITION LOCATION IN WIRELESS NETWORKS 8 1.1 Positioning Systems Classification 8 1.1.1 Handset-based positioning 8 1.1.2 Network-based positioning system 8 1.1.3 Hybrid positioning system 9 1.2. Global Positioning System (GPS) 9 1.2.1 The Segments of the GPS 9 1.2.2 The positioning location technique in the GPS 11 1.2. 3 Deferential GPS 11 1.3 Loran system 12 1.4 The positioning location in the Cellular Networks 14 1.4.1 Network-based position location in cellular network 15 1.4.2 Fingerprinting method in the cellular network 17 1.4.3 Assisted GPS
    [Show full text]