Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Troubleshooting)
Ch. 7 Troubleshooting Performance
Issues Part 1
Rick Graziani
Cabrillo College
graziani@cabrillo.edu
Fall 2012
Materials
Book:
Troubleshooting and Maintaining
Cisco IP Networks (TSHOOT)
Foundation Learning Guide:
Foundation learning for the CCNP
TSHOOT 642-832
By Amir Ranjbar
Book
ISBN-10: 1-58705-876-6
ISBN-13: 978-1-58705-876-9
eBook
ISBN-10: 1-58714-170-1
ISBN-13: 978-1-58714-170-6
Topics
Part 1: Troubleshooting Network Application Services
NetFlow accounting
IP SLAs (Service Level Agreements)
NBAR (Network-Based Application Recognition) packet
inspection
SLB (Server Load Balancing)
QoS (Quality of Service) and AutoQoS
Part 2: Routers and Switches
Performance Issues on Switches
Performance Issues on Routers
10
This section will have a brief discussion on the following Cisco IOS
application optimization tools:
NetFlow accounting
IP SLAs
NBAR packet inspection
Server load balancing
QoS
AutoQoS
NetFlow, IP SLAs, and NBAR packet inspection, provide a good starting
point for creating a network performance baseline.
11
Tools
NetFlow accounting
IP SLAs
NBAR packet inspection
Approach
Overview
Issues
Troubleshooting Examples
12
NetFlow
13
14
15
18
Common NetFLow
Issues
22
Cisco IP SLA
23
24
25
Depending on the type of probe you setup, you may or may not need to
configure an IP SLA Responder.
For example, if you are setting up a simple echo probe to a IP host, you do
not need a responder.
An IP SLA Responder allows for more detailed information to be retrieved.
26
27
Example: Network
Availability
Router(config)#iproute0.0.0.00.0.0.0fa0/0
Router(config)#iproute0.0.0.00.0.0.0fa0/15
fa0/0
fa0/1
172.16.1.1
28
fa0/0
fa0/1
172.16.1.1
R1(config)#ipsla11
R1(configrtr)#typeechoprotocolipIcmpEcho10.1.1.1sourceinterfacefa0/0
R1(configrtr)#frequency10
Probe
R1(config)#ipslascheduleschedule11lifeforeverstarttimenow
R1(config)#track1rtr11reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/02track1
Tracking
Object
Status of
Tracking Object
172.16.1.1
Defining the Probe
ip sla: defines probe 11
type echo: specifies that the ICMP echoes are sent:
To destination 10.1.1.1 to check connectivity
With the source interface of FastEthernet0/0
frequency 10: schedules the connectivity test to repeat every 10 seconds.
ip sla monitor schedule 11 life forever start-time now: defines the start
time of now and it will continue forever
30
R1(config)#ipsla11
R1(configrtr)#typeechoprotocolipIcmpEcho10.1.1.1sourceinterfacefa0/0
R1(configrtr)#frequency10
Probe
R1(config)#ipslascheduleschedule11lifeforeverstarttimenow
R1(config)#track1rtr11reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/02track1
Tracking
Object
Status of
Tracking Object
172.16.1.1
Defining the Tracking Object
track 1 rtr 11 reachability: Specifies that:
Object 1 is tracked (next step)
Linked to probe 11 (defined in the first step) so that the reachability of
the 10.1.1.1 is tracked.
31
R1(config)#ipsla11
R1(configrtr)#typeechoprotocolipIcmpEcho10.1.1.1sourceinterfacefa0/0
R1(configrtr)#frequency10
Probe
R1(config)#ipslascheduleschedule11lifeforeverstarttimenow
Tracking
Object
R1(config)#track1ipsla11reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/02track1
Status of
Tracking Object
AD=2
172.16.1.1
R1(config)#ipsla22
R1(configrtr)#typeechoprotocolipIcmpEcho172.16.1.1sourceinterfacefa0/1
R1(configrtr)#frequency10
Probe
R1(config)#ipslaschedule22lifeforeverstarttimenow
R1(config)#track2ipsla22reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/13track2
Tracking
Object
Status of
Tracking Object
172.16.1.1
Defining the Probe
ip sla: defines probe 22
type echo: specifies that the ICMP echoes are sent:
To destination 172.16.1.1 to check connectivity,
With the source interface of FastEthernet0/1
frequency 10: schedules the connectivity test to repeat every 10 seconds.
ip sla monitor schedule 22 life forever start-time now: defines the start
time of now and it will continue forever
33
R1(config)#ipslamonitor22
R1(configrtr)#typeechoprotocolipIcmpEcho172.16.1.1sourceinterfacefa0/1
R1(configrtr)#frequency10
Probe
R1(config)#ipslamonitorschedule22lifeforeverstarttimenow
R1(config)#track2ipsla22reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/13track2
Tracking
Object
Status of
Tracking Object
172.16.1.1
Defining the Tracking Object
track 1 rtr 22 reachability: Specifies that:
Object 2 is tracked (next step)
Linked to probe 22 (defined in the first step) so that the reachability of
the 172.16.1.1 is tracked.
34
R1(config)#ipsla22
R1(configrtr)#typeechoprotocolipIcmpEcho172.16.1.1sourceinterfacefa0/1
R1(configrtr)#frequency10
Probe
R1(config)#ipslaschedule22lifeforeverstarttimenow
Tracking
Object
R1(config)#track2ipsla22reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/13track2
Status of
Tracking Object
AD=2
AD=3
172.16.1.1
35
R1(config)#ipsla11
R1(configrtr)#typeechoprotocolipIcmpEcho10.1.1.1sourceinterfacefa0/0
R1(configrtr)#frequency10
Probe
R1(config)#ipslaschedule11lifeforeverstarttimenow
Tracking
Object
R1(config)#track1ipsla11reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/02track1
Status of
Tracking Object
R1(config)#ipsla22
R1(configrtr)#typeechoprotocolipIcmpEcho172.16.1.1sourceinterfacefa0/1
R1(configrtr)#frequency10
Probe
R1(config)#ipslaschedule22lifeforeverstarttimenow
Tracking
Object
R1(config)#track2ipsla22reachability
R1(config)#iproute0.0.0.00.0.0.0fa0/13track2
Status of
Tracking Object
AD=2
AD=3
172.16.1.1
36
ip sla 1
type icmp-echo 10.1.100.1
ip sla schedule 1 life forever start-time now
!
ip sla 2
type icmp-echo 10.1.1.1
ip sla schedule 2 life forever start-time now
!
ip sla 3
type icmp-echo 10.1.100.253
ip sla schedule 3 life forever start-time now
!
track 1 ip sla 1 reachability
delay up 10
! Delays state change
!
track 2 ip sla 2 reachability
delay up 20
!
track 3 ip sla 3 reachability
delay up 30
!
track 10 list boolean or (At least one UP for
condition to be TRUE)
object 1
object 2
!
track 30 list boolean and (ALL UP for condition
to be TRUE)
object 1
object 2
object 3
37
Sender
Sender
Receiver
39
40
41
42
43
NBAR
44
45
46
Router(config)#interfacefa6/0
Router(configif)#ipnbarprotocoldiscovery
Router(config)#interfacefa6/0
Router(configif)#ipnbarprotocoldiscovery
Router#showipnbarprotocoldiscovery
48
49
Main Benefit
NetFlow
Flow Characterization
Network Usage
Data Export
Interface
TOS
IP
Header
TCP/UDP
Header
Data
Packet
NetFlow
Protocol
Source
IP Address
Destination
IP Address
NetFlow
Monitors data in Layers 2 thru 4
Determines applications by port
Utilizes a 7-tuple for flow
Source
Port
Destination
Port
Deep Packet
(Payload)
Inspection
NBAR
NBAR
52
Signature-based detection
Not historically a main focus
for NBAR
Real-time loadable PDLMs could
provide rapid-update mechanism
for new signatures
Not staffed to react against
malicious applications
Summary of Benefits
NetFlow
NBAR
User Monitoring
Application Monitoring
Accounting and Billing
DDOS Monitoring
Peering Arrangements
Network Planning
Traffic Engineering
SLB
Cisco IOS SLB feature is a Cisco IOS-based solution that provides server
load balancing.
Allows you to define a virtual server that represents a cluster of real servers,
known as a server farm.
SLB load-balances the connection to a chosen real server based on the
configured load-balance algorithm or predictor.
Clients initiate their connections to a virtual IP address
55
Router(config)#ipslbserverfarmSERVERS
Router(configslbsfarm)#real10.10.1.3
Router(configslbsfarmreal)#inservice
Router(configslbsfarm)#real10.10.1.5
Router(configslbsfarmreal)#inservice
Router(config)#ipslbvserverWEBSITE
Router(configslbvserver)#virtual172.17.63.215tcpwww
Router(configslbvserver)#serverfarmSERVERS
Router(configslbvserver)#inservice
56
QoS - each traffic class is treated differently by the network, with different
methods of:
congestion management
congestion avoidance
policing
other policies
Cisco AutoQoS is an automation tool for deploying QoS policies.
57
Router(configif)#autodiscoveryqos
In the second phase you enter the interface auto qos command.
Cisco AutoQoS provides the user a simple, intelligent Command Line
Interface (CLI) for enabling campus LAN and WAN QoS on Cisco switches
and routers.
The network administrator does not need to possess extensive knowledge of
the underlying network technology (PPP, Frame Relay, ATM), required QoS
service policies, or link efficiency mechanisms needed to ensure voice quality
and reduce latency, jitter, and packet drops.
For Cisco AutoQoS to work certain requirements must be met:
Cisco Express Forwarding (CEF) must be enable on the interface
The interface must have an IP address configured
For serial interfaces configure the appropriate bandwidth
On point-to-point serial interfaces, both sides must be configured
AutoQoS
59
CEF disabled
Cisco Express Forwarding must be enabled.
Wrong bandwidth:
The bandwidth on a serial interface is not autosensed.
Cisco AutoQoS uses the configured interface bandwidth to enable or
disable certain QoS features such as compression and fragmentation.
If the configured bandwidths are different Cisco AutoQoS may enable
certain features on one side while disabling them on the other side of
the same link.
This can cause Layer 2 issues and bring the interface down.
60
Modifying the Cisco AutoQoS configuration after the feature has been
enabled can be problematic.
If you disable AutoQoS on an interface using the no auto qos
command, all Cisco AutoQoS generated commands are removed.
Any commands that were modified are not removed.
If you don't remove those commands manually, they may cause errors
or performance problems.
AutoQoS does not work on an interface if it already has a policy applied to
it.
BEFORE you apply AutoQoS, check and make sure the interface has:
An IP address
Proper bandwidth configured
CEF enabled
No QoS policies already applied
61
Troubleshooting Examples
62
NetFlow is used for traffic metering and baselining and a NetFlow Collector
server with the IP address 10.1.1.10 is used to collect and aggregate
NetFlow data.
63
Lo x.x.x.x
10.1.1.10
Port 9991
The reported problem is that the NetFlow Collector is not receiving data
from router R1, a NetFlow-enabled routers.
We start this troubleshooting exercise by:
Testing connectivity between R1 and the NetFlow Collector
Checking the NetFlow-specific configuration
Using ping, we confirm IP connectivity between R1 and NetFlow Collector,
Through some fact gathering we discover that the NetFlow Collector:
IP address is 10.1.1.10
NetFlow port number is 9991
Configured to receive NetFlow data from R1 on R1s loopback interface
as the source
64
Check if R1 is actually exporting NetFlow and if these are any flows to export
R1 is collecting plenty of data.
65
66
Verify corrections.
NetFlow Collector is now receiving the NetFlow exports; the problem is
solved.
68
s0/0/0
The connection between routers R1 and R2 is down but the service provider
maintains that the backbone service is fully operational.
76
s0/0/0
s0/0/0
Service
Provider
Check the status of the ip interfaces on R1, using the show ip interfaces
brief command
Serial 0/0/0 is UP, but its line protocol is DOWN
77
s0/0/0
s0/0/0
R1#showinterfaceserial0/0/0
Serial0/0/0isup,lineprotocolisdown
Hardwareis
MTU1500bytes,BW115Kbit,DLY20000usec,rely255/255,
load1/255
EncapsulationHDLC,loopbacknotset
Fullduplexenabled
<outputomitted>
Service
Provider
Using the show interfaces command, you'll notice that serial 0/0/0 is
configured for HDLC (High-Level Data Link Control) encapsulation.
The documentation, however, indicates that this serial interface must be
configured for Point-to-Point Protocol (PPP) encapsulation.
78
s0/0/0
s0/0/0
Service
Provider
79
s0/0/0
s0/0/0
Service
Provider
R1(config)#interfaceserial0/0/0
R1(configif)#noautoqosvoip
Through some investigation and fact gathering we learn that the problem
was reported after someone tried to enable AutoQoS on this interface.
The tech removed AutoQoS, but the circuit remained down.
What the tech didn't know is that when AutoQoS was removed, the interface
encapsulation was changed back to serial interface default encapsulation,
which is HDLC.
All that was needed was to set the encapsulation to PPP, as we just did and
the interface came back up but...
80
s0/0/0
s0/0/0
Service
Provider
However, the issue that remains is that we need to make use of AutoQoS on
this interface.
AutoQoS (enterprise) has two phases.
First phase we need to enable "auto discovery" on the interface for a while
(minimum of 3 days is recommended).
Second phase, you actually enable AutoQoS, which will generate
templates and policies based on the discovery enabled in phase one.
Notice that the interface went down soon after you enter the auto qos
command on serial 0/0/0.
It seems that AutoQoS attempted to set the multilink feature on serial 0/0/0
and that failed.
81
s0/0/0
s0/0/0
Service
Provider
82
s0/0/0
s0/0/0
Service
Provider
83
s0/0/0
s0/0/0
2000
Service
Provider
R1(config)#interfaceserial0/0/0
R1(configif)#noservicepolicyinputTEST
R1(configif)#noservicepolicyoutputTEST
R1(configif)#encapsulationppp
R1(configif)#autoqosvoip
R1#ping172.16.1.2
!!!!!
84