1、 如何用打环判断是传输还是设备端口故障 CDD GD Branch TECHINICAL MANAGER Lin Changjian V1.0 2008-11-03Index 1、 7750SR路由器通过传输互联示意及互联时的注意事项 3 2、 通常路由器的POS接口对接不通的问题可能性分析 3 3、 如何打环及打环的注意事项 3 4、 使用打环判断端口还是传输故障的思路 5 5、 路由器互联不通的排查故障实例 6 附录1:7750SR路由器的常用光模块参数 10 1、 7750SR路由器通过传输互联示意及互联时的注意事项
2、 如上图示意,通常二台7750之间的传距离互联均会经过传输后进行对接,可通使用的传输可能有SDH、DWDM波分等。 与不同传输对接时的注意事项: 1、 设置POS接口的帧格式,有sonet或sdh二种,应该与传输支持的格式及对端设备支持的格式对应。 2、 设置POS接口的时钟,如使用SDH传输,如SDH为路由器接口提供时钟的情况后,应将二端路由器接口的时钟设为取线路时间,但路由器使用自身时钟也是能够UP的,这种情况下如传输与路由器的时钟不同步可能会有错包等影响;如果SDH传输不提供时钟或使用DWDM的波分传输(波分不提供时钟)时,应将二端路由器的端口一端设为线路时钟,一端设为设备时钟,
3、当然二端均取设备自身时钟也能通,但一但时钟不同步也会引起错包等影响。 3、 二端路由器的数据链路层协议封装需要一致,通常有PPP、HDLC等,推荐使用PPP协议,PPP为标准协议。 4、 注意光接口参数的匹配,包括光功率及波长等。 2、 通常路由器的POS接口对接不通的问题可能性分析 1、 一端路由器接口故障 2、 传输故障 3、 数据链路层协议封装不一致 4、 光接口发光参数不匹配 对于以上四种可能性,3可以直接通过查看二端路由器配置确认正确与否,4则可以通过光功率计来测量以确认是否有异常;但1和2则无法直接通过配置或仪器来判断故障点,通常在处理1或2的办法就是通过打
4、环来确认故障点。 3、 如何打环及打环的注意事项 将接口的收和发直接互联即为打环,但打环又分为内部环回、外部环回;内部环回指的是在路由器的端口内部通过命令使端口的收发短接;外部环回指的是在路由器的端口上使用一根尾纤将收发短接。 不管是内部环回还是外环回,POS接口必须将时钟设为设备时钟; 如果是外部环回还应该注意端口发光功率是否会越过端口过载光功率,如会则应该添加适量的光衰,一般经验是传输距离小于40KM的模块可以直接打环。 7750SR路由器打环的操作: *A:7750SR1#configure port 1/1/2 *A:7750SR1>config>port#shutd
5、own *A:7750SR1>config>port#sonet-sdh clock-source node-timed /务必设为node-timed/ *A:7750SR1>config>port#sonet-sdh loopback internal /端口内部环回使用/ *A:7750SR1>config>port#no shutdown 如何确认7750SR路由器端口打环成功: *A:7750SR1# clear port 1/1/2 statistics /查看前1秒钟,清除端口统计/ *A:7750SR1# show port 1/1/2 detail =
6、 SONET/SDH Interface =============================================================================== Description : Interface : 1/1/2 Speed : oc48 Admin Status
7、 : up Oper Status : up Physical Link : Yes Loopback Mode : internal Single Fiber Mode : No APS Group : none APS Role : none
8、 Clock Source : node Framing : sonet Last State Change : 04/25/2008 10:10:24 Port IfIndex : 18939904 J0 String : 0x01 Section Trace Mode : byte Rx S1 Byte : 0x00 Rx
9、K1/K2 Byte : 0x00/0x00 Rx J0 String (Hex) : 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Cfg Alarm : loc lrdi lb2er-sf slof slos Alarm Status : Hold time up : 500 millisecon
10、ds Hold time down : 0 milliseconds Transceiver Data Transceiver Type : SFP Model Number : 3HE00046AA
11、 Transceiver Code : OC48-IR TX Laser Wavelength: 1310 nm Diag Capable : yes Connector Code : LC Vendor OUI : 00:0a:1d Manufacture date : 2005/03/29 Media
12、 : SONET/SDH Serial Number : 3180058 Part Number : TRPD48I1EBYS-TM Optical Compliance : OC48-IR-1 Link Length support: 21km for SMF;
13、 ========================= Sonet Section ========================= ES-S : 0 SES-S : 0 SEFS-S : 202064 CV-S : 16998140 LOS : 6 LOC : 0 LOF : 2
14、2 OOF : 0 B1 Error : 16998067 ========================= =========================================== Sonet Line =========================================== Far End
15、 ------------------------------------------- ES-L 3 4 SES-L 1 4 UAS-L 202077 457131 CV-L 5325 0 AIS-L : 22 RDI-L : 6 B2 Error :
16、 5199318 S1 Error : 0 M1 Error : 3554179 =========================================== =============================================================================== Port Statistics ===============================================================================
17、 Input Output ------------------------------------------------------------------------------- Packets 999 999 Discards 0
18、 0 Unknown Proto Discards 0 =============================================================================== ======================================================= Per Priority MDA Discard Statistics ========================
19、 Packets ------------------------------------------------------- High Priority dropped : 0 Low Priority dropped : 0 =============
20、 打环是否成功主要看端口oper state是否为up,及端口的input、output的包是否一致,如是则可以确认打环成功。 4、 使用打环判断端口还是传输故障的思路 1、如下图,二端路由器的互联端口使用尾纤各自打环,以确认本端路由器的端口是正常工作。 2、如下图,在二端传输侧对本端路由器打环,以确认从路由器到传输侧的尾纤、ODF架是正常的。 3、如下图,在一端传输侧对远端路由器的接口打环,以确认传输是否正常。 5、 路由器互联不通的排查故障实例 如下图,二台7750SR
21、路由器使用10G的POS接口通过波分传输互联,经测试二端路由器的发光功率均正常,却无法互通,无法判断是传输故障还是路由器故障。 1、 将二端口路由器的互联尾纤取下,使用一新的尾纤将各自端口环回测试,确认二端路由器端口的收发包一致,端口的oper state为up,确认端口的工作正常。 命令行操作: *A:7750SR-A#configure port 1/1/1 *A:7750SR-A>config>port#shutdown *A:7750SR-A>config>port#sonet-sdh clock-source node-timed /务必设为node-timed/ *A:
22、7750SR-A>config>port#exit *A:7750SR-A# clear port 1/1/1 statistics *A:7750SR-A#configure port 1/1/1 no shutdown *A:7750SR-A# show port 1/1/1 detail =============================================================================== SONET/SDH Interface ==============================================
23、 Description : Interface : 1/1/2 Speed : oc192 Admin Status : up Oper Status : up Physical Link : Yes Loopback Mode : internal
24、 Single Fiber Mode : No APS Group : none APS Role : none Clock Source : node Framing : sonet Last State Change : 04/25/2008 10:10:24 Port IfInde
25、x : 18939904 J0 String : 0x01 Section Trace Mode : byte Rx S1 Byte : 0x00 Rx K1/K2 Byte : 0x00/0x00 Rx J0 String (Hex) : 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Cfg Alarm : loc lrdi lb2er
26、sf slof slos Alarm Status : Hold time up : 500 milliseconds Hold time down : 0 milliseconds Transceiver Data Trans
27、ceiver Type : SFP Model Number : 3HE00046AA Transceiver Code : OC48-IR TX Laser Wavelength: 1310 nm Diag Capable
28、 yes Connector Code : LC Vendor OUI : 00:0a:1d Manufacture date : 2005/03/29 Media : SONET/SDH Serial Number : 3180058 Part Number : TRPD48I1EBYS-TM
29、 Optical Compliance : OC48-IR-1 Link Length support: 21km for SMF; ========================= Sonet Section ========================= ES-S : 0 SES-
30、S : 0 SEFS-S : 202064 CV-S : 16998140 LOS : 6 LOC : 0 LOF : 22 OOF : 0 B1 Error : 16998067 ========================= =====================
31、 Sonet Line =========================================== Far End ------------------------------------------- ES-L 3 4 SES-L 1 4 UAS
32、L 202077 457131 CV-L 5325 0 AIS-L : 22 RDI-L : 6 B2 Error : 5199318 S1 Error : 0 M1 Error : 3554179 =========================================== ===============================
33、 Port Statistics =============================================================================== Input Output -----------------------------------------------------------------------
34、 Packets 999 999 Discards 0 0 Unknown Proto Discards 0 ===============================================
35、 ======================================================= Per Priority MDA Discard Statistics ======================================================= Packets --------------------------------
36、 High Priority dropped : 0 Low Priority dropped : 0 ======================================================= 2、 将打环尾纤放开,接回传输,分对在二端的传输对端本端的路由器接口打环,配置不变,只查看路由器端口的包收发情况和oper state。二端路由器端口的包收发一致,oper state为up,确认
37、路由器到传输的尾纤和ODF架正常。 3、 在A侧传输给7750SR-B的端口打远端环回,检查7750SR-B的端口状态,路由器端口的oper state为up,但包收发不一致,input小于ouput的数量,确认包被传输丢弃,导致不同的故障应该是由传输所致。 命令行操作: *A:7750SR-A#configure port 1/1/1 *A:7750SR-A>config>port#shutdown *A:7750SR-A>config>port#sonet-sdh clock-source node-timed /务必设为node-timed/ *A:7750SR-A>conf
38、ig>port#exit *A:7750SR-A# clear port 1/1/1 statistics *A:7750SR-A#configure port 1/1/1 no shutdown *A:7750SR-A# show port 1/1/1 detail =============================================================================== SONET/SDH Interface ===========================================================
39、 Description : Interface : 1/1/2 Speed : oc192 Admin Status : up Oper Status : up Physical Link : Yes Loopback Mode : internal Single Fibe
40、r Mode : No APS Group : none APS Role : none Clock Source : node Framing : sonet Last State Change : 04/25/2008 10:10:24 Port IfIndex : 1
41、8939904 J0 String : 0x01 Section Trace Mode : byte Rx S1 Byte : 0x00 Rx K1/K2 Byte : 0x00/0x00 Rx J0 String (Hex) : 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Cfg Alarm : loc lrdi lb2er-sf slof slos
42、 Alarm Status : Hold time up : 500 milliseconds Hold time down : 0 milliseconds Transceiver Data Transceiver Type
43、 : SFP Model Number : 3HE00046AA Transceiver Code : OC48-IR TX Laser Wavelength: 1310 nm Diag Capable : yes
44、 Connector Code : LC Vendor OUI : 00:0a:1d Manufacture date : 2005/03/29 Media : SONET/SDH Serial Number : 3180058 Part Number : TRPD48I1EBYS-TM
45、 Optical Compliance : OC48-IR-1 Link Length support: 21km for SMF; ========================= Sonet Section ========================= ES-S : 0 SES-S :
46、 0 SEFS-S : 202064 CV-S : 16998140 LOS : 6 LOC : 0 LOF : 22 OOF : 0 B1 Error : 16998067 ========================= ==================================
47、 Sonet Line =========================================== Far End ------------------------------------------- ES-L 3 4 SES-L 1 4 UAS-L
48、 202077 457131 CV-L 5325 0 AIS-L : 22 RDI-L : 6 B2 Error : 5199318 S1 Error : 0 M1 Error : 3554179 =========================================== ============================================
49、 Port Statistics =============================================================================== Input Output ------------------------------------------------------------------------------- Pac
50、kets 90 999 Discards 0 0 Unknown Proto Discards 0 ============================================================






