此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档介绍如何对Cisco IOS® XE的PMIPv6技术进行故障排除。
Cisco 建议您了解以下主题:
本文档中的信息基于Cisco IOS XE软件。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
对移动IP技术进行故障排除时,主要考虑的是蜂窝网接口和无线网络控制器(RNC)之间是否具有良好信号。您的Internet服务提供商(ISP)提供用于在移动接入网关(MAG)和本地移动锚点(LMA)之间建立隧道的IP地址。
本部分提供在MAG上创建Tunnel0的常见问题的解决方案。我们以下面的网络图为例。
在此图中,MAG无法建立通向LMA的Tunnel0。
MAG#show ip interface brief | exclude unassigned Interface IP-Address OK? Method Status Protocol Cellular0/1/0 203.0.113.1 YES NVRAM up up Ethernet0/1 198.51.100.254 YES NVRAM up up
诊断问题
此信息可在蜂窝网接口上找到。
Router#sh cellular 0/1/0 all Hardware Information ====================
Modem Firmware Version = <version>
Modem Firmware built = 2015/03/04 21:30:23
Hardware Version = 1.0
Device Model ID: xxxx
Package Identifier ID: Cisco ID
International Mobile Subscriber Identity (IMSI) = 310410901877700
International Mobile Equipment Identity (IMEI) = xxxxxxxxxxxxxxx
Integrated Circuit Card ID (ICCID) = < ICCID Number >
Mobile Subscriber Integrated Services
Digital Network-Number (MSISDN) = < MSISDN ID >
Modem Status = Online
Current Modem Temperature = 33 deg C
PRI SKU ID = <SKU ID>, PRI version = 005.026, Carrier = ISP
OEM PRI version = <version>
路由器配置示例。
配置密钥字段 |
ipv6 mobile pmipv6-domain LMA-DOMAIN |
配置示例 |
ipv6 mobile pmipv6-domain LMA-DOMAIN |
2.验证MAG的状态。INIT状态表示MAG尝试连接到LMA。
a) non-working example
MAG#show ipv6 mobile pmipv6 mag binding Total number of bindings: 1 ---------------------------------------- [Binding][MN]: Domain: LMA-DOMAIN, Nai: 310410901877700@13511.mcs [Binding][MN]: State: INIT [Binding][MN]: Interface: Loopback0 [Binding][MN]: Hoa: 0.0.0.0, Att: 4, llid: 310410901877700@135 [Binding][MN]: HNP: 0 [Binding][MN]: APN: 13511.mcs [Binding][MN][LMA]: Id: LMA_SVC [Binding][MN][LMA]: Lifetime: 0 [Binding][MN]: Yes [Binding][MN][Mobile Network]: Ethernet0/1 [Binding][MN][PATH]: interface: Cellular0/1/0, Label: MAG State: PATH_INIT Refresh time: 0(sec), Refresh time Remaining: 0(sec) ----------------------------------------
b) working example
MAG#show ipv6 mobile pmipv6 mag binding Total number of bindings: 1 ---------------------------------------- [Binding][MN]: Domain: LMA-DOMAIN, Nai: 310410901877700@13511.mcs [Binding][MN]: State: ACTIVE [Binding][MN]: Interface: Loopback0 [Binding][MN]: Hoa: x.x.x.x, Att: 4, llid: 310410901877700@135 [Binding][MN]: HNP: 0 [Binding][MN]: APN: 13511.mcs [Binding][MN][LMA]: Id: LMA_SVC [Binding][MN][LMA]: Lifetime: 3600 [Binding][MN]: Yes [Binding][MN][Mobile Network]: Ethernet0/1 [Binding][MN][PATH]: interface: Cellular0/1/0, Label: MAG State: PATH_ACTIVE Tunnel: Tunnel0 Refresh time: 300(sec), Refresh time Remaining: 299(sec) [Binding][MN][PATH][GREKEY]: Upstream: 0, Downstream: 0 ----------------------------------------
3.验证路由器上的MAG状态。感兴趣的消息是PBU和PBA,它们是从MAG到LMA绑定的请求和应答。
MAG#show ipv6 mobile pmipv6 mag stats ---------------------------------------- [MAG819]: Total Bindings : 1 [MAG819]: PBU Sent : 6 [MAG819]: PBA Rcvd : 0 [MAG819]: PBRI Sent : 0 [MAG819]: PBRI Rcvd : 0 [MAG819]: PBRA Sent : 0 [MAG819]: PBRA Rcvd : 0 [MAG819]: No Of handoff : 0 Detailed Statistics Information < snip >
4.验证蜂窝网接口是否有通向ISP的良好信号。
备注:蜂窝网故障排除超出本文档的范围。
5.在平台上启用调试,以验证MAG和LMA之间的报文交换。
MAG#debug ipv6 mobile mag events *Apr 14 20:53:30.772: PMIPv6 RIB_RWATCH: Debugging is ON *Apr 14 20:53:30.773: [PMIPV6_LMN_EVENT]: Attach Timer expired *Apr 14 20:53:30.773: [PMIPV6_LMN_EVENT]: Event received Attach timer expiry in state: LMN_READY, new state: LMN_READY *Apr 14 20:53:30.773: [PMIPV6_LMN_EVENT]: Logical MN (310410901877700@13511.mcs) sending Attach trigger req *Apr 14 20:53:30.773: [PMIPV6_LMN_EVENT]: Starting Logical MN attach timer, period (5000) *Apr 14 20:53:30.773: [PMIPV6_MAG_EVENT]: Trigger request received (Session create trigger) from (310410901877700@13511.mcs) on Loopback0 *Apr 14 20:53:30.773: [PMIPV6_MAG_EVENT]: Trigger attach request received *Apr 14 20:53:30.773: [PMIPV6_MAG_EVENT]: Event received Old MN intf attached for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_INIT *Apr 14 20:53:30.773: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: INIT, new state: INIT *Apr 14 20:53:33.397: [PMIPV6_MAG_EVENT]: Retx Timer expired for Nai: 310410901877700@13511.mcs *Apr 14 20:53:33.397: [PMIPV6_MAG_EVENT]: Event received ReTx timer exhausted for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_NULL *Apr 14 20:53:33.397: [PMIPV6_MAG_EVENT]: Event received Last path Down for Nai: 310410901877700@13511.mcs in state: INIT, new state: NULL *Apr 14 20:53:33.397: [PMIPV6_MAG_EVENT]: Event received New MN intf attached for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_NULL, new state: PATH_INIT *Apr 14 20:53:33.398: [PMIPV6_MAG_EVENT]: Starting Retx timer, period (1000) *Apr 14 20:53:33.398: [PMIPV6_MM_EVENT]: Allocated packet of size 152 with tlv length 140 *Apr 14 20:53:33.398: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *Apr 14 20:53:33.398: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: NULL, new state: INIT *Apr 14 20:53:34.423: [PMIPV6_MAG_EVENT]: Retx Timer expired for Nai: 310410901877700@13511.mcs *Apr 14 20:53:34.423: [PMIPV6_MAG_EVENT]: Event received PBU Retx timer expired for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_INIT *Apr 14 20:53:34.423: [PMIPV6_MM_EVENT]: Allocated packet of size 152 with tlv length 140 *Apr 14 20:53:34.423: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *Apr 14 20:53:34.423: [PMIPV6_MAG_EVENT]: Starting Retx timer for Nai: 310410901877700@13511.mcs,period (2000) *Apr 14 20:53:34.423: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: INIT, new state: INIT
要考虑的重要日志:
A)MAG启动与LMA的连接。
*4月14日20:53:33.397: [PMIPV6_MAG_EVENT]:事件已收到为Nai附加的新MN intf:310410901877700@13511.mcs位于路径状态机中,路径:Cellular0/1/0,状态:PATH_NULL,新状态:PATH_INIT
B)发送到LMA以建立隧道0的PBU消息
*4月14日20:53:33.398: [PMIPV6_MAG_EVENT]:发送至Nai的PBU消息:310410901877700@13511.mcs
C)MAG未收到来自LMA的确认(PBA)。MAG尝试发送另一个PBU以建立隧道。
*4月14日20:53:34.423: [PMIPV6_MAG_EVENT]:接收到PBU的Retx计时器已过期Nai:310410901877700@13511.mcs在路径状态机中,路径:Cellular0/1/0,状态:PATH_INIT,新状态:PATH_INIT
6.继续嵌入式数据包捕获(EPC),验证LMA未发送PBA数据包。嵌入式数据包捕获配置指南。
MAG#monitor capture cap control-plane both access-list tac buffer size 10 MAG#monitor capture cap start
< wait at least 3 minutes >
MAG#show monitor capture cap buffer brief ---------------------------------------------------------------------------- # size timestamp source destination dscp protocol ---------------------------------------------------------------------------- 0 194 0.000000 203.0.113.2 -> 203.0.113.10 0 BE UDP 1 194 1.024000 203.0.113.2 -> 203.0.113.10 0 BE UDP 2 194 3.075008 203.0.113.2 -> 203.0.113.10 0 BE UDP 3 194 7.109994 203.0.113.2 -> 203.0.113.10 0 BE UDP 4 194 15.178991 203.0.113.2 -> 203.0.113.10 0 BE UDP 5 194 31.246041 203.0.113.2 -> 203.0.113.10 0 BE UDP 6 194 65.757016 203.0.113.2 -> 203.0.113.10 0 BE UDP 7 194 66.780010 203.0.113.2 -> 203.0.113.10 0 BE UDP 8 194 68.828011 203.0.113.2 -> 203.0.113.10 0 BE UDP 9 194 72.861014 203.0.113.2 -> 203.0.113.10 0 BE UDP 10 194 80.931003 203.0.113.2 -> 203.0.113.10 0 BE UDP
数据包捕获显示IP地址203.0.113.2(由ISP分配的地址)将PBU数据包发送到LMA IP地址203.0.113.10。
有关详细信息,可使用命令monitor capture cap export bootflash:<name>.pcap将捕获导出到bootflash并以.pcap文件的形式上传到tftp服务器。
在导出的捕获中,MAG向LMA请求确认,但LMA不发送PBA数据包。
7.此问题与ISP无关。联系您当地的ISP,询问是否启用了PMIP服务。
诊断问题
1.检查移动接入网关(MAG)上的配置。
2.检查MAG和LMA之间的关联。
MAG#sh ipv6 mobile pmipv6 mag binding MAG#
3.验证PBU和PBA消息。
MAG#show ipv6 mobile pmipv6 mag stats ---------------------------------------- [MAG819]: Total Bindings : 0 [MAG819]: PBU Sent : 48 [MAG819]: PBA Rcvd : 36 [MAG819]: PBRI Sent : 0 [MAG819]: PBRI Rcvd : 0 [MAG819]: PBRA Sent : 0 [MAG819]: PBRA Rcvd : 0 [MAG819]: No Of handoff : 0 -------------------------------------------------
<snip>
Trigger Sent Stats Response to DHCP DISCOVER : 0 Response to DHCP REQUEST : 0 Response to ARP REQUEST : 0 Response to GARP : 0 Response to Rtr Solicitation : 0 ATTACH QUERY Sent : 0 CLEANUP INDICATION Sent : 37 Resp to MCSA CREATE REQ : 62 Resp to MCSA UPD REQ : 0 Resp to MCSA DEL REQ : 0
A)RESP to MCSA CREATE REQ表示MAG请求连接到LMA。当LMA拒绝PBU时,MAG以清除指示消息开始。
4.启用debug ipv6 mobile mag events以验证MAG上显示的错误代码。
*Apr 17 18:13:22.885: [PMIPV6_LMN_EVENT]: Attach Timer expired *Apr 17 18:13:22.885: [PMIPV6_LMN_EVENT]: Event received Attach timer expiry in state: LMN_READY, new state: LMN_READY *Apr 17 18:13:22.885: [PMIPV6_LMN_EVENT]: Logical MN (310410901877700@13511.mcs) sending Attach trigger req *Apr 17 18:13:22.885: [PMIPV6_LMN_EVENT]: Starting Logical MN attach timer, period (5000) *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: Trigger request received (Session create trigger) from (310410901877700@13511.mcs) on Loopback0 *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: Trigger attach request received *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: Event received New MN intf attached for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_NULL, new state: PATH_INIT *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: Starting Retx timer, period (1000) *Apr 17 18:13:22.885: [PMIPV6_MM_EVENT]: Allocated packet of size 160 with tlv length 148 *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *Apr 17 18:13:22.885: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: NULL, new state: INIT *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: message received: PBA *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: PBU rejected by LMA, NAI:310410901877700@13511.mcs, status: 130 *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: PBA: nai(310410901877700@13511.mcs),nai len: 26, lli (310410901877700@135), ll len: 21, att:4, lifetime:0, status:130 *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: Event received PBA reject for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_NULL <snip> *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: Sending cleanup ind reason Last path Down, orig_event PBA reject *Apr 17 18:13:22.886: [PMIPV6_LMN_EVENT]: Event received Cleanup request from MAG in state: LMN_READY, new state: LMN_READY *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: Nai: 310410901877700@13511.mcs, Sending IPv4 address cleanup indication for address (0.0.0.0) *Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]: Nai: 310410901877700@13511.mcs, Binding Removed
要考虑的重要日志:
A)MAG启动与LMA的连接。
*4月17日18:13:22.885: [PMIPV6_MAG_EVENT]:事件已收到为Nai附加的新MN intf:310410901877700@13511.mcs位于路径状态机中,路径:Cellular0/1/0,状态:PATH_NULL,新状态:PATH_INIT
B)PBU从MAG发送到LMA。
*4月17日18:13:22.885: [PMIPV6_MAG_EVENT]:发送至Nai的PBU消息:310410901877700@13511.mcs
C)从LMA收到的PBA。
*4月17日18:13:22.886: [PMIPV6_MAG_EVENT]:已接收消息:PBA
D)由于代码130,LMA拒绝了PBU消息
*4月17日18:13:22.886: [PMIPV6_MAG_EVENT]:PBU被LMA拒绝,NAI:310410901877700@13511.mcs,状态:130
E)由于代码130,MAG拒绝了PBA消息。
*4月17日18:13:22.886: [PMIPV6_MAG_EVENT]:PBA:nai(310410901877700@13511.mcs),nai len:26,lli(310410901877700@135),ll len:21,att:4,lifetime:0,status:130
F)由于PBU和PBA数据包被拒绝,因此MAG回退到NULL状态。
*4月17日18:13:22.886: [PMIPV6_MAG_EVENT]:事件接收到Nai的PBA拒绝:310410901877700@13511.mcs(路径状态机),路径:Cellular0/1/0,状态:PATH_INIT,新状态:PATH_NULL
G)Clean消息表示需要重新建立通向LMA的隧道。
*4月17日18:13:22.886: [PMIPV6_MAG_EVENT]:发送清理查找原因最后一个路径关闭,orig_event PBA拒绝
*4月17日18:13:22.886: [PMIPV6_LMN_EVENT]:事件从MAG接收清理请求,状态为:LMN_READY,新状态:LMN_READY
*Apr 17 18:13:22.886: [PMIPV6_MAG_EVENT]:Nai:310410901877700@13511.mcs,正在发送地址的IPv4地址清理指示(0.0.0.0)
提示:调试的状态由LMA发送,以接受或拒绝隧道建立。当MAG收到PBA时,可以看到这些代码
PBA:nai(310410901877700@13511.mcs),nai len:26,lli(310410901877700@135),ll len:21,att:4,lifetime:0,status:130
请参阅值代码。
值代码 | 描述 |
0 | 已接受绑定更新 |
1 | 已接受,但需要前缀发现 |
128 | 原因未指定 |
129 | 管理性禁止 |
130 | 资源不足 |
131 | 不支持家庭注册 |
132 | 非主子网 |
133 | 此移动节点的非本地代理 |
134 | 重复地址检测失败 |
135 | 序列号超出窗口 |
136 | 失效的主节点索引 |
137 | 过期的nonce索引 |
138 | 过期的nonces |
139 | 不允许更改注册类型 |
5.继续捕获路由器上的控制平面,并验证确认数据包中的移动IPv6报头。
比较捕获
报头有错误
信头无错误
6.与您的本地ISP进行验证。在这种情况下,为了建立反向隧道,LMA应答不包含主地址。
*May 8 23:09:33.631: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up *May 8 23:09:33.632: %PMIPV6-5-TUNNELUP: Bringing up the Proxy Mobile IPv6 tunnel Tunnel0 *May 8 23:15:39.067: %PMIPV6-5-TUNNELDELETE: Deleting the Proxy Mobile IPv6 tunnel Tunnel0 *May 8 23:17:16.655: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up *May 8 23:17:16.656: %PMIPV6-5-TUNNELUP: Bringing up the Proxy Mobile IPv6 tunnel Tunnel0
诊断问题
1.验证天线是否具有良好信号。
备注:蜂窝网故障排除超出本文档的范围。
2.激活debug ipv6 mobile以验证设备是否将PBU数据包发送到LMA。
*May 9 20:28:26.784: [PMIPV6_LMN_EVENT]: Attach Timer expired *May 9 20:28:26.784: [PMIPV6_LMN_EVENT]: Event received Attach timer expiry in state: LMN_READY, new state: LMN_READY *May 9 20:28:26.784: [PMIPV6_LMN_EVENT]: Logical MN (310410901877700@13511.mcs) sending Attach trigger req *May 9 20:28:26.784: [PMIPV6_LMN_EVENT]: Starting Logical MN attach timer, period (5000) *May 9 20:28:26.784: [PMIPV6_MAG_EVENT]: Trigger request received (Session create trigger) from (310410901877700@13511.mcs) on Loopback0 *May 9 20:28:26.784: [PMIPV6_MAG_EVENT]: Trigger attach request received *May 9 20:28:26.784: [PMIPV6_MAG_EVENT]: Event received Old MN intf attached for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_INIT *May 9 20:28:26.784: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: INIT, new state: INIT
At this point the MAG waits for a reply from the LMA to establish the tunnel. Since the timer expires, the MAG clears the entry and starts the process.
*May 9 20:28:39.523: [PMIPV6_MAG_EVENT]: Event received Last path Down for Nai: 310410901877700@13511.mcs in state: INIT, new state: NULL *May 9 20:28:39.523: [PMIPV6_MAG_EVENT]: Trigger Reply sent in Bul Null state entry for Nai: 310410901877700@13511.mcs *May 9 20:28:39.523: [PMIPV6_LMN_EVENT]: Event received Trigger Attach Failure in state: LMN_READY, new state: LMN_READY < snip > *May 9 20:28:39.523: [PMIPV6_MAG_EVENT]: sending cleanup ind reason Last path Down, orig_event ReTx timer exhausted *May 9 20:28:39.523: [PMIPV6_LMN_EVENT]: Event received Cleanup request from MAG in state: LMN_READY, new state: LMN_READY *May 9 20:28:39.523: [PMIPV6_MAG_EVENT]: Nai: 310410901877700@13511.mcs, Sending IPv4 address cleanup indication for address (0.0.0.0) *May 9 20:28:39.523: [PMIPV6_MAG_EVENT]: Nai: 310410901877700@13511.mcs, Binding Removed < Snip > *May 9 20:28:41.955: [PMIPV6_MAG_EVENT]: Event received New MN intf attached for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_NULL, new state: PATH_INIT *May 9 20:28:41.955: [PMIPV6_MAG_EVENT]: Starting Retx timer, period (1000) *May 9 20:28:41.955: [PMIPV6_MM_EVENT]: Allocated packet of size 160 with tlv length 148 *May 9 20:28:41.955: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *May 9 20:28:41.956: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: NULL, new state: INIT *May 9 20:28:42.979: [PMIPV6_MAG_EVENT]: Retx Timer expired for Nai: 310410901877700@13511.mcs *May 9 20:28:42.979: [PMIPV6_MAG_EVENT]: Event received PBU Retx timer expired for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_INIT *May 9 20:28:42.979: [PMIPV6_MM_EVENT]: Allocated packet of size 160 with tlv length 148 *May 9 20:28:42.979: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *May 9 20:28:42.979: [PMIPV6_MAG_EVENT]: Starting Retx timer for Nai: 310410901877700@13511.mcs,period (2000) *May 9 20:28:42.979: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: INIT, new state: INIT *May 9 20:28:45.027: [PMIPV6_MAG_EVENT]: Retx Timer expired for Nai: 310410901877700@13511.mcs *May 9 20:28:45.027: [PMIPV6_MAG_EVENT]: Event received PBU Retx timer expired for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_INIT *May 9 20:28:45.027: [PMIPV6_MM_EVENT]: Allocated packet of size 160 with tlv length 148 *May 9 20:28:45.027: [PMIPV6_MAG_EVENT]: PBU message sent for Nai: 310410901877700@13511.mcs *May 9 20:28:45.027: [PMIPV6_MAG_EVENT]: Starting Retx timer for Nai: 310410901877700@13511.mcs,period (4000) *May 9 20:28:45.027: [PMIPV6_MAG_EVENT]: Event received First path created for Nai: 310410901877700@13511.mcs in state: INIT, new state: INIT *May 9 20:28:45.228: [PMIPV6_MAG_EVENT]: message received: PBA *May 9 20:28:45.228: [PMIPV6_MAG_EVENT]: PBA: nai(310410901877700@13511.mcs),nai len: 26, lli (310410901877700@135), ll len: 21, att:4, lifetime:3600, status:0 *May 9 20:28:45.228: [PMIPV6_MAG_EVENT]: Event received PBA accept for Nai: 310410901877700@13511.mcs in path state machine, path: Cellular0/1/0, state: PATH_INIT, new state: PATH_ACTIVE *May 9 20:28:45.228: [PMIPV6_MAG_EVENT]: Starting Refresh timer, period (300000) *May 9 20:28:45.229: PMIPV6_LMN_EVENT]: Received event (20) *May 9 20:28:45.229: [PMIPV6_LMN_EVENT]: Address change event received for Tunnel0 *May 9 20:28:45.229: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up *May 9 20:28:45.230: %PMIPV6-5-TUNNELUP: Bringing up the Proxy Mobile IPv6 tunnel Tunnel0 *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Adding V4 Tunnel, Handle (Tunnel0), mode: (GRE_IN_IPV4) *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Populating Reverse V4 Tunnel entry, l2 address (0x310410901877700@135), ipv4 add: x.x.x.x phy handle: (Loopback0), Succeeded !!! *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Populating Reverse V4 Tunnel entry, l2 address (0x310410901877700@135), ipv4 add: x.x.x.x phy handle: (Ethernet0/1), Succeeded !!! *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Stopping Retx timer for Nai: 310410901877700@13511.mcs *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Event received First path UP for Nai: 310410901877700@13511.mcs in state: INIT, new state: ACTIVE *May 9 20:28:45.230: [PMIPV6_MAG_EVENT]: Nai: 310410901877700@13511.mcs, Updating binding succeeded
要考虑的重要日志:
A)MAG使与LMA的连接到期并等待响应。
*5月9日20:28:26.784: [PMIPV6_LMN_EVENT]:连接计时器已过期
*5月9日20:28:26.784: [PMIPV6_LMN_EVENT]:事件已接收附加计时器过期状态:LMN_READY,新状态:LMN_READY
*5月9日20:28:26.784: [PMIPV6_MAG_EVENT]:事件已收到为Nai附加的旧MNintf:310410901877700@13511.mcs(路径状态机),路径:Cellular0/1/0,状态:PATH_INIT,新状态:PATH_INIT
*5月9日20:28:26.784: [PMIPV6_MAG_EVENT]:事件已接收为Nai创建的第一个路径:310410901877700@13511.mcs状态:INIT,新状态:INIT
B)系统会发送一条清除消息,以删除之前的绑定并建立新的隧道。
*5月9日20:28:39.523: [PMIPV6_MAG_EVENT]:事件接收到Nai的最后路径关闭:310410901877700@13511.mcs处于状态:INIT,新状态:NULL
*5月9日20:28:39.523: [PMIPV6_MAG_EVENT]:正在发送清理查找原因上次路径关闭,原始事件ReTx计时器已用尽
*5月9日20:28:39.523: [PMIPV6_LMN_EVENT]:事件从MAG接收清理请求,状态为:LMN_READY,新状态:LMN_READY
*5月9日20:28:39.523: [PMIPV6_MAG_EVENT]:Nai:310410901877700@13511.mcs,正在发送地址的IPv4地址清理指示(0.0.0.0)
*5月9日20:28:39.523: [PMIPV6_MAG_EVENT]:Nai:310410901877700@13511.mcs,已删除绑定
C)PBU消息发送到LMA以建立新的隧道0。一旦MAG收到,PBA就会启动隧道。
*5月9日20:28:41.955:[PMIPV6_MAG_EVENT]:PBU消息发送至Nai:310410901877700@13511.mcs
D)MAG和LMA接收并接受PBA。
*5月9日20:28:45.228: [PMIPV6_MAG_EVENT]:已接收消息:PBA
*5月9日20:28:45.228: [PMIPV6_MAG_EVENT]:PBA:nai(310410901877700@13511.mcs),nai len:26,lli(310410901877700@135),ll len:21,att:4,lifetime:3600,status:0
*5月9日20:28:45.228: [PMIPV6_MAG_EVENT]:路径状态机中的Nai收到事件的PBA接受:310410901877700@13511.mcs,路径:Cellular0/1/0,状态:PATH_INIT,新状态:PATH_ACTIVE
E)隧道0已建立。
*5月9日20:28:45.229: [PMIPV6_LMN_EVENT]:为Tunnel0接收地址更改事件
*5月9日20:28:45.229: %LINEPROTO-5-UPDOWN:接口Tunnel0上的线路协议,状态更改为up
*5月9日20:28:45.230: %PMIPV6-5-TUNNELUP:启用代理移动IPv6隧道Tunnel0
3.继续捕获路由器上的控制平面,并验证数据包是否在MAG和LMA之间共享。
在导出的捕获中,MAG请求确认LMA。LMA回复此消息;但是,由于传输出现问题,MAG不会一致地接收这些消息。
一旦传输稳定,隧道就会变得稳定。
4.与您的本地ISP验证这两台设备之间的传输是否稳定。
PMIP预计不会从ISP收到默认路由。为了获得连接和建立隧道,需要有一条指向LMA的IP的主机路由,并将蜂窝接口添加为下一跳。
示例:
ip route 203.0.113.10 255.255.255 cellular0/1/0
术语 | 描述 |
国际移动用户身份(IMSI) | 为SIM卡分配的15位数字代码编号 |
国际移动设备标识(IMEI) | 分配给移动设备的15位代码 |
集成电路卡标识符(ICCID) | 为硬件SIM卡指定了19到20位代码 |
移动站国际用户目录号码(MSISDN) | ISP分配的移动设备编号。这包括国家/地区代码和分配的编号。 |
网络访问标识符(NAI) | 网络访问身份验证期间客户端提交的用户身份 |
接入点名称(APN) | 与移动网络数据连接的移动设备的信息(漫游过程) |
移动节点(MN) | 参与任何与IP移动性相关的PMIP所需的IP主机或路由器 |
移动接入网关(MAG) | 管理与ISP连接的接入设备 |
本地移动锚点(LMA) | 代理移动IPv6域(PMIP)中移动节点的家乡代理 |
家庭地址(HoA) | LMA池分配的动态IP地址 |
代理绑定更新(PBU) | 来自MAG的请求,以建立LMA之间的隧道。此请求包括移动节点标识符选项。 |
代理绑定确认(PBA) | 从LMA发送到MAG的消息,其中包括HoA网络前缀并触发建立双向隧道 |
版本 | 发布日期 | 备注 |
---|---|---|
2.0 |
20-Jul-2023 |
更新的屏幕截图 |
1.0 |
20-Jul-2023 |
初始版本 |