51学通信技术论坛

 找回密码
 立即注册
搜索
查看: 6721|回复: 11
打印 上一主题 下一主题

SDF, TFT之間的關係 [复制链接]

Rank: 2Rank: 2

跳转到指定楼层
楼主
发表于 2012-6-5 21:42:47 |只看该作者 |倒序浏览
一键分享 一键分享
關於SDF, TFT的關係,小弟一直弄不太明白,看了spec 我認為他們屬於不同的東西。

一個TFA(traffic flow aggregate)包含一到多個SDF(service data flow)
而一個sdf是一組packet data的集合,這群集合擁有相同的ip五元組(source/destination IP, port, protocol ID),但不見得是被TFT過濾在同一個EPS bearer裡,也就是不同的QoS。所以有了3GPP TS23.401 V10.7.0 figure4.7.2.2-1 這張圖。每個packet data經過sdf template後,在經過TFT分到各個EPS bearer上。
但又覺得怪怪的.....
SDF template和TFT packet filter之間有關係嗎?

這是我個人理解,不知道各位先進是否能給小弟這個見解一點意見或指教呢?

Rank: 9Rank: 9

懒

沙发
发表于 2012-6-5 22:26:10 |只看该作者

我的个人理解是这样的:

其实这些概念和2G/3G的GPRS网络类似。

SDF:就是一种用户传递的上层应用。例如HTTP、FTP。每一种应用的Qos需求不同,就需要不同的EPS承载,所以EPC网络需要能区分出不同的SDF,怎么区分,不光是看端口号,还要看源IP,目的IP等。实际上就是通过TFT里的packet filter来区分的。TS23.203的4.2.3举例了怎么来基于SDF计费:

“A network server provides an FTP service. The FTP server supports both the active (separate ports for control and data) and passive modes of operation. A PCC rule is configured for the service data flows associated with the FTP server for the user. The PCC rule uses a filter specification for the uplink that identifies packets sent to port 20 or 21 of the IP address of the server, and the origination information is wildcarded. In the downlink direction, the filter specification identifies packets sent from port 20 or 21 of the IP address of the server.“

TFT:通过定义packet filter来区分SDF。如果两个包TFT完全一样,网络侧就认定是同一个SDF,享受同一种Qos待遇,映射到相同的EPS承载中。TFT和Packet Filter的定义都在TS24.008有。其中,Packet Filter就包括:

0 0 0 1 0 0 0 0      IPv4 source address type
0 0 1 0 0 0 0 0      IPv6 source address type
0 0 1 1 0 0 0 0      Protocol identifier/Next header type
0 1 0 0 0 0 0 0      Single destination port type
0 1 0 0 0 0 0 1      Destination port range type
0 1 0 1 0 0 0 0      Single source port type
0 1 0 1 0 0 0 1      Source port range type
0 1 1 0 0 0 0 0      Security parameter index type
0 1 1 1 0 0 0 0      Type of service/Traffic class type
1 0 0 0 0 0 0 0      Flow label type

通过以上信息,完全能唯一的识别一个flow出来。

TFA:是一组SDF的集合。这是因为,可能有多个SDF,但他们的Qos需求其实是一样的,应该映射到同一个EPS承载,所以需要做聚合。一个典型的例子,UE可能会浏览雅虎的主页,也会浏览新浪的主页,虽然网站不同,但其实都是同一种应用HTTP,都应该放到背景类,享用Non-GBR的服务。但实际上由于雅虎、新浪的IP地址不同,会对应到不同的SDF,因此要做聚合。所以,规范里的图就很好解释了。

www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 2Rank: 2

板凳
发表于 2012-6-6 09:47:17 |只看该作者
版大您好,首先感謝您的回覆。
對於SDF的描述,您說是用TFT的packet filter來分辨他的QoS,也就是把SDF對應到相應QoS的EPS bearer上。假設是這樣的話,那SDF template的作用是什麼呢?
在TS23.203 SDF detection章節裡描述:
This clause refers to the detection process that identifies the packets belonging to a service data flow:
-Each PCC rule contains a service data flow template, which defines the data for the service data flow detection;
-Each service data flow template may contain any number of service data flow filters;
-Each service data flow filter is applicable uplink, downlink or both uplink and downlink;
-Service data flow filters are applied for each direction, so that the detection is applied independently for the downlink and uplink directions;
在對照此標準裡 figure6.3 及 figure6.4及以下說明:
Service data flow filters identifying the service data flow may:
-be a pattern for matching the IP 5 tuple (source IP address or IPv6 network prefix, destination IP address or IPv6 etwork prefix, source port number, destination port number, protocol ID of the protocol above IP).

他的描述不也是說,packet flow(packet data)會先經過SDF filter過濾形成SDF,而這些SDF filter就形成SDF template。
那經過SDF template後的SDF不就是有相同端口号,源IP,目的IP。那麼在經過TFT template的packet filter也是在區分同樣訊息的話,不就有點重複意味了?

真的不好意思,小弟一直被這些東西困惑著,還請版大多包涵,花點耐心解惑喔,謝謝!
附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

使用道具 举报

Rank: 2Rank: 2

地板
发表于 2012-6-6 10:11:38 |只看该作者
哈  愛大,小弟有點理解了,借用你的例子來延伸說明一下。
假設手機要同時瀏覽兩個網頁,一個是yahoo,另一個是google。在packet經過SDF template後,因為目的ip地址不同,會分成兩個SDF:
SDF1 : yahoo web, QoS1, IP1, port1(http)
SDF2 : google web,QoS1, IP2, port1(http)
但在傳輸過程中,兩個sdf擁有相同的QoS,只需要一條EPS bearer來傳輸就好,因此這條EPS bearer便把TFT packet filter設計成,僅限HTTP業務端口號的SDF通過。

而一開始在過濾packet去形成SDF時,pcc就會根據我們的業務類型設計SDF template。

不知道我這樣理解是否正確呢?

使用道具 举报

Rank: 9Rank: 9

懒

5#
发表于 2012-6-6 10:15:18 |只看该作者
ldc7491 发表于 2012-6-6 09:47
版大您好,首先感謝您的回覆。
對於SDF的描述,您說是用TFT的packet filter來分辨他的QoS,也就是把SDF對應 ...

我的理解是TFT和SDF template实际上是相同的作用,只不过穿了不同的马甲。

能够确定的是,UE到PCEF侧的上行数据,肯定是需要通过TFT来进行SDF的分类并映射到上行EPS承载的。而SDF template也可以做SDF分类和映射,但这个应该是在PCEF和PCRF之间的术语,和UE应该没有关系的。证据是TS23.203里还有一段话:

For the PDP address of an UE, the PCEF routes downlink packets to the different PDP contexts based on the downlink parts of the service data flow templates, in the active PCC rules and their routeing associations to the PDP contexts. The association between an active PCC rule and a PDP context shall correspond to the downlink TFT received from the UE. Each active PCC rule shall have a single routeing association to a PDP context. Upon reception of a packet, the PCEF evaluates the downlink part of the service data flow templates of the PCC rules activated for the PDP address in order of precedence to find a match. When the first match is found, the packet is tunnelled to the SGSN via the PDP context, for which the PCC rule has the routeing association. If no match is found, the PCEF shall silently discard the packet.

The UE shall define TFTs that enable successful binding at the PCRF for service data flows requiring a binding to occur. For each uplink packet, the UE should choose the PDP context that is used for the downlink direction of the same service data flow, as declared in the TFT information. The PCEF shall only apply the uplink parts of the service data flow templates of the PCC rules, which are associated with the same PDP context as the uplink packet arrived on.“

蓝色文字翻译过来就是,PCEF根据PCEF下发的PCC rule里的SDF template来路由下行数据,而这个active 的PCC rule要和从UE收到的下行TFT对应。

紫色部分是UE应定义好TFT,使得PCRF能为SDF完成一个绑定。对每个上行数据报文,UE应该选择一个用于相同SDF下行方向使用的PDP上下文,而这个相同的SDF是在TFT的信息中声明的。

关于TFT的实例,论坛有一个抓包,可以参考:http://www.gprshome.com/forum.php?mod=viewthread&tid=240&extra=page%3D1。Secondary PDP上下文激活流程实例。


www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 9Rank: 9

懒

6#
发表于 2012-6-6 10:23:05 |只看该作者
ldc7491 发表于 2012-6-6 10:11
哈  愛大,小弟有點理解了,借用你的例子來延伸說明一下。
假設手機要同時瀏覽兩個網頁,一個是yahoo,另一 ...

这个例子应该是说的TFA,即SDF的聚合,目的就是映射到同一个EPS承载。但后面这句“TFT设计成仅限HTTP业务端口号的SDF通过”我可能理解不大一样,应该还是有两个TFT,分别对应yahoo和google,但通过TFA聚合后映射到同一个EPS承载。

www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 9Rank: 9

懒

7#
发表于 2012-6-6 10:27:18 |只看该作者
ldc7491 发表于 2012-6-6 09:47
版大您好,首先感謝您的回覆。
對於SDF的描述,您說是用TFT的packet filter來分辨他的QoS,也就是把SDF對應 ...

TS23.203里介绍EPS承载绑定的时候,还有一段,在A1.3.1.1。

“For the GPRS case bearer binding is performed by:

- PCRF, when the selected operation mode is UE-only, see [12], either due to PCRF decision or network/UE capability;

- PCRF and PCEF (i.e. the PCRF performs the binding of the PCC rules for user controlled services while the PCEF performs the binding of the PCC rules for the network controlled services), when the selected operation mode is UE/NW.

In order to identify the candidate PDP context the bearer binding shall compare:

- the PCC rule service data flow template with the TFT filters; and

- the PCC rule QoS parameters with the PDP context QoS parameters.”

翻译是:GPRS的承载绑定在PCEF及PCRF上执行,而蓝色部分提到,在绑定的时候,PCEF及PCRF都需要比较PCC Rule里的SDF template和TFT filter(后者是由UE提供的)。

www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 2Rank: 2

8#
发表于 2012-6-6 10:50:34 |只看该作者
爱卫生 发表于 2012-6-6 10:23
这个例子应该是说的TFA,即SDF的聚合,目的就是映射到同一个EPS承载。但后面这句“TFT设计成仅限HTTP业务 ...

"应该还是有两个TFT,分别对应yahoo和google,但通过TFA聚合后映射到同一个EPS承载。"
這句話是否應該改成說"一個TFT有兩個packet filter 分別對應yahoo和google" ?
因為一個EPS bearer不是只有一個唯一的TFT。

綜合您的解析,我想所謂的SDF template是存在於PCRF和PCEF之間,PCRF決定好PCC rule(SDF template),下發給PCEF。PCEF用此來route downlink and/or uplink packet data。而在UE會有同樣限制(TFT packet filter設計成和SDF filter一樣)的TFT與之對應。

使用道具 举报

Rank: 9Rank: 9

懒

9#
发表于 2012-6-6 19:50:37 |只看该作者
ldc7491 发表于 2012-6-6 10:50
"应该还是有两个TFT,分别对应yahoo和google,但通过TFA聚合后映射到同一个EPS承载。"
這句話是否應該改 ...

恩,个人理解,感觉应该是。仅供参考。
www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 2Rank: 2

10#
发表于 2012-6-7 22:14:47 |只看该作者
爱卫生 发表于 2012-6-6 10:23
这个例子应该是说的TFA,即SDF的聚合,目的就是映射到同一个EPS承载。但后面这句“TFT设计成仅限HTTP业务 ...

真的非常感謝你,受教了!

使用道具 举报

Rank: 2Rank: 2

11#
发表于 2014-7-7 10:53:59 |只看该作者
非常感谢,正在疑惑TFT

使用道具 举报

Rank: 3Rank: 3Rank: 3

12#
发表于 2014-8-12 10:53:17 |只看该作者
讲的很详细,一直对这部分参数比较朦胧,这回也算是学习了。

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

站长邮箱|Archiver|51学通信 ( 粤ICP备11025688 )

GMT+8, 2024-5-6 19:38 , Processed in 0.030114 second(s), 13 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部