Beruflich Dokumente
Kultur Dokumente
SSH
Control Plane Data Plane Management Plane
Host Service
SSH
L2 Drivers
Per.fMgmt
Interface
NetFlow
Routing
SNMP
Alarm
OSPF
LPTS
IGMP
BGB
SSH
QoS
ACL
XML
Network Stack
HA Infrastructure
ISIS
PIM
FIB
RIB
PFI
RIP
CLI
System Forward Checkpoint DB Multicast IPC System DB
Infrastructure Infrastructure Distributed Infrastructure
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
• Modular—Runtime SW upgrade/downgrade support
• Distributed—scalable with multi chassis support
• Platform Independent—POSIX compliant
• Management Interface—Unified Data Model (XML)
• High Availability—Hot Standby and Process Restart
• Security—Control, Data and Management Plane
• Logical Router—Router Partitioning (SDR)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Cisco IOS-XR Software Modularity
Microkernel architecture
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
IOS XR Modular Packaged Software
RP DRP LC
Manage- Manage- Multi-cast Opt’l
Security Security GMPLS
ability ability
Opt’l Opt’l
Forwarding
RPL BGP RPL BGP
Mand
Base
OSPF ISIS OSPF ISIS
OS
(Multicast, MPLS)
Line card
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Distributed In-Memory Database (IMDB)
System View
Distributed data
management IP
Intf
OSPF BGP ISIS IP
Intf
OSPF BGP ISIS
model improves
performance and
Reliable Multicast and Unicast IPC
Scale
Single LCa
Consolidated Local-LCa
view of the
system eases IP ARP ACL QOS
maintenance Intf PPP VLAN
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Distributed Control Plane
Ingress CPU
FIB
FIB
LC LC LC LC
Single global Interface Management Each line card has independent Interface
DB distributed to all line cards DB for local interfaces
Only Ingress FIB – forces forwarding Both Ingress and Egress FIB – allows
features to be run in RP forwarding features to be independently
run in LCs
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
IOS XR HA Software Design Principles
(Layered Approach)
Non-Stop Forwarding
(Mach, QNX)
MMU with full
protection
Applications, drivers, and
protocols are protected Application
FAULT DriverFAULT
Monolithic Kernel
(BSD/Linux, NT) FAULT
Application Application
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
In Service Software Upgrade (ISSU)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
Minimally Disruptive Restart (MDR)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
Protected Process Memory Space
0x300000
0x400000
1 0x00000
0x500000
OSPF 2 0x10000
3 0x20000 0x600000
0x700000
0x800000
0x900000
0xa00000
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
Preemptive Multitasking
Sleeping Waiting
Default priority is 10
Higher priority processes can interrupt
In IOS, must wait for running process to finish
FIFO within same priority
Threads run while parent process is running 50
10
50
CRS/16 and DRP have two CPUs 16 50
62 50
10
10
Running Ready 50 50
16
50
62 10
16 10 10 10 16
50
16
16
62
62 50 50 50 16 16 10 10 10
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
Local Packet Transport Services:
Protection of Control Plane
Application1
Received Traffic on RP
Transit Traffic
Application1
LPTS
on RP
Forwarding Internal
Information FIB (IFIB)
Base (FIB)
Bad packets Local Stack
on LC
Socket
LPTS
any 179 202.4.48.99 any 1000 medium ttl BGP
202.4.48.1 179 202.4.48.99 2223 10000 medium 255
200.200.0.2 13232 200.200.0.1 646 100 medium
LDP
SSH
LC 2 IFIB TCAM HW Entries …
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
TCP Handshake
22
IOS-XR CLI and Configuration
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
XR Command Modes
RP/0/RP0/CPU0:router#
show ipv4 interfaces brief show running-config
show install active show cef summary location 0/5/CPU0
RP/0/RP0/CPU0:router(config)#
router bgp 100 taskgroup admins policy-map foo
mpls ldp ipv4 access-list block-junk
RP/0/RP0/CPU0:router(admin)#
show controllers fabric plane all (CRS) config-register 0x0
show controllers fabric clock (12K) install add (also in SDR)
Admin Config
RP/0/RP0/CPU0:router(admin-config)#
sdr backbone location 0/5/*
pairing reflector location 0/3/* 0/4/*
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
Node Addressing Example using CRS
INTAKE
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
Two Stage Commit
hostname Backbone-CRS
Active Configuration line default
exec-timeout 1440 0
Before Commit !
taskgroup ops
task read boot
task write boot
task execute bgp
!
router static
address-family ipv4 unicast
0.0.0.0/0 7.1.9.1
7.7.7.77/32 7.1.9.1
hostname Backbone-CRS
line default
Enter Proposed Changes Active Configuration exec-timeout 1440 0
After Commit !
Interface gig 0/3/0/0
ipv4 address 9.9.9.9/24
!
interface gig 0/3/0/0 taskgroup ops
task read boot
ipv4 address 9.9.9.9/24 task write boot
task execute bgp
Commit !
router ospf 100 router ospf 100
area 0 area 0
interface gig 0/3/0/0 interface gig 0/3/0/0
Changes take effect area 1
area 1 interface pos 0/4/0/0
interface pos 0/4/0/0 !
router static
address-family ipv4 unicast
0.0.0.0/0 7.1.9.1
Target Configuration 7.7.7.77/32 7.1.9.1
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
Monitoring Configuration
From SDR Exec Mode
RP/0/RP0/CPU0:CRS#show running-config
Building configuration...
!! Last configuration change at 12:17:03 UTC Wed Jun 28 2006 by ww
!
hostname CRS
line default
exec-timeout 1440 0
…
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
IOS-XR: Task Based Authentication
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Software Install Terminology
Mini?
PIE?
Package? SMU?
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
IOS XR Software Packages
MPLS Multicast Security Manageability
IPSec, Encryption, ORB, XML,
MPLS, UCP PIM, MFIB, IGMP
Decryption Alarms management
Routing:
RIB, BGP, ISIS, OSPF, RPL
Base Admin
Interface manager,
Resource Management:
System database, checkpoint services
Rack, Fabric, LR management
Configuration management, etc.
OS:
Kernel, file system, memory management, and other slow changing core
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
PIE – Package Installation Envelope
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
Mini – Bundle of Mandatory Packages
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
Software Release Delivery
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
Software Release Delivery
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
Software Release Delivery
RP/0/RSP0/CPU0:PE1(admin)#show install active
Thu Nov 3 13:40:45.771 UTC
Secure Domain Router: Owner
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
TURBOBOOT Install (CRS-1)
Boot from .vm file and install to RP disks and LC flash
Step 1
Load “mini” .vm image into memory
Boot from disk or network
Routing
Line card
MEM DISK MEM DISK MEM DISK MEM DISK
Forwarding
RP0 RP1 DRP0 DRP1
Admin
Step 2 Step 3
Router installs packages to flash Reload from disk
disks on RPs and flash on LCs
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
PIE Installation Concepts
3 phase install
Add – Copy package and unpack
Activate – Restart processes/nodes with new code
Commit – Lock activated packages through reload
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
install add Command
Copy image to disk, verify, and unpack
Install: The idle timeout on this line will be suspended for synchronous install operations
Install: Starting install operation. Do not insert or remove cards until the operation
completes.
RP/0/0/CPU0:P4(admin)#
Install: Now operating in asynchronous mode. Do not attempt subsequent install operations
until this operation is complete.
Install 3: [ 0%] Install operation 'add /tftp://172.21.116.8/c12k-mcast.pie-3.2.85.3I to
disk0:' assigned request id: 3
Install 3: [ 1%] Downloading PIE file from /tftp://172.21.116.8/c12k-mcast.pie-3.2.85.3I
Install 3: [ 1%] Transferred 3298994 Bytes
Install 3: [ 1%] Downloaded the package to the router
Install 3: [ 1%] Verifying the package
Install 3: [ 1%] [OK]
Install 3: [ 1%] Verification of the package successful [OK]
Install 3: [ 95%] Going ahead to install the package...
Install 3: [ 95%] Add of '/tftp://172.21.116.8/c12k-mcast.pie-3.2.85.3I' completed.
Install 3: [100%] Add successful.
Install 3: [100%] The following package(s) and/or SMU(s) are now available to be activated:
Install 3: [100%] disk0:c12k-mcast-3.2.85
Install 3: [100%] Please carefully follow the instructions in the release notes when
activating any software
Install 3: [100%] Idle timeout on this line will now be resumed for synchronous install
operations
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
install activate Command
Begin executing new software
RP/0/0/CPU0:P4(admin)#install activate disk0:c12k-mcast-3.2.85
Install: The idle timeout on this line will be suspended for synchronous install
operations
Install: Starting install operation. Do not insert or remove cards until the operation...
RP/0/0/CPU0:P4(admin)#
Install: Now operating in asynchronous mode. Do not attempt subsequent install operations
until this operation is complete.
Install 3: [ 0%] Install operation 'activate disk0:c12k-mcast-3.2.85' assigned request id: 3
Install 3: [ 1%] Performing Inter-Package Card/Node/Scope Version Dependency Checks
Install 3: [ 1%] [OK]
Install 3: [ 1%] Checking API compatibility in software configurations...
Install 3: [ 1%] [OK]
Install 3: [ 10%] Updating software configurations.
Install 3: [ 10%] RP,DRP:
Install 3: [ 10%] Activating c12k-mcast-3.2.85
Install 3: [ 10%] Checking running configuration version compatibility with newly activated…
Install 3: [ 10%] No incompatibilities found between the activated software and router…
configuration.
…
RP/0/0/CPU0:Nov 12 14:24:01.249 : instdir[181]: %INSTMGR-6-SOFTWARE_CHANGE_END :
Software change transaction 3 is COMPLETE.
Install 3: [100%] Performing software change
Install 3: [100%] Activation operation successful.
Install 3: [100%] NOTE: The changes made to software configurations will not be
Install 3: [100%] persistent across RP reloads. Use the command 'install commit'
Install 3: [100%] to make changes persistent.
Install 3: [100%] Idle timeout on this line will now be resumed for synchronous
install operations
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
install commit Command
Lock in activated software across reload
RP/0/0/CPU0:P5(admin)#install commit
Install: The idle timeout on this line will be suspended for synchronous
install operations
Install 5: [ 1%] Install operation 'commit' assigned request id: 5
Install 5: [100%] Committing uncommitted changes in software configurations.
Install 5: [100%] Commit operation successful.
Install 5: [100%] Idle timeout on this line will now be resumed for
synchronous operations
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
Deactivating Packages
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
Routing Protocols
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45
OSPF Configuration Basics
area 0 area 1
cost 40
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
OSPF Sample Configuration
router ospfv3 32
area 0
interface GigabitEthernet0/5/0/0
!
interface GigabitEthernet0/5/0/1
cost 30
!
!
area 1
interface GigabitEthernet0/5/0/2
cost 40
passive
!
router ospf 101
area 0
interface GigabitEthernet0/5/0/0
!
interface GigabitEthernet0/5/0/1
!
interface GigabitEthernet0/5/0/2
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47
ISIS Configuration Basics
net 49.0001.0000.0000.000c.00
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 48
ISIS Sample Configuration
router isis 7
net 49.0001.0000.0000.000c.00
interface Loopback0
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/2
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/3
address-family ipv4 unicast
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 49
EIGRP Configuration Basics
address-family ipv4
interface GigabitEthernet0/4/0/0
interface GigabitEthernet0/4/0/0
passive-interface
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 50
EIGRP Sample Configuration
router eigrp 7
address-family ipv4
interface MgmtEth0/7/CPU0/0
passive-interface
!
interface GigabitEthernet0/4/0/0
!
interface GigabitEthernet0/4/0/1
!
interface GigabitEthernet0/4/0/2
!
interface GigabitEthernet0/4/0/3
!
!
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 51
Static Routes
Static Routing Configuration Modes
router static
address-family ipv4 unicast
0.0.0.0/0 7.1.9.1
7.7.7.77/32 7.1.9.1
8.8.8.1/32 GigabitEthernet0/5/0/1.101
8.8.8.1/32 GigabitEthernet0/5/0/1.102
8.8.8.2/32 5.1.1.2
8.8.8.2/32 5.2.1.2
!
router static
address-family ipv6 unicast
…
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 52
IOS XR BGP – Key Concepts
Address Families
Configure separately
Must be initialized
Distributed BGP
(Route Policy Language)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53
Address Families
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 54
Configuration Basics
Minimal Configuration
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 56
IOS-XR RPL Big Picture
Programming Language
Used to filter routing information
Remove routes
Change attributes
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 57
RPL Concept Map
Community VPN
Hierarchy
Extended Com Show CMDs
Parameters
VPN RD IGP
Actions
Default
Pass
Redistribution
Drop
Set Show Commands
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 58
Basic Flow Control
Branching Options
if med eq 150 then
set local-preference 10
elseif med eq 200 then
set local-preference 60
else
set local-preference 0
endif
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 59
RPL Attach Points
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 60
MPLS Big Picture
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 61
Basic Configuration
mpls ldp
router-id 6.6.6.6
!
interface GigabitEthernet0/4/0/0
interface GigabitEthernet0/4/0/1
interface GigabitEthernet0/4/0/2
interface GigabitEthernet0/4/0/3
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 62
vrf <NAME> Create VRF
address-family ipv4 unicast
import route-target
<A:B>
export route-target
<C:D>
import route-policy <name> Attach to interface
export route-policy <name>
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 63
Reusable template for VPN
l2vpn type (MPLS or L2TPv3)
pw-class [class-name]
encapsulation mpls
protocol ldp
Tunnel Parameters
interface GigabitEthernet0/1/0/0
l2transport
Put interface into
L2VPN mode
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 64
Carrier Grade v6 (CGv6)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 65
What Is CGv6?
Advantages are:
Post run-out business continuity
Low-risk, minimal cost transition to IPv6
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 66
Enterprise NAT Carrier Grade NAT (CGN)
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 67
CGv6 NAT44 Feature Set
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 68
Conclusion
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 72
IOS XR is designed to meet the stringent
requirements of network operators
• A high level of scalability
• Distributed forwarding architecture
• Exceptionally high reliability and resiliency
• Service separation and flexibility
• Robust security
• Hierarchical configuration and robust configuration
management
• Better manageability
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 73
Complete Your Session Evaluation
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 74
BRKSPM-2604_c1 © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 75