+ All Categories
Home > Documents > MobileInsight€¦ · (c) Huawei Nexus 6P Figure 8: MOBILEINSIGHT message departure rate as a...

MobileInsight€¦ · (c) Huawei Nexus 6P Figure 8: MOBILEINSIGHT message departure rate as a...

Date post: 23-Oct-2020
Category:
Upload: others
View: 9 times
Download: 0 times
Share this document with a friend
40
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 Peking University
Transcript
  • MobileInsightExtracting and Analyzing

    Cellular Network Information on Smartphones Yuanjie Li1, Chunyi Peng2, Zengwen Yuan1, Jiayao Li1, Haotian Deng2, Tao Wang3

    1University of California, Los Angeles2The Ohio State University

    3Peking University

  • “Anytime, Anywhere” Cellular Network Service

    22

  • Critical Cellular Operations to Users/Apps

    33

    Physical Layer (PHY)Link Layer (MAC/RLC/PDCP)

    Radio Resource Control (RRC)Mobility Management (MM)Session Management (SM)

    HardwareSoftware…

  • But They are Closed…

    44

    Physical Layer (PHY)Link Layer (MAC/RLC/PDCP)

    Radio Resource Control (RRC)Mobility Management (MM)Session Management (SM)

    HardwareSoftware? ?

    ? ? ?

  • Can We Have Open Access to Runtime Cellular Network Operations?

    55? ? ?

    Why my 4G phoneswitches to slow 2G?

    Why my phone drainsbattery quickly?

    4 signal bars, butwhy no data service?

  • It’s Not That Simple

    Finegrained

    Fullcoverage

    • No approaches cover all necessary features

    Analysis In-phoneAt scale

    Android APIs ✘ ✔✘ ✘ ✔

    Operator-sidecellular analytics ✔ ✘✔ ✔ ✘

    External Tools(e.g., QXDM) ✔ ✔ ✘ ✘ ✘

    6

  • Our Solution: MobileInsight

    Finegrained

    Fullcoverage

    • A software tool for commodity phones• A community tool that can be built and shared together

    Analysis In-phoneAt scale

    Android APIs ✘ ✔✘ ✘ ✔

    Operator-sidecellular analytics ✔ ✘✔ ✔ ✘

    External Tools(e.g., QXDM) ✔ ✔ ✘ ✘ ✘

    7

    MobileInsight ✔ ✔ ✔ ✔ ✔

  • MobileInsight Overview

    Hardware

    8

    01101PHY

    MAC/RLC/PDCPRRCMMSM

    Software

    Monitor

  • MobileInsight Overview

    State 1 State 3

    State 2

    State 1 State 3

    State 2

    State 1 State 3

    State 2

    9

    HardwareSoftware

    Monitor Analyzers API

  • In-device Runtime MonitorHow to expose runtime cellular messages to user space?

    AnalyzersMonitor API 10

  • AnalyzersMonitor API 11

    HardwareSoftware

    Coarse-grainedcellular info

    Radio Interface Layer

    Challenge: No Ordinary In-device Schemes

    Android APIs

  • AnalyzersMonitor API 12

    HardwareSoftware

    Coarse-grainedcellular info

    Android APIs

    Radio Interface Layer

    Solution: Side-Channel Across SW-HW Boundary

    via USB

    Parsers

    /dev/diag

    Raw cellular messages

    Proxy…

  • Cellular Protocol AnalyticsHow to unveil runtime cellular protocol behaviors?

    AnalyzersMonitor API 13

  • • Operation logic inference• Network side• Non-standardized, operator-specific

    • State dynamics extraction• Device side• Regulated by cellular standards

    Two Dimensions for Each Protocol

    AnalyzersMonitor API

    Handoff decision logic

  • Protocol Analytics: Tracking State Dynamics• Current protocol state, transition events and causes• RRC: Radio connectivity status and power-saving mode• MM: Device registration status• SM: Data session activity and QoS status

    AnalyzersMonitor API 15

  • Protocol Analytics: Tracking State Dynamics• Observation: regulated by the cellular standards

    AnalyzersMonitor API

    RRC conn. setup accept

    RRC conn. setup request

    Downlink data……

    RRC conn. reconfigurationParameters: T1=100ms,

    TshortDRX=20msT2=2 TshortDRX

    3GPP TS 36.331 V12.5.0 (2015-03) Technical Specification

    3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA);

    Radio Resource Control (RRC); Protocol specification

    (Release 12)

    The present document has been developed within the 3rd Generation Partnership Project (3GPP TM) and may be further elaborated for the purposes of 3GPP. The present document has not been subject to any approval process by the 3GPP Organizational Partners and shall not be implemented. This Specification is provided for future development work within 3GPP only. The Organizational Partners accept no liability for any use of this Specification. Specifications and reports for implementation of the 3GPP TM system should be obtained via the 3GPP Organizational Partners' Publications Offices.

    Conn. setup

    T1

    Conn. release

    T2Data

    Data

    Conn. setup

    T1Data T1

    • Reference state machine + runtime message

    16

  • Protocol Analytics: Inferring Operation Logic• Algorithm to determine protocol configurations and actions• Example: handoff decision logic

    AnalyzersMonitor API

    BS 1’s handoff decision logic: • Switch to BS 2 (4G) if • Otherwise, switch to BS 3 (3G) if and

    RSS1(4G) < �110 dBmRSS3(3G) > �90 dBm

    RSS2(4G) > RSS1(4G) + 3 dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    17

  • Inferring Operation Logic is Not Simple• Challenge #1: Non-standardized, carrier-specific operations• Challenge #2: Internal logic, not visible by end device

    AnalyzersMonitor API

    BS 1’s handoff decision logic: • Switch to BS 2 (4G) if • Otherwise, switch to BS 3 (3G) if and

    RSS1(4G) < �110 dBmRSS3(3G) > �90 dBm

    RSS2(4G) > RSS1(4G) + 3 dBm?BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    3GPP TS 36.331 V12.5.0 (2015-03) Technical Specification

    3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA);

    Radio Resource Control (RRC); Protocol specification

    (Release 12)

    The present document has been developed within the 3rd Generation Partnership Project (3GPP TM) and may be further elaborated for the purposes of 3GPP. The present document has not been subject to any approval process by the 3GPP Organizational Partners and shall not be implemented. This Specification is provided for future development work within 3GPP only. The Organizational Partners accept no liability for any use of this Specification. Specifications and reports for implementation of the 3GPP TM system should be obtained via the 3GPP Organizational Partners' Publications Offices.

    18

  • Observation: Operation Logic is Not Arbitrary• Many network-side operations are stateful

    AnalyzersMonitor API

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    BS 1’s handoff decision logic: • Switch to BS 2 (4G) if • Otherwise, switch to BS 3 (3G) if and

    RSS1(4G) < �110 dBmRSS3(3G) > �90 dBm

    RSS2(4G) > RSS1(4G) + 3 dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    19

  • Observation: Operation Logic is Not Arbitrary• Many network-side operations are stateful and interactive

    AnalyzersMonitor API

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    Meas Control: Monitor 4GMeas Report: RSS2> RSS1+3

    Handoff command: to BS2

    BS 1 (4G)

    20

    Solution: Online state machine inference

  • State Machine Inference: Partial Recovery• Runtime sample sequence 1

    AnalyzersMonitor API

    Meas Control: Monitor 4GMeas Report: RSS2> RSS1+3

    Handoff command: to BS2

    BS 1 (4G)

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    21

  • State Machine Inference: Partial Recovery• Runtime sample sequence 2

    AnalyzersMonitor API

    Meas Control: Monitor 4GMeas Report: RSS1 -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    Meas Report: RSS2>-90Handoff command: to BS3

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    22

  • State Machine Inference: Aggregation a

    AnalyzersMonitor API

    Meas Control: Monitor 4GMeas Report: RSS1-90Handoff command: to BS3

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    Monitor 3G&4GMonitor 4G

    Handoff to 4G Handoff to 3G

    RSS1 < -110dBm

    RSS1 > -110dBm RSS1 < -110dBmRSS3 > -90dBm

    RSS2 > RSS1 + 3dBm

    BS 3 (3G)

    BS 2 (4G) BS 1 (4G)

    23

  • MobileInsight APIs

    AnalyzersMonitor 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

  • Showcase ExamplesHow can MobileInsight stimulate new apps and research?

    25

  • Example 1: Fix Our Phone’s Network Failures• How: Track protocol state dynamics• Root cause: device-side misconfiguration• Fix: disable VoLTE when device is in 3G

    Data service setup requestQoS class = 1 (voice)

    ……

    Data service setup rejectCause: QoS unsupportedData service setup request

    QoS class = 1 (voice)Data service setup rejectCause: 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

    HardwareSoftware

    ?4 signal bars, butwhy no data service?

  • Example 2: Boost Our Phone’s Data Speed• How: Analyze inferred handoff decision logic• Root cause: suboptimal FCFS strategy• Advice: disable 2G when 4G is available

    Meas ControlMonitor 2G & 4G

    Meas Report: 2G available

    Meas Report: 4G available(ignored by base station)

    Handoff command: to 2G

    Monitor 2G & 4G

    Handoff to 4GHandoff to 2G

    2G Meas Report 4G Meas Report

    Monitor 2G & 4G

    Handoff to 4GHandoff to 2G

    2G Meas Report 4G Meas Report

    Monitor 2G & 4G

    Handoff to 4GHandoff to 2G

    2G Meas Report 4G Meas Report

    27

    HardwareSoftware

    ?2G

    Why switch to slow 2Gdespite good 4G coverage?

  • Research Empowered by MobileInsight• Security loophole detection, failure resolution, handoff advisor, etc.

    • iCellular [NSDI’16]: Device-customized multi-carrier roaming

    • MMDiag [SIGMETRICS’16]: mobility misconfiguration detection

    28

  • EvaluationCoverage, performance, accuracy and system overhead

    29

  • Wide Coverage of Phone Models

    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 ✔ ✘

    • Current version: rooted Android with Qualcomm chipset• MTK/Intel and iOS support: under development

  • Wide Coverage of Cellular Protocols/Messages• 3G/4G signaling messages and 4G-L1/L2 messages• Characterization of cellular message patterns

    Dataset size 245.24GBTotal messages 72,389,300Protocol 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

  • Real-time Processing of Cellular Messages• 99% messages’ parsing and analyzing within 0.8ms• Worst case observed: 33ms

    0

    20

    40

    60

    80

    100

    0 2 4 6 8 10

    CD

    F (

    %)

    Proc time (ms)

    6PS5

    Tribute

    32

  • Accurate Cellular Protocol Analytics• Tracking Protocol State Dynamics: identical as QXDM• Same cellular message sources

    • Inference of Handoff Operation Logic• 10-fold cross validation: 87.5%~95.3% prediction accuracy

    0

    100

    200

    300

    400

    500

    600

    0 100 200 300 400 500 600

    Dep

    artu

    re r

    ate

    (pkt

    / s)

    Arrival rate (pkt / s)

    y = x

    (a) LG Tribute

    0

    100

    200

    300

    400

    500

    600

    0 100 200 300 400 500 600

    Dep

    artu

    re r

    ate

    (pkt

    / s)

    Arrival rate (pkt / s)

    y = x

    (b) Samsung Galaxy S5

    0

    100

    200

    300

    400

    500

    600

    0 100 200 300 400 500 600

    Dep

    artu

    re r

    ate

    (pkt

    / s)

    Arrival rate (pkt / s)

    y = x

    (c) Huawei Nexus 6PFigure 8: MOBILEINSIGHT message departure rate as a function of arrival rate from hardware cellular interface.

    0 5

    10 15

    0 5000 10000 15000 20000 25000 30000tim

    e (m

    s)

    Tribute S5 6P

    (a) Illustration of 30000 samples with light load:

  • Acceptable System Overhead• CPU utilization: 1%-7%

    • Memory: 30MB at maximum

    • Energy: 11-58mW extra power (on Samsung S5)

    34

  • New Version: v2.1.1• More cellular protocol support

    • Cellular data sharing

    • New APIs for mobile applications

    • In-phone cellular log browser

    • …

    35

  • Toward Open and Large-Scale Cellular Datasets• Initial dataset release• 30+ users, 8 US/Chinese network operators• 13-month collection (Jul 2015 – Sep 2016)• ~245GB 3G/4G cellular traces

    • Everyone can contribute to the dataset anywhere, anytime!• Online trace submission or background data sharing

    36More information:http://metro.cs.ucla.edu/mobile_insight/insightshare.html

  • New Research Opportunities Made PossibleMobile big data analytics Cellular protocol refinements

    Security threats detections Cross-layer app enhancements

    37

  • Conclusion• Open access to cellular operations benefits everyone• Mobile users, researchers, developers and even operators

    • MobileInsight: a first effort toward an open cellular world

    • More community efforts are needed for extension• A tool for the community and by the community

    38

  • Try MobileInsight and explore more!http://metro.cs.ucla.edu/mobile_insightYuanjie Li1, Chunyi Peng2, Zengwen Yuan1, Jiayao Li1, Haotian Deng2, Tao Wang31University of California, Los Angeles2The Ohio State University3Peking University

  • 40


Recommended