5G核心网学习平台
SMF 实践篇 #04

《5GC实践篇》之SMF篇(11)N4接口支持之PDU会话活跃性上报

《5G核心网原理与实践》实践篇 · SMF 网元功能

《5GC实践篇》之SMF篇(11)N4接口支持之PDU会话活跃性上报

爱卫生

2023年03月26日 21:20

2.4.8 PDU会话活跃性上报

一 概述

Q1:PDU会话活跃度是什么?怎么报告?

A1:CU分离之后,SMF可以要求UPF对PDU会话的活跃度(也就是有没有流量产生)状态进行报告,当PDU会话一

段时间没有流量产生,则UPF根据SMF的指示向SMF发送报告。报告类型为:“UPIR:User Plane Inactivity Report”。

对应的规范可以参考TS29.244的5.11 User plane inactivity detection and reporting。

Q2:UPF应该多长时间上报?谁来控制?

A2:这个PDU会话不活跃的监测时间有一个Timer,由SMF通过PFCP会话建立或PFCP会话修改请求消息下发给

UPF,对应的参数叫“User Plane Inactivity Timer”。规范原文是:“The CP function may request the UP function to

detect and report when no user plane packets are received for a PFCP session, by provisioning the User Plane

Inactivity Timer IE in the PFCP Session Establishment Request or PFCP Session Modification Request.”

Q3:为啥要报告?有啥好处?

A3:如果PDU会话长时间不活跃,SMF可根据UPF的上报,对不活跃的PDU会话采取去激活用户面资源的动作,达到

节省网络资源的目的。规范原文是:“Clause 4.3.7 and 4.3.2.2.2 of 3GPP TS 23.502 [29] requires the SMF to be able

to initiate the deactivation of the UP connection of an existing PDU session without user plane activity for a given

inactivity period。”

二 检查点与消息举例

1)检查SMF发出的PFCP Session Establishment(或Modification) Request消息是否设置了User Plane Inactivity

Timer。以下是消息举例:(本消息中设置了PDU会话不活跃计时器取值为60秒,也就是当PDU会话超过60秒都没有

流量产生时,UPF需要向SMF进行上报。)

Packet Forwarding Control Protocol

Flags: 0x21, SEID (S)

Message Type: PFCP Session Establishment Request

Length: 346

SEID: 0x0000000000000000

Sequence Number: 6668888

Spare: 0

Node ID : IPv4 address: 10.10.10.10

Create PDR :

Create PDR :

Create FAR :

Create FAR :

Create QER :

Create QER :

PDN Type : IPv4

F-SEID : SEID: 0x0000000008888666, IPv4 10.10.10.10

User Plane Inactivity Timer :

IE Type: User Plane Inactivity Timer

IE Length: 4

User Plane Inactivity Timer: 60s

2)检查UPF是否根据SMF的指示,发送PDU会话不活跃报告。检查点是看报告类型是不是

UPIR。

Packet Forwarding Control Protocol

Flags: 0x21, SEID

Message Type: PFCP Session Report Request

Length: 17

SEID: 0x0000000006666888

Sequence Number: 0

Spare: 0

Report Type :

IE Type: Report Type

IE Length: 1

Flags: 0x08, UPIR (User Plane Inactivity Report)

0000 .... = Spare: 0

.... 1... = UPIR (User Plane Inactivity Report): True

.... .0.. = ERIR (Error Indication Report): False

.... ..0. = USAR (Usage Report): False

.... ...0 = DLDR (Downlink Data Report): False

← 返回 SMF 实践篇