MobileInsight
Extracting and Analyzing Cellular Network Information on Smartphones
Yuanjie Li1, Chunyi Peng2, Zengwen Yuan1, Jiayao Li1, Haotian Deng2, Tao Wang3
1University of California, Los Angeles 2The Ohio State University 3Peking University
MobileInsight Extracting and Analyzing Cellular Network Information - - PowerPoint PPT Presentation
MobileInsight Extracting and Analyzing Cellular Network Information on Smartphones Yuanjie Li 1 , Chunyi Peng 2 , Zengwen Yuan 1 , Jiayao Li 1 , Haotian Deng 2 , Tao Wang 3 1 University of California, Los Angeles 2 The Ohio State University 3
Yuanjie Li1, Chunyi Peng2, Zengwen Yuan1, Jiayao Li1, Haotian Deng2, Tao Wang3
1University of California, Los Angeles 2The Ohio State University 3Peking University
2
3
Physical Layer (PHY) Link Layer (MAC/RLC/PDCP) Radio Resource Control (RRC) Mobility Management (MM) Session Management (SM) Hardware Software
4
Physical Layer (PHY) Link Layer (MAC/RLC/PDCP) Radio Resource Control (RRC) Mobility Management (MM) Session Management (SM) Hardware Software
5
Why my 4G phone switches to slow 2G? Why my phone drains battery quickly? 4 signal bars, but why no data service?
Android APIs
✘ ✔ ✘ ✘ ✔
Operator-side cellular analytics
✔ ✘ ✔ ✔ ✘
External Tools (e.g., QXDM)
✔ ✔ ✘ ✘ ✘
6
Android APIs
✘ ✔ ✘ ✘ ✔
Operator-side cellular analytics
✔ ✘ ✔ ✔ ✘
External Tools (e.g., QXDM)
✔ ✔ ✘ ✘ ✘
7
MobileInsight
✔ ✔ ✔ ✔ ✔
Hardware
8
01101
PHY MAC/RLC/PDCP RRC MM SM
Software
Monitor
State 1 State 3 State 2 State 1 State 3 State 2 State 1 State 3 State 2
9
Hardware Software
Monitor Analyzers API
How to expose runtime cellular messages to user space?
Analyzers Monitor API
10
Analyzers Monitor API
11
Hardware Software Coarse-grained cellular info
Radio Interface Layer
Android APIs
Analyzers Monitor API
12
Hardware Software Coarse-grained cellular info Android APIs
Radio Interface Layer
via USB
Parsers /dev/diag
Raw cellular messages
Proxy
How to unveil runtime cellular protocol behaviors?
Analyzers Monitor API
13
Analyzers Monitor API
Handoff decision logic
Analyzers Monitor API
15
Analyzers Monitor API
RRC conn. setup accept RRC conn. setup request Downlink data …… RRC conn. reconfiguration Parameters: T1=100ms, T
shortDRX=20ms
T2=2 T
shortDRX
T1
T2 Data Data
T1 Data T1
16
Analyzers Monitor API
BS 1’s handoff decision logic:
and
RSS1(4G) < −110 dBm RSS3(3G) > −90 dBm RSS2(4G) > RSS1(4G) + 3 dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
17
Analyzers Monitor API
BS 1’s handoff decision logic:
and
RSS1(4G) < −110 dBm RSS3(3G) > −90 dBm RSS2(4G) > RSS1(4G) + 3 dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
18
Analyzers Monitor API
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
BS 1’s handoff decision logic:
and
RSS1(4G) < −110 dBm RSS3(3G) > −90 dBm RSS2(4G) > RSS1(4G) + 3 dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
19
Analyzers Monitor API
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G) Meas Control: Monitor 4G Meas Report: RSS2> RSS1+3 Handoff command: to BS2 BS 1 (4G)
20
Analyzers Monitor API
Meas Control: Monitor 4G Meas Report: RSS2> RSS1+3 Handoff command: to BS2 BS 1 (4G)
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
21
Analyzers Monitor API
Meas Control: Monitor 4G Meas Report: RSS1<-110 Meas Control: Monitor 3G&4G BS 1 (4G)
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
Meas Report: RSS2>-90 Handoff command: to BS3
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
Monitor 4G Handoff to 4G
RSS RSS RSS2 > RSS1 + 3dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
22
Analyzers Monitor API
Meas Control: Monitor 4G Meas Report: RSS1<-110 Meas Control: Monitor 3G&4G BS 1 (4G) Meas Report: RSS2>-90 Handoff command: to BS3
Monitor 3G&4G Monitor 4G Handoff to 4G Handoff to 3G
RSS1 < -110dBm RSS1 > -110dBm RSS1 < -110dBm RSS3 > -90dBm RSS2 > RSS1 + 3dBm
Monitor 4G Handoff to 4G
RSS RSS RSS2 > RSS1 + 3dBm
BS 3 (3G) BS 2 (4G) BS 1 (4G)
23
Analyzers Monitor API
More tutorials: http://metro.cs.ucla.edu/mobile_insight/tutorials.html
src = OnlineMonitor() lte_rrc_analyzer = LteRrcAnalyzer() wcdma_rrc_analyzer = WcdmaRrcAnalyzer() lte_rrc_analyzer.set_source(src) wcdma_rrc_analyzer.set_source(src) src.run()
24
How can MobileInsight stimulate new apps and research?
25
Data service setup request QoS class = 1 (voice) …… Data service setup reject Cause: QoS unsupported Data service setup request QoS class = 1 (voice) Data service setup reject Cause: QoS unsupported
Session_Inactive Active_Pending Session_Active Inactive_Pending Session_Inactive Active_Pending Session_Active Inactive_Pending Session_Inactive Active_Pending Session_Active Inactive_Pending
26
Hardware Software
4 signal bars, but why no data service?
Meas Control Monitor 2G & 4G Meas Report: 2G available Meas Report: 4G available (ignored by base station) Handoff command: to 2G
Monitor 2G & 4G Handoff to 4G Handoff to 2G
2G Meas Report 4G Meas Report
Monitor 2G & 4G Handoff to 4G Handoff to 2G
2G Meas Report 4G Meas Report
Monitor 2G & 4G Handoff to 4G Handoff to 2G
2G Meas Report 4G Meas Report
27
Hardware Software
2G Why switch to slow 2G despite good 4G coverage?
28
Coverage, performance, accuracy and system overhead
29
30
Mobile OS Chipset Feasibility Android Qualcomm ✔ MediaTek ✔ Intel XMM ✔ iOS All ✔ Mobile OS Chipset Feasibility Current Version (2.1.1) Android Qualcomm ✔ ✔ MediaTek ✔ ✘ Intel XMM ✔ ✘ iOS All ✔ ✘
Dataset size 245.24GB Total messages 72,389,300 Protocol Layers 4G-PHY (71.8%), 4G-MAC (9.0%), 4G-PDCP (8.3%), 3G/4G-RRC (10.0%), 3G/4G-MM/SM (0.6%), 3GPP2-EvDo/CDMA (0.3%)
31
20 40 60 80 100 2 4 6 8 10 CDF (%) Proc time (ms) 6P S5 Tribute
32
Table 9: Accuracy for predicting upcoming handoffs.
AT&T T-Mobile Sprint Verizon #Samples 11,050 10,178 10,042 2,741 Accuracy 90.7% 91.8% 95.3% 87.5%
33
34
35
36
More information: http://metro.cs.ucla.edu/mobile_insight/insightshare.html
Mobile big data analytics Cellular protocol refinements Security threats detections Cross-layer app enhancements
37
38
Yuanjie Li1, Chunyi Peng2, Zengwen Yuan1, Jiayao Li1, Haotian Deng2, Tao Wang3
1University of California, Los Angeles 2The Ohio State University 3Peking University
40