Network Slice | Android 网络切片流程简介和日志分析
关键流程
- TelephonyNetworkFactory
- ConnectivityService
- DNC-0
Key Log | Function |
---|---|
TelephonyNetworkFactory | 接收网络建立和释放请求消息,network request、release network |
ConnectivityService | 调度处理请求,Google Mainline 模块,OEM无法修改 |
DataNetworkController | DNC-0 会有序号 |
日志分析
测试内容:启动测试应用PRIORITIZE_BANDWIDTH(优先带宽)。
网络切片请求,建立PDU会话并连接到默认切片
12-03 15:52:31.663 D/RILJ ( 3497): [UNSL]< UNSOL_SLICING_CONFIG_CHANGED SlicingConfig{urspRules: [UrspRule{precedence: 0, trafficDescriptors: [TrafficDescriptor{dnn: null, osAppId: OsAppId{osAppId: [-105, -92, -104, -29, -4, -110, 92, -108, -119, -122, 3, 51, -48, 110, 78, 71, 20, 80, 82, 73, 79, 82, 73, 84, 73, 90, 69, 95, 66, 65, 78, 68, 87, 73, 68, 84, 72]}}], routeSelectionDescriptor: []}], sliceInfo: []} [PHONE0]
// 收到应用发起网络切片请求(怎么没有)
没有特别配置的时候dataaprofile for network slice 就是 null。
12-03 15:52:31.675 D/DNC-0 ( 3497): onSetupDataNetwork: dataProfile=[DataProfile=null, TrafficDescriptor={mDnn=null, [OsAppId: OS=97a498e3-fc92-5c94-8986-0333d06e4e47, App=PRIORITIZE_BANDWIDTH, differentiator=1, raw=97a498e3fc925c9489860333d06e4e47145052494f524954495a455f42414e445749445448]}, preferred=false],
12-03 15:52:31.675 D/DNC-0 ( 3497): Creating data network on WWAN with [DataProfile=null, TrafficDescriptor={mDnn=null, [OsAppId: OS=97a498e3-fc92-5c94-8986-0333d06e4e47, App=PRIORITIZE_BANDWIDTH, differentiator=1, raw=97a498e3fc925c9489860333d06e4e47145052494f524954495a455f42414e445749445448]}, preferred=false], and attaching 1 network requests to it.
// 15:52:31 发起setup datacall, PDN 建立请求
12-03 15:52:31.690 D/RILJ ( 3497): [2308]> SETUP_DATA_CALL,reason=NORMAL,accessNetworkType=NGRAN,dat