faster gps via the sparse fourier transformfadel/slides/quicksync-slides.pdftasks beyond gps title...

55
Faster GPS via the Sparse Fourier Transform Haitham Hassanieh Fadel Adib Dina Katabi Piotr Indyk

Upload: others

Post on 26-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Faster GPS via the Sparse Fourier Transform

Haitham HassaniehFadel AdibDina KatabiPiotr Indyk

Page 2: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Faster GPS benefits many applicationsFaster GPS benefits many applications

GPS Is Widely Used

Page 3: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How Do We Improve GPS? 

Need to Improve GPS Synchronization 

Page 4: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

100s of millions of multiplications[Team, Kaplan]

100s of millions of multiplications[Team, Kaplan]

GPS Synchronization

Synchronization is locking onto a satellite’s signal• Consumes 30%‐75% of GPS receiver’s power [ORG447X datasheet, Venus 6 datasheet]

GPS signals are very weak, less than ‐20dB SNR

Page 5: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Goal

Faster Synchronization Algorithm  Reduce number of operations

Reduction in power consumption and delay 

Page 6: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Rest of this Talk

GPS Primer 

Our GPS Synchronization Algorithm 

Empirical Results 

Page 7: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How Does GPS Work?

Compute the distance to the GPS satellites

d1

d3

d2

Page 8: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How Does GPS Work?

Compute the distance to the GPS satellites

d1

d3

d2

distance = propagation delay  speed of lightdistance = propagation delay  speed of light

Page 9: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?

Satellite Transmits CDMA code

CDMA code

Page 10: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?CDMA code

delay

Code arrives shifted by propagation delay

Page 11: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?CDMA code

delay

Receiver knows the code and when the satellite starts transmitting

Page 12: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?

Correlation

delay

Page 13: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?

Correlation

delay

Page 14: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?

Correlation

delay

Page 15: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Compute the Propagation Delay?

Correlation Spike

delay

Spike determines the delay

Page 16: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

GPS Synchronization is a convolution with CDMA code  

Convolution in Time

Multiplication in Frequency

: Number of samples in the code 

Page 17: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

GPS Synchronization is a convolution with CDMA code  

Convolution in Time

Multiplication in Frequency

: Number of samples in the code State of the art GPS synchronization 

algorithm: 

Page 18: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Rest of this Talk

GPS Primer 

Our GPS Synchronization Algorithm 

Empirical Results 

Page 19: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync

• Fastest GPS synchronization algorithm to date

• Analytical complexity:

– for any SNR

– for moderately low SNR

• Empirical Results: – Evaluated on real GPS signals – Improves performance by 2.2x

Page 20: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How can we make GPS synchronization faster than FFT‐Based synchronization?

Page 21: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFTOutput

Page 22: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFT

FFT Stage IFFT Stage

Output

Page 23: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFT

FFT Stage IFFT Stage

Output

Each stage takes 

need to reduce complexity of both stages

Page 24: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFT

FFT Stage IFFT Stage

Output

Page 25: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFT

FFT Stage IFFT Stage

OutputOutput

Sparse

Page 26: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

FFT‐Based GPS Synchronization

Received Signal  FFT Signal 

in Freq. 

FFT of Code

IFFT

FFT Stage IFFT Stage

OutputOutput

SparseSparse IFFT

Page 27: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSyncA Sparse IFFT algorithm customized for GPS 

• Exactly One Spike  Simpler algorithm

• Extends to the FFT‐stage which is different (will discuss later)

Page 28: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

1‐ Bucketize

2‐ Estimate

QuickSync’s Sparse IFFT

Divide output into a few buckets

Estimate the largest coefficient in the largest bucket

Page 29: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

1‐ Bucketize

2‐ Estimate

QuickSync’s Sparse IFFT

Divide output into a few buckets

Estimate the largest coefficient in the largest bucket

So how can we bucketize and estimate efficiently?

Page 30: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Bucketize Efficiently?

IFFTIFFT

output samplesinput samples

Page 31: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Bucketize Efficiently?

IFFTIFFT

IFFTIFFT

output samplesinput samples

Subsamples Buckets

Page 32: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

How to Bucketize Efficiently?

IFFTIFFT

IFFTIFFT

output samplesinput samples

Subsamples BucketsEfficient since: small IFFT of size equal to 

the number bucketsEfficient since: small IFFT of size equal to 

the number buckets

Page 33: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Keep largest bucket; ignore all the rest

• Out of the samples in the large bucket, which one is the spike?

How to Estimate Efficiently?

Largest bucket

Buckets

Page 34: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Keep largest bucket; ignore all the rest

• Out of the samples in the large bucket, which one is the spike?

How to Estimate Efficiently?

Largest bucket

The spike is the sample that has the maximum correlation

Buckets

Page 35: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Keep largest bucket; ignore all the rest

• Out of the samples in the large bucket, which one is the spike?

How to Estimate Efficiently?

Largest bucket

The spike is the sample that has the maximum correlation

BucketsEfficient since: compute correlation only for few 

samples in the largest bucket 

Page 36: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Estimation: 

QuickSync’s Sparse IFFT

• is number of samples• samples per bucket  buckets

Bucketization: 

Page 37: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

FFT Stage Sparse IFFT

Output

Page 38: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

FFT Stage Sparse IFFT

Output

Output is not sparseCannot Use Sparse FFT

Page 39: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

FFT Stage Sparse IFFT

Output

Input to next stage

Page 40: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

FFT Stage Sparse IFFT

Output

Subsampled FFT 

IFFT samples its input 

Need only few samples of FFT output

Page 41: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

Sparse IFFT

Output

Subsampled FFT 

FFT and IFFT are dual of each other

Page 42: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

Sparse IFFT

Output

Subsampled FFT 

Subsampling IFFT BucketizationFFTBucketization

Page 43: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input  FFT Signal in Freq. 

FFT of Code

IFFT

Sparse IFFT

Output

Subsampled FFT 

Page 44: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync Synchronization

Input Subsampled 

FFTSubsampled FFT of Code

Sparse IFFT

Correct delay

Page 45: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Formal Analysis

Theorem: (informally restated) 

For any SNR QuickSync achieves the same accuracy as 

FFT‐Based synchronization and has a complexity of

where  is the number of samples in the code 

For moderately low SNR (i.e. noise is bounded by 

), QuickSync has  complexity

Page 46: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Rest of this Talk

GPS Primer 

Our GPS Synchronization Algorithm 

Empirical Results 

Page 47: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Traces are collected both US and Europe

• Different locations: urban – suburban 

• Different weather conditions: cloudy – clear  

Setup

SciGe GN3S Sampler USRP Software radios

Page 48: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• QuickSync Synchronization

• FFT‐Based Synchronization

Compared Schemes

Page 49: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Hardware implementations 

• Software implementations 

Metrics

Page 50: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

2.1x 

Multiplication Gain

3x 

1.3x

Page 51: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

2.1x 

QuickSync provides an average gain of 2.1x

Multiplication Gain

Page 52: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

QuickSync provides an average gain of 2.2 ×

FLOPS Gain

Page 53: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Does the Gain Depend on the GPS SNR?

QuickSync improves over FFT‐Based for the whole range of GPS  SNRs

Page 54: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

• Past work on GPS [NC91, SA08, RZL11]– QuickSync presents the fastest algorithm to date

• Sparse FFT Algorithms [GMS05, HKIP12a, HKIP12b]– QuickSync’s bucketization leverages duality  reduces the complexity of both stages in GPS 

Related Work

Page 55: Faster GPS via the Sparse Fourier Transformfadel/slides/quicksync-slides.pdftasks beyond GPS Title Microsoft PowerPoint - GPS_mobicom_forPDF.pptx Author haitham Created Date 8/27/2012

Conclusion

• Fastest GPS synchronization algorithm

– for any SNR

– for moderately low SNR

• Empirical results show an average 2x gain

• QuickSync applies to general synchronization tasks beyond GPS