你的位置:首页 > 技术知识库 > 华为 > 路由

AR1200串口经协议转换器和友商路由器对接协议不UP

2014/10/12 13:42:32点击:
问题描述
版本信息:
AR1200版本为Version 5.110 (AR1200 V200R002C01SPC200)。
组网描述
AR1200的串口通过协议转换器和中间传输链路和对端路由器的串口互联。

故障现象:
用AR1220路由器替换友商路由器,AR1220串口物理状态UP,协议状态DOWN;串口连线回退连接到友商路由器,串口物理状态UP,协议状态UP。
告警信息
(1)在AR1220上通过命令display interface serial1/0/1查看,发现串口物理状态UP,协议状态DOWN,链路LCP状态为reqsent。
[SX1_EP_AR_06-Serial1/0/1]dis int s1/0/1
Serial1/0/1 current state : UP
Line protocol current state : DOWN
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP reqsent
Last physical up time   : 2013-08-03 01:34:17
Last physical down time : 2013-08-03 01:34:14
Current system time: 2013-08-03 01:34:22
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
(2)打开debugging开关,关闭串口后再打开,发现:串口LCP协议从initial,经starting,只能到达reqsent,不能到达opened状态,LCP链路不能建立。
debugging ppp lcp all  
[SX1_EP_AR_06-Serial1/0/1]shutdown
[SX1_EP_AR_06-Serial1/0/1]undo shutdown
[SX1_EP_AR_06-Serial1/0/1]
Aug  3 2013 01:35:02.260.3+00:00 SX1_EP_AR_06 PPP/7/debug2:
  PPP Event:
      Serial1/0/1 LCP Open  Event
      state initial
[SX1_EP_AR_06-Serial1/0/1]
Aug  3 2013 01:35:02.260.4+00:00 SX1_EP_AR_06 PPP/7/debug2:
  PPP State Change:
      Serial1/0/1 LCP : initial --> starting
[SX1_EP_AR_06-Serial1/0/1]
Aug  3 2013 01:35:02.260.5+00:00 SX1_EP_AR_06 PPP/7/debug2:
  PPP Event:
      Serial1/0/1 LCP Lower Up  Event
      state starting
[SX1_EP_AR_06-Serial1/0/1]
Aug  3 2013 01:35:02.260.6+00:00 SX1_EP_AR_06 PPP/7/debug2:
  PPP State Change:
      Serial1/0/1 LCP : starting --> reqsent 
处理过程
LCP链路不能建立,需要继续排查串口参数设置。
1, 原路由器串口封装协议encapsulation ppp,AR1220串口下配置link-protocol ppp保持不变。
2, 修改串口校验码为crc 32,测试不通过,恢复为crc 16默认状态。
3, 修改串口时钟为clock master,测试不通过,恢复为clock slave默认状态。
4, 检查本端协议转换器接口设置,发现有收发信号电平设置,尝试修改AR1220串口收发时钟设置。
[SX1_EP_AR_06-Serial1/0/1]?
Serial1/0/1 interface view commands:
  …
  invert           Configure Clock Invert
  …
[SX1_EP_AR_06-Serial1/0/1]invert ?
  receive-clock   Receive-Clock
  transmit-clock  Transmit-Clock
[SX1_EP_AR_06-Serial1/0/1]invert receive-clock ?
          Please press ENTER to execute command
串口下设置invert receive-clock后,测试发现串口协议up。
[SX1_EP_AR_06]dis interface Serial 1/0/1
Serial1/0/1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-08-03 01:58:15
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP opened, IPCP opened
Last physical up time   : 2013-08-03 01:56:45
Last physical down time : 2013-08-03 01:56:20
Current system time: 2013-08-12 11:09:46
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
根因
两端路由器串口互联,协议不UP的可能原因有:
1, 串口两端封装协议ppp和hdlc配置不一致。
2, 串口两端循环校验参数CRC16和CRC32设置不一致。
3, 串口两端主备时钟配置不一致。
4, 路由器串口互联,中间经过协议转换器,需要考虑路由器串口和协议转换器接口的对接参数设置。
建议与总结
建议与总结:
路由器串口互联时,不但要保持两端串口互联参数设置一致,还要考虑如果路由器互联中间经过协议转换器,路由器和协议转换器对接要进行接口参数设置。
配置样例:
友商BD2600路由器:
!
interface Serial0/3                     
ip address 211.142.27.74 255.255.255.252
no ip directed-broadcast
encapsulation ppp
!
AR1220 路由器:
#
interface Serial1/0/1
link-protocol ppp
description to-WuXinPOS (YiDong)
ip address 211.142.27.74 255.255.255.252
invert receive-clock  //配置串口接收时钟翻转
#