您的当前位置:首页正文

91-NAS 层消息之PDU Session Establishment

2021-05-10 来源:钮旅网
NAS 层消息之PDU Session Establishment

该消息的主要作用是给UE分配ID地址,以及将核心网的一些配置告知给UE,所以在日常工作中,通过PDU Session的建立,可以获取到5GC的一些配置。 24.501在PDU session establishment procedure中定义了三类,分别是UE-requested PDU session establishment procedure initiation、UE-requested PDU session establishment procedure accepted by the network和UE requested PDU session establishment procedure not accepted by the network,下面分别介绍下三个流程。

< Case A > Normal PDU Establishment UE Direction Message Timer UE NW(SMF) -> ULInformationTransfer + UL NAS Transport + PDU SESSION ESTABLISHMENT REQUEST T3580 Start UE DLInformationTransfer + DL NAS T3582 <- NW(SMF) Transport + PDU SESSION ESTABLISHMENT ACCEPT Stop < Case B > No PDU Session Establishment Accept UE Direction Message Timer UE NW(SMF) ULInformationTransfer + -> Transport + PDU SESSION REQUEST UL NAS T3580 ESTABLISHMENT Start T3582 Exire UE Timer UL NAS T3580 ESTABLISHMENT Start T3582 Stop UE No PDU SESSION ESTABLISMENT ACCEPT <- NW(SMF) < Case C > PDU SESSION ESTABLISHMENT REJECT Direction Message UE NW(SMF) ULInformationTransfer + -> Transport + PDU SESSION REQUEST UE DLInformationTransfer + DL NAS Transport <- NW(SMF) + PDU SESSION ESTABLISHMENT REJECT 看下不同消息的结构(包含哪些信息元素) PDU SESSION ESTABLISHMENT REQUEST 方向:UE到网络

Table 8.3.1.1.1: PDU SESSION ESTABLISHMENT REQUEST message content

IEI Information Element Extended protocol discriminator PDU session ID PTI PDU SESSION ESTABLISHMENT REQUEST message identity 9- A- 28 55 B- 39 7B 66 6E 6F 7C Integrity protection maximum data Integrity protection maximum data rate PDU session type SSC mode 5GSM capability Maximum number of supported packet filters Always-on PDU session requested SM PDU DN request container Extended protocol configuration options SM PDU DN request container Extended protocol configuration options O O O O TLV TLV TLV TLV-E 5-257 8 10 4-65538 O O TLV TLV-E 3-255 4-65538 rate PDU session type SSC mode 5GSM capability Maximum number of supported packet filters Always-on PDU session requested O TV 1 O O O O TV TV TLV TV 1 1 3-15 3 M V 2 Type/Reference Extended protocol discriminator PDU session identity Procedure transaction identity Message type Presence M M M M Format V V V V Length 1 1 1 1 Header compression configuration Header compression configuration DS-TT Ethernet port MAC address UE-DS-TT residence time Port management information container UE-DS-TT residence time Port management information container DS-TT Ethernet port MAC address 申请的这些信息内容,均会在PDU session establishment accept消息中下发,具体的内容元素如下:

Table 8.3.2.1.1: PDU SESSION ESTABLISHMENT ACCEPT message content

IEI Information Element Extended protocol discriminator PDU session ID PTI PDU SESSION ESTABLISHMENT ACCEPT message identity 9.2 Type/Reference Extended protocol discriminator PDU session identity 9.4 Procedure transaction identity 9.6 Message type 9.7 PDU session type 9.11.4.11 SSC mode 9.11.4.16 QoS rules 9.11.4.13 Session-AMBR 9.11.4.14 5GSM cause 9.11.4.2 PDU address 9.11.4.10 GPRS timer 9.11.2.3 S-NSSAI 9.11.2.8 Presence M M M M Format V V V V Length 1 1 1 1 59 29 56 22 8- 75 78 79 7B Selected PDU session type Selected SSC mode Authorized QoS rules Session AMBR 5GSM cause PDU address RQ timer value S-NSSAI M M M M O O O O O O O O O V V LV-E LV TV TLV TV TLV TV TLV-E TLV-E TLV-E TLV-E 1/2 1/2 6-65538 7 2 7, 11 or 15 2 3-10 1 7-65538 7-1503 6-65538 4-65538 Always-on PDU session indication Always-on PDU session indication 9.11.4.3 Mapped EPS bearer contexts EAP message Mapped EPS bearer contexts 9.11.4.8 EAP message 9.11.2.2 Authorized QoS flow descriptions QoS flow descriptions 9.11.4.12 Extended protocol configuration options Extended protocol configuration options 9.11.4.6 DNN 9.11.2.1B 5GSM network feature support 9.11.4.18 Serving PLMN rate control 9.11.4.20 25 17 18 DNN 5GSM network feature support Serving PLMN rate control O O O TLV TLV TLV 3-102 3-15 4 77 C- 66 ATSSS container Control plane only indication ATSSS container 9.11.4.22 Control plane only indication 9.11.4.23 O O O TLV-E TV TLV 3-65538 1 5-257 Header compression configuration Header compression configuration 9.11.4.24 看个现网收集的LOG value Non-Access-Stratum 5GS (NAS)PDU ::= {

Plain NAS 5GS Message {

Extended protocol discriminator: 5G session management messages (46)

PDU session identity: PDU session identity value 5 (5) Procedure transaction identity: 5

Message type: PDU session establishment accept (0xc2) 0001 .... = Selected SSC mode: SSC mode 1 (1) PDU session type - Selected PDU session type {

.... 0010 = PDU session type: Ipv6 (2) }

QoS rules - Authorized QoS rules {

Length: 9 QoS rule 1 {

QoS rule identifier: 1 Length: 6

001. .... = Rule operation code: Create new QoS rule (1) ...1 .... = DQR: The QoS rule is the default QoS rule .... 0001 = Number of packet filters: 1 Packet filter 1 {

..11 .... = Packet filter direction: Bidirectional (3) .... 1111 = Packet filter identifier: 15 Length: 1

Packet filter component 1 {

Packet filter component type: Match-all type (1) } }

QoS rule precedence: 255 0... .... = Spare: 0 .0.. .... = Spare: 0

..00 0001 = Qos flow identifier: 1 } }

Session-AMBR {

Length: 6

Unit for Session-AMBR for downlink: value is incremented in multiples of 4 Kbps (2)

Session-AMBR for downlink: 104860 Kbps (26215)

Unit for Session-AMBR for uplink: value is incremented in multiples of 4 Kbps (2)

Session-AMBR for uplink: 104860 Kbps (26215) }

5GSM cause {

Element ID: 0x59

5GSM cause: PDU session type IPv6 only allowed (51) }

PDU address {

Element ID: 0x29 Length: 9

.... 0010 = PDU session type: IPv6 (2) PDU address information: 0000000000000001 }

S-NSSAI {

Element ID: 0x22 Length: 1

Slice/service type (SST): 1 }

Mapped EPS bearer contexts {

Element ID: 0x75 Length: 17

Mapped EPS bearer context 1 {

0101 .... = EPS bearer identity: 5 Length: 14

01.. .... = Operation code: Create new EPS bearer (1)

..1. .... = DEB bit: the EPS bearer is the default EPS bearer (1)

...1 .... = E bit: parameters list is included (1) .... 0010 = Number of EPS parameters: 2

EPS parameter 1 - Mapped EPS QoS parameters {

EPS parameter identity: Mapped EPS QoS parameters (1) Length: 5

Quality of Service Class Identifier (QCI): QCI 5 (5) Maximum bit rate for uplink: 0 kbps Maximum bit rate for downlink: 0 kbps Guaranteed bit rate for uplink: 0 kbps Guaranteed bit rate for downlink: 0 kbps }

EPS parameter 2 - APN-AMBR {

EPS parameter identity: APN-AMBR (4) Length: 4

APN-AMBR for downlink: 8640 kbps APN-AMBR for uplink: 8640 kbps

APN-AMBR for downlink (extended): 104 Mbps Total APN-AMBR for downlink: 104.000 Mbps APN-AMBR for uplink (extended): 104 Mbps Total APN-AMBR for uplink: 104.000 Mbps } } }

QoS flow descriptions - Authorized {

Element ID: 0x79 Length: 9

QoS flow description 1 {

..00 0001 = Qos flow identifier: 1

001. .... = Operation code: Create new QoS flow description (1)

.1.. .... = E bit: 1

..00 0010 = Number of parameters: 2 Parameter 1 - 5QI {

Parameter identifier: 5QI (1) Length: 1 5QI: 5 }

Parameter 2 - EPS bearer identity {

Parameter identifier: EPS bearer identity (7) Length: 1

0101 .... = EPS bearer identity: 5 } } }

Extended protocol configuration options {

Element ID: 0x7b Length: 80

[Link direction: Network to MS (1)] 0... .... = Extension: False

.... .000 = Configuration Protocol: PPP for use with IP PDP type or IP PDN type (0)

PDU session type

8

7

6

5

4 0 Spare 3

2

1

PDU session type IEI PDU session type value octet 1 Figure 9.11.4.11.1: PDU session type information element

由三部分组成,主要是前面3bit表示PDU Session Type,不同的值表示如下:

Table 9.11.4.11.1: PDU session type information element

PDU session type value (octet 1, bit 1 to bit 3) Bits 3 2 1 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 1 IPv4 IPv6 IPv4v6 Unstructured Ethernet reserved All other values are unused and shall be interpreted as \"IPv4v6\or the network. 5GSM cause

表示建立拒绝的原因,用8个bit位表示。

PDU SESSION ESTABLISHMENT REJECT的原因有很多。 #26 insufficient resources(资源不足)

当在PDU SESSION ESTABLISHMENT REJECT消息中包括5GSM原因值26“资源不足”时,SMF可以在PDU SESSION ESTABLISHMENT REJECT消息中包括Back-off timer。如果5GSM原因值为#26“资源不足”,并且PDU SESSION ESTABLISHMENT REQUEST消息是从所选PLMN中配置为高优先级访问的UE接收的,或者请求类型设置为“initial emergency request”或“existing emergency PDU session”,则网络不应包括Back-off timer。 如果由于UPF中的资源不可用而无法建立PDU会话,则SMF应在PDU会话建立拒绝消息

的5GSM原因中包含5GSM原因值#26“资源不足”。 5G接入网无法转发消息:

如果SMF基于3GPP TS 29.502中指定的n2SmInfo属性的内容确定携带PDU会话建立接受的 DL NAS TRANSPORT消息没有被5G接入网络转发给UE,则SMF应拒绝PDU会话建立过程,5GSM原因设置为#26“资源不足”在PDU SESSION ESTABLISHMENT REJECT消息。

#27 missing or unknown DNN(缺失或未知DNN)

#28 unknown PDU session type(未知PDU Session类型)

如果PDU会话建立请求消息包括设置为“IPv6”的PDU会话类型,并且订阅、SMF配置或两者都不支持所请求DNN的“IPv4”和“IPv6”PDU会话类型,SMF应在PDU会话建立拒绝消息的5GSM原因中包含5GSM原因值28“未知PDU会话类型”。

如果PDU会话建立请求消息包括设置为“IPv4”的PDU会话类型,并且订阅、SMF配置或两者都不支持请求的DNN的“IPv4”和“IPv6”PDU会话类型,SMF应在PDU会话建立拒绝消息的5GSM原因中包含5GSM原因值28“未知PDU会话类型”。

如果PDU会话建立请求消息包括设置为“IPv4v6”的PDU会话类型IE,并且订阅、SMF配置或两者都不支持所请求的DNN的“IPv4v6”、“IPv4”和“IPv6”PDU会话类型,则SMF应在PDU会话的5GSM原因中包含5GSM原因值28“未知PDU会话类型”建立拒绝消息。

如果PDU会话建立请求消息包括PDU会话类型IE设置为“Unstructured”或“Ethernet”,并且订阅、SMF配置或两者都不支持请求DNN的PDU会话类型,SMF应在PDU会话建立拒绝消息的5GSM原因IE中包含5GSM原因值28“未知PDU会话类型”。

#29 user authentication or authorization failed(用户身份验证或授权失败)

如果执行了UE的DN认证并且未成功完成,SMF应在PDU会话建立拒绝消息的5GSM原因中包含5GSM原因值29“用户认证或授权失败”,并将PDU会话建立拒绝消息的EAP消息设置为IETF RFC 3748中规定的EAP-failure消息,由DN提供。

PDU DN请求容器中外部DN的PDU会话身份验证和授权信息不符合本地策略和用户的订阅数据。如果正在建立的PDU会话是非紧急PDU会话,则由于本地策略,需要外部DN对PDU会话进行身份验证和授权且PDU DN请求容器中用户的订阅数据和外部DN的PDU会话认证和授权信息不符合本地策略和用户的订阅数据,SMF应拒绝包括5GSM原因在内的PDU会话建立请求#29“用户认证或授权失败”,在PDU会话建立拒绝消息。

#31 request rejected, unspecified #32 service option not supported

#33 requested service option not subscribed #35 PTI already in use #38 network failure

#46 out of LADN(Local Area Data Network) service area

当UE位于LADN服务区之外时,如果UE请求LADN建立PDU会话,则SMF应在PDU会话建立拒绝消息的5GSM原因IE中包含5GSM原因值“超出LADN服务区域”。

#50 PDU session type IPv4 only allowed

如果PDU会话建立请求消息包括设置为“IPv6”的PDU会话类型,并且订阅、SMF配置或两者都仅限于请求的DNN的IPv4,则SMF应在PDU会话建立拒绝消息的5GSM原因中包含5GSM原因值“PDU会话类型IPv4仅允许”。

#51 PDU session type IPv6 only allowed

#54 PDU session does not exist

UE请求PDU会话建立,请求类型为“existing PDU session”或“existing emergency PDU session”,用于不存在的PDU会话:

如果SMF收到请求类型设置为“existing PDU session\" 或 \"existing emergency PDU session”的PDU会话建立请求消息,并且SMF没有关于该PDU会话的任何信息,然后,SMF应拒绝PDU会话建立过程,并在PDU会话建立拒绝消息中将5GSM原因设置为#54“PDU会话不存在”。

#67 insufficient resources for specific slice and DNN(Data Network Name)

当PDU会话建立拒绝消息中包含5GSM原因值67“特定切片和DNN的资源不足”时,SMF可以在PDU会话建立拒绝消息中包括退避计时器值。如果5GSM原因值为#67“特定切片和DNN的资源不足”,并且PDU会话建立请求消息是从所选PLMN中配置为高优先级访问的UE接收的,或者请求类型为“初始紧急请求”或“现有紧急PDU会话”,则网络不应包括退避计时器值。

#68 not supported SSC mode

如果PDU会话建立请求消息包含表示订阅、SMF配置或两者都不支持的SSC模式,并且SMF决定拒绝PDU会话建立,SMF应在5GSM原因IE中包括5GSM原因值68“不支持SSC模式”,并在PDU会话建立拒绝消息的允许SSC模式中包含SMF允许的SSC模式。

Table 9.11.4.16.1: SSC mode information element

SSC mode value (octet 1, bit 1 to bit 4) Bits 3 2 1 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 SSC mode 1 SSC mode 2 SSC mode 3 unused; shall be interpreted as \"SSC mode 1\ unused; shall be interpreted as \"SSC mode 2\ unused; shall be interpreted as \"SSC mode 3\All other values are reserved. Table 9.11.4.5.1: Allowed SSC mode information element

SSC1 (octet 1, bit 1) Bit 1 0 1 SSC2 (octet 1, bit 2) Bit 2 0 1 SSC3 (octet 1, bit 3) Bit 3 0 1 Bit 4 is spare and shall be encoded as zero. SSC mode 3 not allowed SSC mode 3 allowed SSC mode 2 not allowed SSC mode 2 allowed SSC mode 1 not allowed SSC mode 1 allowed

#69 insufficient resources for specific slice(特点切片资源不足)

当PDU会话建立拒绝消息中包含5GSM原因69“特定切片的资源不足”时,SMF可以在PDU会话建立拒绝消息中包括退避计时器值IE。如果5GSM原因值为#69“特定切片的资源不足”,并且从配置为在所选PLMN中进行高优先级访问的UE接收到PDU会话建立请求消息,或者请求类型为“初始紧急请求”或“现有紧急PDU会话”,则网络不应包括退避计时器值。

#70 missing or unknown DNN in a slice

#82 maximum data rate per UE for user-plane integrity protection is too low

在3GPP接入中,如果运营商的配置需要PDU会话的用户平面完整性保护,并且,对于上行链路,UE支持的用于用户平面完整性保护的每个UE的最大数据速率,或者对于下

行链路,UE支持的用于用户平面完整性保护的每个UE的最大数据速率,或者两者兼而有之,低于运营商配置要求,SMF应在PDU会话建立拒绝消息的5GSM原因中包含5GSM原因值#82“用户平面完整性保护的每个UE的最大数据速率太低”。

#95 – 111 protocol errors

因篇幅问题不能全部显示,请点此查看更多更全内容