1
NE20产品
NE20NE20可维护可维护
EFUEFU调试命令介绍调试命令介绍
NE20 NE20 产品产品
2
主要流程介绍
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
3
转发流程
4
所有转发流
5
主要流程介绍
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
6
TS计数
nps ts display send-counter{ all-count-number | l2-encap-
number | l3-ip-number | dirtran-number | l3-mpls-number }
/ nps ts send-counter clear
nps ts display receive-counter { all-count-number | l2-local-
number | l3-ip-local-number | l3-mpls-local-number | ip-vlink
-trans-number | mpls-vlink-trans-number | ip-nexthop-trans-
number | mpls-nexthop-trans-number | trans-ppp-number |
trans-chdlc-number | trans-eth-number | trans-vlan-number }
/ nps ts receive-counter clear
7
TS计数
[Quidway-efu]nps ts display send-counter all-count-
number
l2 encaplate transport packet number : 984
l3 ip transport packet number : 12753
l3 mpls transport packet number: 0
direct transport packet number : 6497
8
TS计数
[Quidway-efu]nps ts display receive-counter al
l2 local packet number :53
l3 ip local packet number :19227
l3 mpls local packet number
l3 ip vlink transport packet number :0
l3 mpls vlink transport packet number :0
l3 ip nexthop transport packet number :0
l3 mpls nexthop transport packet number :0
l2 ppp transport packet number :0
l2 chdlc transport packet number :0
l2 eth transport packet number :0
l2 vlan transport packet number :0
9
PTS计数
nps pts display/nps pts clear
[Quidway-efu]nps pts display
======================PTS Statistic List
Begin======================
[PTS Xmit] Ctrl -> 27542. || [PTS Xmit] Data -> 20351.
[PTS Xmit] Total-> 47893. || [CPU Xmit] Total-> 47893.
[Xmit Done] Xdone-> 47893. || [Can't DMA] CtDma-> 0.
[FPGA Xmit] Total-> 47893. || [Xmit Excp] NoPac-> 47893.
[Xmit Excp] DmaEr-> 0. || [Xmit Excp] Full -> 0.
[Xmit Excp] NoFiF-> 0. || [Xmit Ring] Last -> 21.
[Xmit Ring] Tail -> 21. || [Xmit Ring] Head -> 21.
[FPGA Rcv] Total-> 46235. || [CPU Rcv] Total-> 46235.
[PTS Rcv] Ctrl -> 26873. || [PTS Rcv] Data -> 19362.
[PTS Rcv] Total-> 46235. || [Rcv Excp] NoFiF-> 0.
[Rcv Ring] Tail -> 34. || [Rcv Ring] Head -> 34.
[RcvCtlRing] Tail -> 121. || [RcvCtlRing] Head -> 121.
[Rcv Ring] Free -> 128. || [RcvCtlRing] Free -> 128.
[FPGA Ring] CrPtr-> 111. || [FPGA Ring] BpCt -> 0.
[FPGA Ring] FifoBp-> 0. || [FPGA Ring] CpuBp -> 0.
=======================PTS Statistic List
End=======================
g_ulFlowCtl = 1, ulDmaFlow = 5000, ulFlowCtlTimeout = 1000
10
DMU计数
nps dmu receive-counter display dmunum portnum
/ nps dmu receive-counter clear dmunum portnum
nps dmu transit-counter display dmunum portnum
/ nps dmu transit-counter clear dmunum portnum
11
DMU计数
Short Frames Addr: 88000000 number = 8
Runt Frames (Short Frames with Bad CRC) Addr: 88000010 number = 0
Frames Transmitted (64 Octets) Addr: 88000020 number = 0
Frames Transmitted (127 Octets) Addr: 88000030 number = 27517
Frames Transmitted (255 Octets) Addr: 88000040 number = 32291
Frames Transmitted (511 Octets) Addr: 88000050 number = 56
Frames Transmitted (1023 Octets) Addr: 88000060 number = 33
Frames Transmitted (1518 Octets) Addr: 88000070 number = 6
Long Frames Transmitted Addr: 88000080 number = 0
Jabber Addr: 88000090 number = 0
Late Collisions Addr: 880000a0 number = 0
Total Collisions Addr: 880000b0 number = 0
Single Collisions Addr: 880000c0 number = 0
Multiple Collisions Addr: 880000d0 number = 0
Excessive Deferrals Addr: 880000e0 number = 0
Transmit Underruns Addr: 880000f0 number = 0
CRC Error Addr: 88000100 number = 0
Excessive Collisions Addr: 88000110 number = 0
Unicast Frames Transmitted Addr: 88000120 number = 34572
Broadcast Frames Transmitted Addr: 88000130 number = 25418
Multicast Frames Transmitted Addr: 88000140 number = 0
Total Octets Transmitted Addr: 88000150 number = 15588
Jumbo Frames Transmitted Addr: 88000160 number = 87
Aborted Frames Addr: 88000170 number = 0
12
NP调试计数器
display efu counter l2 slotnum picnum cardnum
display efu counter l3 slotnum picnum cardnum
efu counter clear l2 slotnum picnum cardnum
efu counter clear l3 slotnum picnum cardnum
13
display efu counter l2
L2[1]= 0 0, reason:PCT l2 forwarding disable
L2[2]= 0 0, reason:Abort flag in FCB is set
L2[3]= 0 0, reason:port in blocking/listenning status
L2[4]= 0 0, reason:no VLAN tag
L2[5]= 0 0, reason:frame of other VLANs
L2[6]= 0 0, reason:invalid VLAN ID
L2[7]= 0 0, reason:ingress SBSP == TBTP
L2[8]= 0 0, reason:ingress broadcast filter
L2[9]= 0 0, reason:invalid ingress MID
L2[10]= 0 0, reason:ingress too long frame
L2[11]= 0 0, reason:leaning only
L2[12]= 0 0, reason:aggregation port loop back
L2[13]= 0 0, reason:EPCT forwarding disable
L2[14]= 0 0, reason:egress VLAN group filter
L2[15]= 0 0, reason:VLAN disable
14
display efu counter l3
L3[1]= 0 0, reason:wrong protocol
L3[2]= 0 0, reason:checksum error
L3[3]= 0 0, reason:L3_CUSTOM_TABLE discard
L3[4]= 0 0, reason:multicast address error
L3[5]= 0 0, reason:IP address error
L3[6]= 0 0, reason:route filter
L3[7]= 0 0, reason:EPCT IP forwarding disable
L3[8]= 0 0, reason:unsupported IP multicast address
L3[9]= 0 0, reason:reserved
L3[10]= 0 0, reason:reserved
L3[11]= 0 0, reason:reserved
L3[12]= 0 0, reason:reserved
L3[13]= 0 0, reason:reserved
L3[14]= 0 0, reason:reserved
L3[15]= 0 0, reason:reserved
15
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
16
报文Debug命令
efu frame cpts { on | off }
efu frame tscp [component CompID]
[reasoncode rc ] { on | off }
efu frame d20x [d20xtype type] { on | off }
特别注意要打开以下开关
<Quidway>terminal debugging
<Quidway>terminal monitor
[Quidway-efu]nps dbgopen 0
17
报文Debug命令
efu frame cpts { on | off } 打开关闭cp到ts报文调试开关
* Quidway EFU/1/DEBUG:
Send to np in ulIfIndex = c03
Send to np in ifname = Virtual-Template1
Send to np in ucFrameType = 2
Send to np in ucLinkType = 0
Send to np in ucL2EncapType = 0
Send to np in ucL3Type = 0
Data length = 68
Total Data length = 68
* Quidway EFU/1/DEBUG:
Sended Packet contents, the first n bytes:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 45 C0 00 44 A1 C6 00 00 01 59 6C D2 C9 01 01 02
16 E0 00 00 05 02 01 00 30 3C 3C 3C 3C 00 00 00 00
32 1F 20 00 00 00 00 00 00 00 00 00 00 FF FF FF 00
48 00 0A 02 01 00 00 00 28 00 00 00 00 00 00 00 00
64 64 01 01 01
18
报文Debug命令
ucFrameType:TS发给NP报文的类型
L2_Enc_Type 0x01
L3_IP_Type 0x02
L3_MPLS_Type 0x03
DirTrans_Type 0x04
ucLinkType:TS发送给NP二层报文链路层协议类型
L2_ETH 0x01
L2_PPP 0x02
L2_CHDLC 0x04
L2_VLAN 0x08
19
报文Debug命令
ucL2EncapType:TS发送给NP二层报文封装类型
L2_Encap_DIX 0x01
L2_Encap_SAP 0x02
L2_Encap_SNAP 0x04
ucL3Type:TS发送给NP二层报文的三层报文类型
L3_IP 0x01
L3_MPLS 0x02
20
D209报文Debug
[Quidway-efu]efu frame d20x d20xtype 9 on
* Quidway EFU/1/DEBUG:
Encap type is d209, Header:
Subtype is 9
Inifindex is 209911808
Lay type is 0
L3 type is 0
L2 type is 2
L2 encaptype is 1
* Quidway EFU/1/DEBUG:
0000 0000 0000 0000 0000 0000 d200 0900 0000 0c83 0000
0000 0201 0000 0000 0000 45c0 0040 c53a 0000 0159 5c62
b601 0102 e000 0005 0201 002c 3c3c 3c3c 0000 0000 8426
0000 0000 0000 0000 0000 ffff ff00 000a 0201 0000 0028
0000 0000 0000 0000
21
D205报文debug
[Quidway-efu]efu frame d20x d20xtype 5 on
* Quidway EFU/1/DEBUG:
Encap type is d205, Header:
Subtype is 5
SP is 0
ETB is 0
TP is 29
OC48 is 0
VLAN ID is 0
FHF is 0
FCInfo is 0
Priority is 3
* Quidway EFU/1/DEBUG:
0000 0000 0000 0000 0000 0000 d200 0500 001d 0000 0000 1d00
0ff0 0000 0000 0003 0100 5e00 0005 00e0 fcff 0107 0800 45c0
0044 6076 0000 0159 6424 1301 0101 e000 0005 0201 0030 6401
0101 0000 0000 f71a 0000 0000 0000 0000 0000 ffff ff00 000a
0201 0000 0028 1301 0102 1301 0101 3c3c 3c3c
22
D204报文Debug
[Quidway-efu]efu frame d20x d20xtype 4 on
* Quidway EFU/1/DEBUG:
Encap type is d204, Header:
Subtype is 4
Frame header is 228 0 3 167 221 0 3 50 76 1
Header type is 0
Component is 3
Reasoncode is 50
Frame id is 0
Fragmented is 0
More fragments is 0
Thread ID is 23
Fragment sequence is 0
* Quidway EFU/1/DEBUG:
ffff ffff ffff 0000 0000 0000 d200 0411 e400 03a7 dd00 0332
4c01 0332 0000 0000 0000 1700 00e0 fcff 0107 00e0 fc07 86a7
0800 4500 0054 606d 0000 ff01 3337 1301 0102 1301 0101 0000
1384 abce 0001 00fe 9fca bad0 bad0 0001 0203 0405 0607 0809
0a0b 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f 2021
2223 2425 2627 2829 2a2b 2c2d 2e2f
23
TS-CP报文debug
打开关闭ts到cp报文调试开关
efu frame tscp [component CompID] [reasoncode rc ] { on | off }
* Quidway EFU/1/DEBUG:
the receive packet type = 18
D204 packet type = 18
Total length received = 64
* Quidway EFU/1/DEBUG:
Received Packet contents, the first n bytes:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 45 C0 00 40 C5 9C 00 00 01 59 5C 00 B6 01 01 02
16 E0 00 00 05 02 01 00 2C 3C 3C 3C 3C 00 00 00 00
32 84 26 00 00 00 00 00 00 00 00 00 00 FF FF FF 00
48 00 0A 02 01 00 00 00 28 00 00 00 00 00 00 00 00
24
报文Debug命令
Packet type:
D204_L2_NATIVE 0x11
D204_L3_IP_NATIVE 0x12
D204_L3_ARP_NATIVE 0x13
D204_L3_MPLS_NATIVE 0x14
D204_L3_IS_IS_NATIVE 0x15
D204_L3_IP_DELIVERTOUP 0x16
D204_IP_VLINK_TRANS 0x21
D204_MPLS_VLINK_TRANS 0x22
D204_IP_NEXTHOP_TRANS 0x24
D204_MPLS_NEXTHOP_TRANS 0x28
D204_TRANS_ETH 0x84
D204_TRANS_PPP 0x41
D204_TRANS_CHDLC 0x42
D204_TRANS_VLAN 0x88
25
报文Debug命令
COMPONENT = PPP UP
component :1 ,reasoncode: 1 ; ppp is-is
component :1 ,reasoncode: 2 ; unknow ppp protocal
component :1 ,reasoncode: 3 ; ppp protocal
COMPONENT = ETH UP
component :2 ,reasoncode: 1 ; eth is-is
26
COMPONENT = IP UP
/*component :3 ,reasoncode: 0 ; ARP*/
/*component :3 ,reasoncode: 1 ; RARP*/
/*component :3 ,reasoncode: 2 ; reserved MC*/
/*component :3 ,reasoncode: 3 ; icmp*/
/*component :3 ,reasoncode: 4 ; option*/
/*component :3 ,reasoncode: 6 ; uc miss*/
/*component :3 ,reasoncode: 7 ; BGP lookup fib fail miss*/
/*component :3 ,reasoncode: 8 ; MC miss*/
/*component :3 ,reasoncode: 9 ; mtu fail*/
/*component :3 ,reasoncode: 10 ; MTU exceed*/
/*component :3 ,reasoncode: 114 ; GRE*/
/*component :3 ,reasoncode: 51 ; TTL expired*/
/*component :3 ,reasoncode: 50 ; uc redir */
/*component :3 ,reasoncode: 178 ; vlan redir*/
27
COMPONENT = IP DN
component :19 ,reasoncode: 5 ; arp miss
component :19 ,reasoncode: 11 ; register miss
COMPONENT = MPLS UP
component :4 ,reasoncode: 0 ; lookup insegment table failed
component :4 ,reasoncode: 2 ; mpls fragment cannot be done
component :4 ,reasoncode: 51 ; TTL expired
component :4 ,reasoncode: 4 ; router-alert label
28
COMPONENT = MPLS DN
component :20 ,reasoncode: 1 ; ip fragment cannot be done
component :20 ,reasoncode: 3 ; mpls lookup outsegment failed
COMPONENT = L4
component :5 ,reasoncode: 1 ; l4 redirect to cp
29
主要流程介绍
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
30
NP表项维护
FIB表维护:
display fib
nps display fib ip_address netmask_length vpn_id
vpn_id可以通过nps ims display interface和nps disp pct/epct
命令看到某个接口的vpn id
IP address =
IP prefixLength = 24
VPN ID = 0x0000
Signature = 0
ecmpThr1 = 100
ecmpThr2 = 0
nextHop[0] =
InnerLable = 1
IfIndex = 0700
H_L:0x02 TP:0x1d Action flag:=0x0040
nextHop[0] is DIRECTLY_ATT_SUBNET
31
NP表项维护
ARP表
disp arp,
nps disp arp interface_name ip_address
OutIfIndex = 0x700
VLAN ID = 0
IP address =
nextHopMac =
encapsulation type is DIX
32
NP的维护
NP中接口信息的查看:EFU模式下
子接口/低速口/逻辑接口:
nps ims display interface interface-full-name或
nps ims np query interface-full-name
高速口:nps display pct/epct interface-name
33
[Quidway-efu]nps ims display interface ser4/0/1:1
Start display Ims NP interface full name: ser4/0/1:1...
The Content of IfDscrTbl Entry is :
The Key = 0x00000a00
IfIndex = 0x00000a06 MAC Adrr = 0x000000000000
SubIfEnable = 0x1 ARP En = 0x0
IP_Mult= 0x0 BC_Enable= 0x1
ubMPLS_MC_Op= 0x0 ubIP_Op= 0x1
ubMPLS_UC_Op= 0x1 ubCLNS_Op= 0x0
ub2Reserved= 0x0 ubL2Accelerator= 0x0
ubVrrp = 0x0 ubReserved1= 0x0
ubEncapMask = 0x0 ubL3Skip= 0x0
ubEthPromiscuous = 0x0 usReserverdHW =0x00
ubL4Skip= 0x1 ubBA_Flag= 0x0
ubSA_LookupEnable= 0x0 ubPct_bridge_flag= 0x0
u12bIngresscontext= 0xa06 usVPNID= 0x0000
ucPortType= 0x0 usMTU= 1500
u4bUnicastMaxIndex= 0x1 ubL4DownSkip= 0x1
ucTTL_threshold= 0x0 ucFlag4= 0x0
ucMC_MacIndex= 0x1 ucMC_QBase= 0x90
u11bUnicastQueueBase= 0x090 usTwinsPerBlock= 12
usOctetsPerBlock= 1392 usCounterId= 0x00000000
ucReserved= 0 usReserved= 0x00000000
34
[Quidway-efu]nps display pct eth1/0/1
Start display pct at ifindex: eth1/0/1...
PCT:
00 E0 FC 55 55 55 A0 00
01 00 00 80 40 59 6D 70
Detail:
MAC address: .
arp is enabled ip multicast is disabled
broadcast is enabled mpls multicast is disabled
ip is disabled mpls unicast is disabled
clns is disabled reserved multicast address(bitmap): 01
vpn_id is 0 l4_skip is enabled
ba_flag is disabled sa lookup is disabled
eth port type is ethernet
ingress_context(hex) is 040
ac field is absent physical port is ethernet
entry address is 65B5
complete unit generate label is enabled
hard classifier is enabled start pos of QW 0
prefetched QWs is 4
Done.
35
[Quidway-efu]nps display epct eth1/0/1
Start display epct at ifindex: eth1/0/1...
EPCT:
01 00 05 DC 18 84 00 00
10 84 00 00 00 0C 05 70
00 00 00 01 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 02 00 00
00 00 00 00 00 00 00 00
Detail:
Port type is ETHERNET L4 Down Skip is enabled
UC Max Index is 1 UC Q_Base is 132
MTU = 1500 UIID is 00008
Done.
36
NP表维护
MPLS表项
nps mpls query in label
nps mpls query out token
37
GRE的维护
在NP中,GRE使用单独的GRE表维护
GRE分片报文重组时,因为NP不支持报文那的重
组,此时需要送CP进行处理
GRE表的显示:
nps gre queryentry source-ip-address dest-ip-address
nps gre querytable gre-table-index
38
主要流程介绍
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
39
NP心跳检测
心跳检测开关
nps rainer heart check { on | off }
当NP无心跳,整机重起,将NP的状态记录到系统监控中
display sysmon-log history
display sysmon-log buffer
40
NP心跳检测
系统监控记录:
============np no heart report =======
The np heart state is: 1 /×尤其注意此位,此位
为1代表NP无心跳×/
/×以下记录NP的一些状态×/
============system monitor report end=======
41
主要流程介绍
数据报文计数命令
数据报文debug命令
NP表项查询命令
NP心跳处理命令
NP调试命令
42
NP调试部分
使用CAB地址是一个是因为有些NP信息没有做相
应的维护命令,再有就是如果CP和NP间硬件通讯
出问题时(一般指DIC逻辑),有的用NP来查询信
息的维护命令使用无效,此时可以用CAB地址
NP当前状态的查看:nps np display status
当CP和NP间硬件通讯出问题时,可以用nps
cabview 20000870
nps cabview 10100010, nps cabview 10100020:显
示FCB、BCB数是否正确,缺省为0x80000000,
即代表800个FCB和BCB
nps cabview 90016fb0:显示下行twinbuffer数,缺
省为1EBF5
43
NP调试部分
NP调试命令
nps chip all
线程调试部分命令
44
谢谢