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

《5GC实践篇》之SMF篇(19)策略控制之SMF下发门控策略

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

《5GC实践篇》之SMF篇(19)策略控制之SMF下发门控策略

爱卫生

2023年03月26日 21:41

2.6.4 SMF下发门控策略

一 概述

门控(Gating Control),顾名思义,开门就放行(让用户面报文通过)、关门就丢弃(用户面报文)。门控策略可以

由PCF提供或者SMF本地配置,最终通过N4接口下发给UPF来执行。

门控策略是QER的一个参数,叫Gate Status,可以在N4会话建立或者修改流程中下发给UPF。具体介绍见TS29.244

的5.4.3 Gating Control节。

重要的规范原文有:

“Gating control refers to the process within the UPF of enabling or disabling the forwarding of IP packets, belonging

to a service data flow or detected application's traffic, to pass through to the desired endpoint.

SMF controls the gating in the UPF by creating PDR for the service data flow(s) or application's traffic to be detected,

and by associating a QER, including the Gate Status IE, to the PDRs.

The Gate Status IE indicates whether the service data flow or detected application traffic is allowed to be forwarded

(the gate is open) or shall be discarded (the gate is closed) in the uplink and/or in downlink directions.

UPF shall identify UL and DL flows by the Source Interface IE in the PDI of the PDRs or the Destination Interface IE

in the FARs. UPF shall apply UL and DL gating accordingly.”

翻译过来大意是:

1)SMF把门控规则(Gate Status参数)伴随着QER下发,并关联到PDR。

2)Gate Status参数指明了某个App流量是否应该(上下行方向)被转发还是丢弃。

3)UPF首先要根据PDR中的PDI中的Source Interface参数、或者是FAR中的Destination Interface参数把这个业务的上

行和下行方向流量给识别出来,然后根据门控的指示来决定是丢弃还是转发。

Gate Status参数的取值在TS29.244的8.2.7 Gate Status节中定义,主要包括UL Gate(2个bit)和DL Gate(2个bit)

两个子参数,取值包括0为OPEN,1为CLOSED,2和3为预留值(规范还留了一手)。

二 检查点

本节的检查重点包括:

1)如果是PCF提供门控策略,则SMF能转成正确的N4口的门控策略发下给UPF,如果是SMF本地配置的门控策略,

SMF也能转成正确的N4口门控策略下发给UPF。

2)门控策略关联了QER,QER又关联了PDR,PDR中有对该App业务的具体描述或者App的Id。这样可以对指定业务

(例如VoNR音频流或者BT电驴流量等等)进行门控管理。

3)到UPF侧抓用户面的包,或者在UPF侧用CLI或log来检查特定业务的包被丢弃或转发的统计,与SMF下发的门控策

略一致。

三 消息举例

3.1)检查SMF下发了正确的门控策略给UPF,如下图所示:

可以看到该N4会话建立请求消息中,首先包含了一个PDR,其中PDI部分指明了app的id是app-qq,并且关联了一个

QER,QER ID=1。关联的QER中Gate Status参数的取值是上行开门、下行开门。也就是对QQ这个业务上下行都放

通,能正常转发。

3.2)到UPF侧抓包和查统计,检查UPF已经检测到了QQ业务流量,并且上下行均正常转发,没有丢包。

符合预期。测试项通过。

← 返回 SMF 实践篇