Documente Academic
Documente Profesional
Documente Cultură
Chapter 5:
Implementing Path Control
ROUTE v6 Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 1
Chapter 5 Topics
Using Cisco Express Forwarding Switching
Summary
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 2
Using Cisco Express
Forwarding Switching
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 3
Upon completing this section, you will be able to do the
following:
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 4
Control and Data Plane
The exchange of routing protocol information is performed
in the control plane by the route processor.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 5
Cisco Switching Mechanisms
Process switching
Is the slowest method.
Every packet is examined by the CPU in the control plane and all
forwarding decisions are made in software.
It greatly degrades performance and is generally used only as a last
Chapter 5 resort or during troubleshooting.
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 6
Cisco Switching Mechanisms
Fast switching
Is faster than process switching.
The first packet is process switched, subsequent frames in the flow
arrive, the destination is found in the hardware fast-switching cache
and the frames are then forwarded without interrupting the CPU.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 7
Cisco Switching Mechanisms
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 9
Cisco Express Forwarding
It caches the information that is generated by the Layer 3
routing engine even before the router encounters any data
flows.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 10
Cisco Express Forwarding
Chapter 5
12
Analyzing Cisco Express Forwarding
Chapter 5
sco Public 13
Analyzing Cisco Express Forwarding
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 14
Enable and Disable CEF by Interface and Globally
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 15
Understanding
Path Control
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 16
Upon completing this section, you will be able to do the
following:
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 17
The Need for Path Control
Path control is required to
avoid performance issues
and to optimize paths.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 18
Implementing Path Control Using Policy-Based
Routing
PBR enables the administrator to define a routing policy
other than basic destination-based routing using the routing
table.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 19
PBR Features
PBR adds flexibility in a difficult-to-manage environment by
providing the ability to route traffic that is based on network
needs.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 20
Steps for Configuring PBR
1. Enable PBR by configuring a route map using the route-map global
configuration command.
3. Define the action for the matched traffic. This is done using the set
commands.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 21
Configuring PBR
The route-map map-tag [permit | deny] [sequence-
number] global configuration command is used to create a
route map.
If the statement is marked as permit, packets that meet all the match
criteria are policy-based routed.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 23
PBR set Commands
If the match statements are satisfied, you can use the set
ip next-hop or set interface commands.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 24
Configuring PBR on an Interface
To identify a route map to use for policy routing on an interface,
use the ip policy route-map map-tag interface configuration
command.
To identify a route map to use for local policy routing, use the ip
local policy route-map map-tag global configuration command.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 26
Configuring PBR Example
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 28
Configure PBR to Alter the Traffic Flow from the
Notebook
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 29
Verify the PBR Configuration and Traffic Path
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 30
Verify the PBR Configuration and Traffic Path
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 31
Verify the PBR Configuration and Traffic Path
Chapter 5
Verify the PBR Configuration and Traffic Path
Notebook
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 33
Implementing Path Control Using Cisco IOS IP
SLAs
PBR is a static path control mechanism.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 35
Cisco IOS IP SLA Sources and Targets
All the IP SLA measurement probe operations are configured on the IP
SLAs source, such as a Cisco IOS router.
If the target is another Cisco IOS device, the target can be configured as
an IP SLA responder. A responder can provide accurate measurements
without the need for dedicated probes or any complex or per-operation
configuration.
Chapter 5
co Public 36
Cisco IOS IP SLA Operations
An IP SLA operation is a measurement that includes
protocol, frequency, traps, and thresholds.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 37
Cisco IOS IP SLA Operation with Responders
Using an IP SLA responder provides enhanced
measurement accuracy and additional statistics that are not
otherwise available via standard ICMP-based
measurement.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 38
Steps for Configuring IP SLAs
The following steps are required to configure Cisco IOS IP
SLAs functionality:
2. Define one or more tracking objects to track the state of IOS IP SLA
operations.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 39
Step 1: Configuring Cisco IOS IP SLA
Operations
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 40
IP SLA Configuration Mode Commands
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 42
Schedule the IP SLA Operation
Once a Cisco IP SLA operation is configured, it needs to be
scheduled using the ip sla schedule global configuration
command.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 43
Step 2: Configuring Cisco IOS IP SLA Tracking
Objects
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 44
Step 3: Defining an Action Associated with a
Tracking Object
Many types of actions can be associated with a tracked
object.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 45
Configuring IP SLA Example
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 46
Configuring an IP SLA Operation with the ISP 1
DNS Server
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 47
Defining a Tracking Object and Assigning an
Action
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 48
Configuring an IP SLA Operation with the ISP 2
DNS Server
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 49
Configuring an IP SLA Operation with the ISP 2
DNS Server
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 50
Configuring PBR and IP SLA Example
-Web traffic to the HQ site should be redirected over the serial link.
-All other traffic from Notebook should go via BR2 but only if BR2 is
reachable.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 51
Redirecting Web Traffic from BR1 to HQ Using
PBR
Chap
ter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public
52
Redirecting Web Traffic from BR1 to HQ Using
PBR
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 53
Ensuring That BR2 Is Reachable Using IP SLA
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 54
Redirect Traffic from Notebook to BR2 If
Reachable
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 55
Verifications
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 56
Verifications
Chapter 5
57
Verifications
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 58
Summary
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 59
Summary
Packet-switching mechanisms on a Cisco IOS platform, including
process switching, fast switching, and CEF switching.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 60
Summary
Configuring and verifying PBR, including the following
steps:
Choose the path control tool to use; for PBR, route-map commands
are used
Implement the traffic-matching configuration, specifying which traffic
will be manipulated; match commands are used within route maps
Define the action for the matched traffic, using set commands within
route maps
Apply the route map to incoming traffic or to traffic locally generated
on the router
Verify path control results, using show commands
There are two types of IP SLA operations: those in which the target
device is running the IP SLA responder component.
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 62
Chapter 5
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 63