Professional Documents
Culture Documents
www.juniper.net | 3
Interface Process
User
Chassis Process
Data Plane
www.juniper.net | 4
System Processes
Processes in the user space interact with the kernel and are often called daemons The Junos OS runs a variety of daemons:
user@mx> show system processes extensive | count Count: 125 lines user@mx> show system processes extensive | match rpd 1228 root 1 4 0 41364K 10416K kqread 5:28 0.00% rpd
Process ID (PID)
Total Size
Resident Memory
CPU Usage
Process Name
www.juniper.net | 5
Note: Disabling system processes can cause instabilities and should only be performed as a troubleshooting step under the guidance of JTAC.
Nov 8 21:35:08 mxD-2 init: ethernet-link-fault-management (PID 1268) terminate signal sent Nov 8 21:35:08 mxD-2 init: ethernet-link-fault-management (PID 1268) exited with status=0 Normal Exit
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 6
121 processes: 2 running, 91 sleeping, 28 waiting Mem: 306M Active, 34M Inact, 62M Wired, 139M Cache, 112M Buf, 1448M Free Swap: 2915M Total, 2915M Free
SIZE 0K
TIME
WCPU COMMAND
Hint: Use show task memory detail over time to identify memory leaks.
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 7
Use show system statistics to view control plane counters separated by protocol
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 8
User Processes
Log out of the Junos device gracefully to prevent hung user sessions:
user@mx> show system users 9:46PM USER lab lab up 56 days, 23:25, 2 users, load averages: 0.41, 0.18, 0.07 TTY u0 p0 FROM 10.210.15.30 LOGIN@ 21Sep10 9:45PM IDLE WHAT - -cli (cli) - -cli (cli)
www.juniper.net | 9
BGP Others
www.juniper.net | 10
Junos Kernel
2010 Juniper Networks, Inc. All rights reserved.
BGP Others
www.juniper.net | 11
Core Files
Core dump files
Generated by system process crashes (or forcibly) Files should be uploaded to JTAC and associated with a JTAC case number Often associated with problem reports
www.juniper.net | 12
Troubleshooting Methodology (1 of 3)
New or existing implementation?
Understanding is important for isolating the issue
Do no harm!
Clearing a route or database entry
Single route must refresh
Bouncing a protocol
All adjacencies or peerings must re-establish
www.juniper.net | 13
Troubleshooting Methodology (2 of 3)
Define success (and isolate)
Route received from neighbor
Check protocol adjacency Check protocol database
Route is stable
Check logs, interfaces, and protocol traces
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 14
Troubleshooting Methodology (3 of 3)
Identify and implement a solution
Repair hardware issue Adjust protocol configuration
Adjacency configuration Metrics and preferences Policy
Adjust implementation
Prevent link overutilization
www.juniper.net | 15
.1 Router A .1
.2 Router D .2
Host X
Host Y
user@mxA> ping 192.168.30.2 PING 192.168.30.2 (192.168.30.2): 56 data bytes ^C --- 192.168.30.2 ping statistics --6 packets transmitted, 0 packets received, 100% packet loss user@mxA> ping 192.168.40.2 PING 192.168.40.2 (192.168.40.2): 56 data bytes ^C --- 192.168.40.2 ping statistics --6 packets transmitted, 0 packets received, 100% packet loss
Router F Router E
www.juniper.net | 17
Router D
Router F
Router E
user@mxA> traceroute 192.168.30.2 traceroute to 192.168.30.2 (192.168.30.2), 30 hops max, 40 byte packets 1 2 3 4 5 192.168.10.2 (192.168.10.2) 192.168.20.2 (192.168.20.2) * * * * * * * *^C 0.464 ms 0.406 ms 0.334 ms 0.364 ms 0.330 ms 0.356 ms
www.juniper.net | 18
Router B
Router C
Router A
Router D
Router F
2010 Juniper Networks, Inc. All rights reserved.
Router E
www.juniper.net | 19
No
No
No
Yes
No
www.juniper.net | 20
www.juniper.net | 22
Traceoptions:
[edit protocols ospf] user@mx# set traceoptions flag ? Possible completions: all database-description error event flooding ...
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 23
Trace everything Trace database description packets Trace errored packets Trace OSPF state machine events Trace LSA flooding
00:24:33.111454 Out IP truncated-ip - 26 bytes missing! 172.18.5.2 > 224.0.0.5: OSPFv2, Hello, length 44 00:24:38.916834 In IP 172.18.5.1 > 224.0.0.5: OSPFv2, Hello, length 44 00:24:42.024384 Out IP truncated-ip - 26 bytes missing! 172.18.5.2 > 224.0.0.5: OSPFv2, Hello, length 44 ^C 4 packets received by filter 0 packets dropped by kernel
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 24
ge-1/0/2 (.1)
(.2) ge-1/0/2
www.juniper.net | 25
user@mx2> clear ospf statistics user@mx2> show ospf statistics Packet type Sent Hello DbD LSReq LSUpdate LSAck ...
2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 26
Total Received 3 0 0 0 0 0 0 0 0 0
www.juniper.net | 27
Nov 24 00:59:45.898113 OSPF sent Hello 172.18.5.2 -> 224.0.0.5 (ge-1/0/2.144 IFL 76 area 0.0.0.0) Nov 24 00:59:45.898595 Nov 24 00:59:45.898619 128 Nov 24 00:59:45.898639 ... Version 2, length 44, ID 192.168.38.1, area 0.0.0.0 mask 255.255.255.252, hello_ivl 10, opts 0x2, prio dead_ivl 40, DR 0.0.0.0, BDR 0.0.0.0
www.juniper.net | 28
The culprit:
user@mx2# run show log ospftrace ...
Nov 24 01:31:44.779373 OSPF packet ignored: authentication failure (bad cksum). Nov 24 01:31:44.779554 OSPF packet ignored: authentication failure from 172.18.5.1 ...
Note: Monitoring the interface traffic would have been helpful with a plain-text authentication mismatch, but an MD5 secret mismatch would not have been detected.
www.juniper.net | 29
www.juniper.net | 30
user@ex> show ethernet-switching table Ethernet-switching table: 6 entries, 4 learned VLAN v100 v100 MAC address * Type Flood Age Interfaces - All-members 0 ge-0/0/14.0
www.juniper.net | 31
00:0c:29:73:13:fe Learn
EX Series
user@ex> clear ethernet-switching table
www.juniper.net | 32
ARP Overview
ARP associates IP addresses with Layer 2 addresses in an ARP table
Once a routing issue is isolated to a broadcast segment, monitor the ARP process for a local problem
.1 .1
.2
.2
Host Y
www.juniper.net | 33
www.juniper.net | 34
www.juniper.net | 35