51学通信技术论坛

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

关于GTPV2中TEID的问题 [复制链接]

Rank: 3Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2011-11-16 15:33:35 |只看该作者 |倒序浏览
一键分享 一键分享
规范上是这么描述的:“GTP tunnels are used between two nodes communicating over a GTP based interface, to separate traffic into different communication flows.  
A GTP tunnel is identified in each node with a TEID, an IP address and a UDP port number. The receiving end side of a  GTP tunnel locally assigns the TEID value the transmitting side has to use. The TEID values are exchanged between tunnel endpoints using GTP-C or S1-MME messages. ”

根据定义,一个tunnel可以用TEID, IP地址和UDP端口来确定。
在GTPV1中,我们发现大量消息的src UDP port和dst UDP port都是2123,所以基本上只需要TEID和IP地址就可以唯一确定了。
但是GTPV2中,只要求request消息的dst UDP port 为2123而src UDP port是随机的, response消息的UDP port和request消息相反。按规范的定义来说,UDP port就是标识一个tunnel的因素之一了。

但是我从实验室中吐出的消息中看到的确不是这样的,create beaer, delete session等消息使用的TEID,都是create session中F-TEID中定义好的,但是这些后续消息和create session的UDP port是不同的。是我的理解有问题吗?



Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

版主

沙发
发表于 2012-1-29 15:16:29 |只看该作者
能发测试环境的GTPv2的包传上来吗?

使用道具 举报

Rank: 9Rank: 9

懒

板凳
发表于 2012-1-29 16:22:34 |只看该作者
回复 海浪 的帖子

  我来放一个。但从我的包来看,貌似UDP端口后续都是用的一样的。

附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册
www.gprshome.com: GPRS及移动通信技术学习交流分享平台。

使用道具 举报

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

版主

地板
发表于 2012-1-30 15:44:19 |只看该作者
The UDP Destination Port number for GTPv2 Initial messages shall be 2123. It is the registered port number for GTP-C.
The UDP Source Port for a GTPv2 Initial message is a locally allocated port number at the sending GTP entity.If GTPv2 and GTP' v2 modules are using the same IP address for sending messages, the implementation shall ensure that while some source port number is used by GTPv2 messages, the same source port number shall not be used by GTP' v2 messages. Otherwise, the IP interface may have difficulty to delivering a response message to the right protocol entity.
GTP-C的源端口没有严格限制,后续端口一样和不一样应该问题不大,是应用程序自动选的。GTPv1的GTP-C源和目的一般都是2123,但我见过有些厂家的设备源端口是随机的,这个在协议里面没有明确规定,似乎绝大多数厂家的源端口都用2123. GTP-C源端口不一点完全区分tunnel的,GTPv2有可能源端口也是2123.

使用道具 举报

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

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

GMT+8, 2024-6-17 16:07 , Processed in 0.082826 second(s), 13 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部