1、2009.7,C网协议的学习(A11) (内部培训),概要内容,一、 C 网网络结构拓扑图 二、 C 网的主要协议 三、 A11消息格式 四、 A11消息的主要信元 五、 A11消息流程,一、CDMA网络拓扑图,C网络拓扑图,二、 C 网的主要协议,A11:负责PCF 与PDSN建立信令连接。 A10:负责PDSN与PCF之间的数据通道。 (使用GRE协议封装) PPP协议:负责PDSN与MS之间建立PPP 连接。,A11信令协议栈,三 、 A11消息格式,A11消息格式定义了如下的6种: 1 Registeration Request: PCF向PDSN发送该消息请求建立连接(当lifeti
2、me为0时表 示删除连接) 2 Registeration Reply: PDSN向PCF发送该消息响应连接请求。 3 Registeration Update:PDSN向PCF发送该消息请求删除连接。 4 Registeration Acknowledge: PCF向PDSN发送该消息响应删除连接 5 Session Update: PDSN向PCF发送该消息用来增加,更新A10连接的会话参数。 6 Session Acknowledge: PCF向PDSN发送该消息响应修改A10连接的会话参数。,1、A11 Registeration Request消息,该A11消息由PCF发起,向PDS
3、N发送如下消息(几乎所有的流程它都要参与)。 建立A10链路 周期性更新链路信息 负责释放A10连接 承载计费信息 标识所有数据包的服务状态 实现设备切换A11 Message Type = 01H Flags = 0AH, 8AH Lifetime = 00 00H to FF FEH Home Address = 00 00 00 00H Home Agent = Care-of-Address = Identification = Session Specific Extension: = 27H Critical Vendor/Organization Specific Extensi
4、on: Type = 26H Normal Vendor/Organization Specific Extension: Type = 86H Mobile-Home Authentication Extension: Type = 20H,2、A11 Registeration Reply消息,该A11消息是传送PDSN到PCF的注册应答响应消息。A11 Message Type = 03H Code =00H, Lifetime = 00 00H to FF FEH Home Address = 00 00 00 00H Home Agent = Identification = Ses
5、sion Specific Extension: = 27H Critical Vendor/Organization Specific Extension: Type = 26H Normal Vendor/Organization Specific Extension: Type = 86H Mobile-Home Authentication Extension: Type = 20H,3、A11 Registeration Update消息,该消息是发送一个从PDSN到PCF的释放A10链接Message Type = 14H Reserved = 00 00 00H Home Add
6、ress = 00 00 00 00H Home Agent = Identification = Session Specific Extension: Type = 27H Normal Vendor/Organization Specific Extension: Type = 86H Registration Update Authentication Extension: Type = 28H,4、 A11-Registration Acknowledge 消息,该消息是发送一个从PCF到PDSN的A11Registration Update message的应答消息Message
7、Type = 15H Reserved = 00 00H Status =00 H , Home Address = 00 00 00 00H Care-of-Address = Identification = Session Specific Extension: Type = 27H Registration Update Authentication Extension: Type = 28H,5、A11 Session Update消息,该消息是从PDSN向PCF发送一个增加或者更新an A10 connection的消息。Message Type = 16H Reserved =
8、00 00 00H Home Address = 00 00 00 00H Home Agent = Identification = Session Specific Extension: Type = 27H Normal Vendor/Organization Specific Extension: Type = 86H Registration Update Authentication Extension: Type = 28H,6、 A11-Session Update Acknowledge消息,该消息是发送一个从PCF到PDSN的A11 Session Update messa
9、ge的应答消息Message Type = 17H Reserved = 00 00H Status = 00H (Update Accepted) Home Address = 00 00 00 00H Care-of-Address = Identification = Session Specific Extension: Type = 27H Registration Update Authentication Extension: Type = 28H,四 、C 网的主要信元,4-1 A11 Message Type 4-2 Flags 4-3 Lifetime 4-4 Home A
10、ddress 4-5 Home Agent 4-6 Care-of-Address 4-7 Identification 4-8 Code 4-9 Status 4-10 Mobile-Home Authentication Extension,4-11 Registration Update Authentication Extension 4-12 Session Specific Extension 4-13 Critical Vendor/Organization Specific Extension (CVSE) 4-14 Normal Vendor/Organization Spe
11、cific Extension (NVSE),4-1 A11 Message Type,该信元是一个8位字节的元组,定义了A11信令消息的类型。1 Octets其结构如示A11-Registration Request = 01H A11-Registration Reply = 03H A11-Registration Update = 14H A11-Registration Acknowledge = 15H A11-Session Update = 16H A11-Session Update Acknowledge = 17H,4-2 Flags,标示位的设置是确定收到的实体包的A1
12、1信令消息的说明,同时解释A10链接传输数据的特性。该首位的“S”位被用作快速切换Flags = 0AH, 8AH1 Octets,4-3 Lifetime,该信元为两个8位元组,它用秒为单位,指明从A10链接建立注册成功到终止的长的生命周期。Lifetime = 00 00H to FF FEH2 Octets,4-4 Home Address,该信元目前在信令中不承载任何消息,是被忽略的。然而它应该被包含在所有的A11信令消息中。4 OctetsA11-Registration Request = 00 00 00 00H A11-Registration Reply = 00 00 00
13、 00H A11-Registration Update = 00 00 00 00H A11-Registration Acknowledge = 00 00 00 00H A11-Session Update = 00 00 00 00H A11-Session Update Acknowledge = 00 00 00 00H,4-5 Home Agent,该信元标示PDSN的IPv4的地址。4 OctetsHome Agent = ,4-6 Care-of-Address,该信元标示PCF的IPv4的地址。4 OctetsCare-of-Address = ,4-7 Identific
14、ation,该信元被用在A11-Registration Request 和 A11-Registration Reply ,A11-Registration Update 和 A11-Registration Acknowledge ,A11-Session Update 和 A11-Session Update Acknowledge 消息的匹配中,它在信令消息中保护防止时序冲突。PCF和PDSN之间有精确的日期和时间的时钟通路,将时差为配置参数。8Octets,4-8 Code,该信元标示处理an A11-Registration Request消息的返回结果1 OctetsCode =
15、00H ( Registration Accepted )返回错误原因如表所示,4-9 Status,该信元标示处理an A11-Registration Update 或an A11-Session Update消息的返回结果1 OctetsStatus =00H ( Update Accepted )返回错误原因如表所示,4-10 Mobile-Home Authentication Extension,该信元出现在所有 A11-Registration Request 和 A11-Registration Reply消息中,它标示这些信令消息的末尾鉴定的数据。22 OctetsA11 E
16、lement Identifier (Type) = 20 H Length = 4 + 鉴定位的数值 SPI 为4个Octets的安全参量索引 Authenticator:基于KEYS-MD-5算法规则效验,默认效验算法将可以保护SPI的值。如果效验值出错,将code 131 (sending node failed authentication).,4-11 Registration Update Authentication Extension,该信元出现在所有A11-Registration Update, A11-Registration Acknowledge, A11-Sessi
17、on Update and A11-Session Update Acknowledge消息中,它标示这些信令消息的末尾鉴定的数据。22 OctetsA11 Element Identifier (Type) = 28 H Length = 4 + 鉴定位的数值 SPI 为4个Octets的安全参量索引 Authenticator:基于KEYS-MD-5算法规则效验,默认效验算法将可以保护SPI的值。如果效验值出错,将code 131 (sending node failed authentication).,4-12 Session Specific Extension,该信元出现在所有A1
18、1-Registration Request , A11-Registration Reply,A11-Registration Update, A11-Registration Acknowledge, A11-Session Update and A11-Session Update Acknowledge消息中,它包含移动平台的统一的特性和详细的会话信息。 A11 Element Identifier (Type)=27H Length的值为在它后面的所有字节的和 Length=14+N/2 N为偶数; Length=14+(N+1)/2 N为奇数 Protocol Type=88 81
19、H KEY 标识获得使用的值为传输A10数据结构的GRE包包头的值 Reserved 不使用保留或忽略字段 Session ID Ver= 0 PCFkeyPDSNkey Session ID Ver= 1 PCFkey!=PDSNkey MN Session Reference ID 在用户识别中用的特殊的数据服务包 MSID Type=6 IMSI MSID Length=8 (后面的BCD的长度) Odd/Even Indicator = 0000/0001,4-13 Critical Vendor/Organization Specific Extension (CVSE),五、A11
20、消息流程,消息流程注册 消息流程更新 消息流程PDSN发起释放消息流程PCF侧发起释放消息流程切换,消息流程注册,MS,BS/PCF,PDSN,A11_Registration Request,A11_Registration Reply,Establish PPP Connection,Lifetime取值非0;一般情况下CVSE的AirLink状态为setup,里面包含IMSI号码、BSID等信息,消息流程更新,MS,BS/PCF,PDSN,A11_Registration Request,A11_Registration Reply,Lifetime取值非0;PCF周期性更新无线侧的信息
21、;延长A10链路存在时间,一般情况下AirLink状态为Start,PPP Connection,消息流程 PCF侧发起释放,MS,BS/PCF,PDSN,A11_Registration Request,A11_Registration Reply,由MS端发起的释放: A11_Registration Request 中 Lifetime0;一般情况下AirLink状态为Stop,PPP Connection,消息流程 PDSN侧发起释放,MS,BS/PCF,PDSN,A11_Registration Request,A11_Registration Reply,在收到Update消息后,
22、无线端释放无线资源,所以随后的Request和Reply释放A10链路同步执行,此时RegistrationRequest消息中Lifetime0,AirLink状态为Stop;,PPP Connection,A11_Registration Update,A11_Registration Acknowledge,消息流程切换,MS,BS/PCF1,PDSN,A11_Registration Request,A11_Registration Reply,Lifetime取值非0;Registration Request消息中CVS ApplicationType指示值为切换,BS/PCF2,Release,References,A.S0017-B v1.0_040513_1.pdf A.S0013-B v1.0_040513.pdf 通信网络图和协议栈,包括R4版UMTS、CDMA200等等2002_poster.pdf A11培训,谢谢,