Scherer Bluetooth
-
Upload
prashant-jain -
Category
Documents
-
view
229 -
download
0
Transcript of Scherer Bluetooth
-
7/31/2019 Scherer Bluetooth
1/30
Scatternet Formation in
Bluetooth
CSC 457
Bill Scherer
November 8, 2001
-
7/31/2019 Scherer Bluetooth
2/30
Outline
Introduction
Overview of Bluetooth
Scatternet Formation Protocols
-
7/31/2019 Scherer Bluetooth
3/30
What is Bluetooth?
What is Bluetooth?
Ad Hoc wireless networking
Specification and protocol suite
Initiated by Ericsson in 1994
-
7/31/2019 Scherer Bluetooth
4/30
Why Should I Care About It?
Up and coming
In billions of devices by 2005 (Business Week, 18September 2000)
Cool
Cordless desktop
Briefcase e-mail
Wire-free headphones
Cheap
As little as 29 incremental
80K transistors
-
7/31/2019 Scherer Bluetooth
5/30
Next Up: Overview
Introduction
Overview of Bluetooth
Scatternet Formation Protocols
-
7/31/2019 Scherer Bluetooth
6/30
Physical Layer: Media
2.4 GHz Band (license-free)
Slotted Bandwidth
79 hop frequencies (23 in Japan, France, Spain)
1 MHz each
625sec hop intervals (1600 hops/sec)
10/100 Meter range
Up to 500 kbits/sec bandwidth
-
7/31/2019 Scherer Bluetooth
7/30
Frequency Hopping CDMA
Hop Pattern
Permutation of the available hop frequencies
Clock
Current offset within the hop pattern
Referred to as "Channels"
-
7/31/2019 Scherer Bluetooth
8/30
Organization of Bluetooth
Networks Piconets
Master/Slave
Shared channel
Scatternets
Grouped Piconets
Bridges
Shared Slaves
S
MB
S
SS
MS
S
S
-
7/31/2019 Scherer Bluetooth
9/30
Next Up: Scatternet Formation
Introduction
Overview of Bluetooth
Scatternet Formation Protocols
S
M B
S
S
S
MS
S
S
-
7/31/2019 Scherer Bluetooth
10/30
Scatternet Formation
How do we go from (A) to (B)?
?
??
?
?
?
??
?
?
(A) (B)
S
MB
S
S
S
MS
S
S
-
7/31/2019 Scherer Bluetooth
11/30
Establishing a Connection
0) Slave: must be in Page Scan mode
1) Master: enter Page mode
2) Slave: Slave response to page
3) Master: Master response to slave
4) Slave, Master are now connected
M S
1M S
2M S
3M S
4
-
7/31/2019 Scherer Bluetooth
12/30
Scatternet Topologies
Roughly possible topologies for n
nodes
6 topologies for 3 nodes:
n(n-1)
22
M S
M
S M
S
M M
S
S S
M
S M
M
M S
S
-
7/31/2019 Scherer Bluetooth
13/30
Good Topology Properties
Fully connected
Masters belong to exactly one Piconet
Bridges connect only two Piconets
Avoid overload on the bridge node
Minimal number of Piconets forming
minimal diameter Scatternet
Reduce cost of routing
-
7/31/2019 Scherer Bluetooth
14/30
BTCP (Bluetooth Connection Protocol)
Bluetooth Connection Protocol
Based on Leader Election
Identifying one node to be in charge
Two phase protocol
1) Elect a leader
2) Assign roles
-
7/31/2019 Scherer Bluetooth
15/30
Leader Election
All nodes start with VOTES = 1.
Look for other nodes (send/listen on special
discovery channel) When two nodes meet, higher VOTES
wins, gets all votes and MAC addresses
from loser. Loser enters Page Scan mode
Election ends when no more nodes found
-
7/31/2019 Scherer Bluetooth
16/30
Role Assignment
Winner of election picks "sub-masters" and
bridges for minimum possible Piconets
Winner forms temporary Piconet with sub-
masters, gives them assignment, list of
slaves
Sub-masters page in slaves
-
7/31/2019 Scherer Bluetooth
17/30
-
7/31/2019 Scherer Bluetooth
18/30
-
7/31/2019 Scherer Bluetooth
19/30
-
7/31/2019 Scherer Bluetooth
20/30
LMS
Law, Mehta, Siu from MIT
Randomized, distributed
Multiple rounds, but no separate phases
Every node starts out as a leader
Also assumes all nodes can see each other
-
7/31/2019 Scherer Bluetooth
21/30
During a Round of LMS
Each leader flips a coin to see whether itgoes into Scan or Seek mode
Scan mode: Listen for another node (discovery channel)
If contacted, go into Page Scan mode
Seek Mode Look for slave on discovery channel
Connect via Page
-
7/31/2019 Scherer Bluetooth
22/30
Retirement
Once two leaders connect, one must retire
Invariants for partial Scatternets:
Each leader either has no slave, or has at least
one unshared slave
Each leader has fewer than kslaves in its
Piconet Five cases needed to preserve invariants
-
7/31/2019 Scherer Bluetooth
23/30
Case 1
One leader has no slaves
Join other Piconet and retire (if room)
Take a slave, other leader retires (otherwise)
S
M
SL
S
S
S
M
BL
S
Sretired
-
7/31/2019 Scherer Bluetooth
24/30
Case 2
The two leaders have < k- 1 slaves between
them
S
M
S
S
M
SS
S
M
S
S
S
SS
retired
-
7/31/2019 Scherer Bluetooth
25/30
Case 3
At least k- 1 slaves between the leaders
fill up and retire one of them
retiredS
M
S
S B
S
M
S
S
*
S
M
S
S B
S
M
S
S
*
-
7/31/2019 Scherer Bluetooth
26/30
Cases 4, 5
Special cases to make the algorithm work
Refer to paper if you want the full details
http://perth.mit.edu/~ching/pubs/
PerformanceOfScatternet.pdf
Important thing is that even in these cases,
one of the leaders retires
-
7/31/2019 Scherer Bluetooth
27/30
A Bit of Theory
Time Complexity: BTCP
(n/k) for n nodes, kslaves per Piconet
Due to centralized nature
Time Complexity: LMS
O(log n)
~1/2 the leaders retire each round
-
7/31/2019 Scherer Bluetooth
28/30
Transport Layer: Services
SCO (Synchronous Connection Oriented)
Fixed 64 kbit/sec symmetrical link
2 slots at a time (one each direction)
ACL (Asynchronous Connectionless)
432.6 kbit/sec symmetrical link
721.0/57.6 kbit/sec asymmetrical link 5 slots at a time
Choice: 1 ACL, 3 SCOs, or one of each
-
7/31/2019 Scherer Bluetooth
29/30
FHCDMA Advantages
Resistance to interference
Can still get through on other parts
Resistance to multipath effects
Reflection, like an echo
Multiple access for co-located devices
Multiple simultaneous hop patterns
Graceful bandwidth degradation
-
7/31/2019 Scherer Bluetooth
30/30
Connection States
Active
Sending/Receiving normally
Sniff Typically slaves only
Low-power mode
Not listening on every receive slot Hold (SCO communications only)
Park (not participating)