Más contenido relacionado La actualidad más candente (20) Similar a Network Function Virtualization (NFV) using IOS-XR (20) Network Function Virtualization (NFV) using IOS-XR1. Cisco Confidential© 2015 Cisco and/or its affiliates. All rights reserved. 1
Network Function
Virtualization
Using IOS XR
Syed Hassan, Alexander Orel, Rajendra Chayapathi
Solution Architect, Cisco Advanced Services
May 18 2016
2. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Agenda
• Role of NFV in EPN
• NFV using IOS-XR:
• IOS XRv 9000 Router
• IOS-XR VNF Use case
• Virtual Route Reflector & Virtual Provider Edge
• Deployment & Troubleshooting
• Summary
2
3. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
http://www.sdncentral.com/whats-network-functions-virtualization-nfv/
3
decouples network functions
from proprietary hardware
virtualization
4. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Customer Demand is Changing
4
On-Demand
Bandwidth & Capacity
Big Data & AnalyticsRapid Deployment of New
Business Applications
Anywhere/Anytime
Secure Accessibility
User Experience,
Delivered
Multi-Vendor Offerings;
No Lock-In
Seamless
Connectivity
Security &
Compliance
Multi-PlatformOn-Demand
Solutions
The New Customer Requirements
PAYG Models
5. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Entering a New Era in the SP Network Evolution
5
EvolvedProgrammableNetwork
Open
APIs
Evolved ProgrammableNetworkInfrastructure
SDN ControlResourcesServices
EvolvedServicesPlatform
ApplicationsandServices
Open
APIs
Evolved Programmable
Network (EPN) Era
Network Function
Virtualization
Software Defined
Networking
Service Orchestration
Discontinuity #1:
TDM limits new services,
forces architectural shift
IP NGN Era
IP unleashes new wave of
innovation and service
revenues
Discontinuity #2:
Commoditization of IP
services plus high traffic
growth limits profitability,
forces architectural shift
TDM Era
6. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
NFV in Evolved Programmable Network (EPN) Era
6
Network Function Virtualization
Open and Dynamic
Optimal Resource Utilization
Accelerated Innovation
New Services & Revenues
Reduced Cost & Complexity
Elastic & Flexible
Software Defined Networking Service Orchestration
EvolvedProgrammableNetwork
Open
APIs
Evolved ProgrammableNetworkInfrastructure
SDN ControlResourcesServices
EvolvedServicesPlatform
ApplicationsandServices
Open
APIs
7. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Network Functions Virtualization
7
• Key Enabler: Cloud technology
Hypervisor & x86 compute hardware
Network Programmability APIs
Network Automation / Orchestration
Apps &
Open
Innovation
SDN
NFV
Network infrastructure/Service Functions run on
Virtualized compute platforms
8. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Network Functions Virtualization
Where is SDN?
8
• SDN complementary, but not mandatory
• NFV is not SDN, though they have commonalities
Complementary / Orthogonal concepts
SDN Software (CP)
Virtual Networks (DP)
Physical Network
VNF Software (CP)
Virtual Hardware (DP)
Physical IT Hardware
Programmability
Split Architecture
Abstraction
SDN NFV
Apps &
Open
Innovation
SDN
NFV
CP: Central Processing
DP: Distributed Processing
9. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
SDN & NFV
Comparison
9
SDN NFV
SDN Controller :
Open Daylight, Open SDN Controller(OSC) etc.
Virtual network functions :
vFW, vRR, vCPE , vPE etc.
OpenFlow, NETCONF/Yang , Path computation
element protocol (PCEP)
VM to Host (socket, Taps etc.)
Involves end to end networking Involves single network entity
New network architecture Virtualization of existing architecture
10. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Network Virtualization
• Applications and running using
virtualized Hardware end CPUs
• Guest O/S running independently
in each VM
• HyperVisor - isolated application
providing VMs on the Host
• Basic host operating system
• Virtualization capable CPUs
10
Physical Host
Host O/S
Virtual Machines
HyperVisor
QEMU/
Guest O/S
11. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
Network Virtualization
ETSI Architecture Framework for NFV
1
1
Apps &
Open
Innovatio
n
SDN
NFV
Virtualized Network Functions (VNFs)
Network Function Virtualization Infrastructure (NFVI)
NFV Management &
Orchestration
(MANO)
Compute & Storage Hardware Network Hardware
Virtualization Layer
Virtual Compute Virtual Storage Virtual Network
VNF
vPE
VNF
vRR
Other
VNF
Operational & Billing Support System
Deployment
Management
12. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Virtualizing Network Functions
X86 versus Custom Network Processing Unit (NPU)
12
Network Forwarding (L0-3) Network Services (L4+)
BGP Route reflector, Firewall,
DPI
Low to Med Throughput
Stateful functions
Unpredictable traffic
IPv6/v4, MPLS, VPNs, Optical
High throughput / BW
Stateless functions
Mostly predictable traffic
Better fit for NPU
Compute
Bandwidth
Better fit for x86
Compute
Bandwidth
13. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
NFV across Cisco portfolio
Virtualized Network Operating Systems
IOS-XR NX-OS IOS-XE
Virtualized in
IOS XRv ,
IOS XRv 9000
Virtualized in
Nexus 1000v
Virtualized in
CSR1000v
ASA
Virtualized in
ASAv
14. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Cisco’s VNF Portfolio ….
IOS XRv
IOS XRv
9000
CSR1000v
Nexus
1000v
ASAv
QvPC
vWAAS
vWLC
vNAM vWSA vESA
DDoS
Scrubber
(w/Arbor)
15. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
Use-Cases Description
1 Virtual Route Reflector Virtualized BGP RR delivered on demand
2 Virtual PE Router Fully virtualized PE router delivered as an on demand cloud service
3 Virtual Private Cloud
Single-tier, 2-tier, 3-tier applications with optional NFV service chaining attached
to customer L3 VPN
4 Virtualized Mobility Service vEPC, vMME, vRAN
5 Hosted Collaboration Service
Integrating HCS provisioning with VPN configuration for single click customer
deployment
6 Virtualized Video Headend Cloud DVR, CDN/streaming as a service
7 Routing-as-a-service Using CSR to deliver routing/BNG as a cloud service
8 Virtual BNG in the cloud High-scale (multi-million subscribers) BNG control plane in the cloud
9 Virtual Managed Services
Using CSR, ASAv to deliver managed services to enterprise customers
(attached to customer L3VPN)
NFV Use-Cases
15
17. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
IOS XR
• Time tested for years
CRS-1, CRS-3, CRS-X, ASR 9000, NCS 6000
• High-scale control plane
• MicroKernel-based
• Modular Software
• Process Restartability & Redundancy
• Remediation through add-on patches
17
Physical Hardware:
CPU, ASICs, NIC,
Consoles, Memory, HDD
QNX Kernel
IOS XR
18. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
IOS XRv
• IOS XR on x86 Virtualized environment
• Full Platform Independent IOS XR
Same IOS XR software feature set
Manageability
Control Plane
Routing
18
Physical Hardware:
CPU, ASICs, NIC, Consoles, Memory, HDD
Host OS
HyperVisor
IOS XRv
Guest OS (32bit Linux)
19. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
IOS XRv - One Physical hardware -- Multiple Instances
19
Physical Hardware:
CPU, ASICs, NIC, Consoles, Memory, HDD
Host OS
HyperVisorHyperVisorHyperVisor
IOS XRv #1
Guest OS (32bit Linux)
IOS XRv #2
Guest OS (32bit Linux)
Other Guest OS
20. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
IOS XRv 9000
• Virtualized IOS XR with Control and Data plane Separation
Linux Containers for Admin, Control and Data Planes
64 Bit Kernel
• Scalability through Flexible resource Allocation
Data plane scalability.
Control Plane scalability
20
Physical Hardware:
CPU, ASICs, NIC, Consoles, Memory, HDD
Host OS
HyperVisor
IOS XRv 9000
Guest OS (64bit Linux)
21. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21Host
IOS XRv 9000
HyperVisor
IOS XRv 9000
Admin Plane
Infra management
SMU management
VM/LXC Lifecycle Management
Upgrade/Downgrade
Light Weight
Routing & Management Plane
XR Route Processor Functionality
XR Line Card Functionality
Support for Physical & Virtual Data-Plane
Forwarding Plane
Virtual Forwarder
Software Based H/W assist
Common code base as -
nPower-X ASIC
L3FIB QoS L2FIB ACLMTRIE Policer Intf
22. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
Cisco IOS XRv 9000
Right sizing Scale and Throughput through Control and Data Planes
22
LC (Data Plane)
RP(Control Plane)
IOS XR
NxLCs :1xCPU
Routers + LCs
LC (Data Plane)
LC (Data Plane)
LC (Data Plane)
N x NPU: MxCPU
Virtual Routers
LC (Data Plane)
Compute Server
(Control Plane)
Compute Server
(Control Plane)
Compute Server
(Control Plane)
IOS XRv 9000
Compute
Routers/Compute
Present Mode of Operation Future Mode of Operation
23. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
Cisco IOS XRv 9000
Design Trade Offs
Performance:
ACE, TM, &
Queues
Features
Physical XR Router
IOS XRv 9000
Virtual Router X
Possible to degrade
overall performance
by improving
performance for one
particular metric
23
24. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
IOS XRv 9000 Positioning
Completing the XR Edge Portfolio
Virtual
XR DP
IOS XRv 9000 ASR 9001 ASR 9006
ASR 9904
ASR 9010
ASR 9912
ASR 9922
24
26. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
IOS XRv & IOS XRv 9000
Benefits
26
Lower
Opex
• Easy
provisioning ,
configuration
&
deployment
for VMs
Lower
Capex
• IOS XRv on
standard
compute
resources
• Multiple XRs
on same
device
Elastic
• Dynamic
resource
allocation &
de-allocation
Greener
• low power
consumption
Lower
carbon
footprint
Flexible
Growth
• CP & DP
Separation
and
independent
resource
allocation
SDN
Ready
• Independent
control and
forwarding
27. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
Use Cases
Education and Training Network Simulation
Network
Deployment
27
28. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
Use Cases
Network Simulation & modeling
28
Test & Try new control-plane capabilities
Evaluate network against failures
Equipment Cost
Setup Time
Cumbersome to change
Design & plan changes and new features
Lab validation XRv / 9000
Low Cost
Easy Orchestration
Quick setup & changes
29. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Use Cases
Network Deployment (vRR & vPE)
Consumption based model - Network growth to match needs
Redundant devices provisioning without added cost
Service segregation on same hardware
Grow and scale VM’s server resources to match needs
vRR1 vPE1vRR2 vPE2vRR1 vPE1
29
NFV
30. Cisco Confidential 30© 2015 Cisco and/or its affiliates. All rights reserved.
Virtual Route Reflector
(vRR)
&
Virtual Provider Edge
(vPE)
33
31. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
IOS XRv 9000 as vRR
• Traditional Role of RR
BGP peering
Solve N*N full-mesh BGP interconnect
Distribute BGP routes to PEs
31
NxN
Nx1
Nx1 +
redundancy
Nx1 + Segregation
32. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
IOS XRv 9000 as vRR
32
RR role expanding -
centralized provision, services, and applications
Primary Backup
L3VPN RR
Vpnv4 RR
IPv6 RR
IPv4 RR
Per Service
Per Address Family
Redundant
Optimized Placement
Scalable
Easy Provisioning
L2VPN RR
33. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
IOS XRv 9000 as vRR
33
IPv4 RR
Vpnv4 RR
IPv6 RR
L2vpn vRR
Primary Backup
IPv4 vRR
Vpnv4 vRR
IPv6 vRR
L2vpn vRR
Primary Backup
8 Physical Devices
2 Physical Devices
Virtualized RRs per AFI
Performance
(Multi-Core)
Independent
Operation
High
Availability
Same BGP
Implementation
(XR)
Without Compromising
34. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
Virtual
XR DP
IOS XRv 9000
Virtual
XR DP
Virtual
XR DP
IOS XR
IOS XR
IOS XRv 9000 as vPE
34
Forwarding
Performance (Multi-
Core)
Consumption Based
Growth
Control Plane
&
High-Performance Data
Plane
High Availability
L3VPN
Customer A
L3VPN
Customer B
L3VPN
Customer C
35. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
vRR & vPE using IOS XRv 9000
Performance
(Multi-Core)
Independent
Operation
High
Availability
IOS XR Based
Implementation
Elasticity &
Flexibility
Portability &
Agility
Route Scalability
(32/64b OS)
Management &
Orchestration
Lower
Opex/Capex
36. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
Power Calculations based on
ASR9001 (Max Power)
UCS C240 M3 SFF with Intel E5-2643 v2 3.30 GHz/130W 6C/25MB Cache/DDR3 1866MHz with 96 GB Mem, 4 HDD
with RAID, and 1 Adapters.
vRR & vPE using IOS XRv 9000
36
Primary Backup Primary Backup
Physical Router VRR on UCS Server
Max. Power consumption ~425W Max Power consumption ~410W
Total power for 8 instance ~3.4kW Total power for 8 instances ~820W
Power/Year = 29,785 KWh Power/Year = 7,182 KWh
Power Cost/Year = $3,961
(13.3c/kWh)
Power Cost/Year= $955
(13.3c/KWh)
Lower
Capex
37. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
CPU,Memory,Gbps
CPU,Memory,Gbps
Time Time
Under-
Provisioned
Over-
Provisioned
Consumption
based capacity
growth
Physical Network Device Network Function Virtualization
Physical Network Device vs NFV
Consumption Based Deployment
Flexible
Growth
Capacity Demand
Capacity Deployed
39. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
IOS XRv 9000 Hardware/Software Requirements
• Hardware
Any x86-based server capable of virtualization
e.g. Intel® CPUs with VT-x support
• Hypervisor
hypervisor agnostic
VMWare ESXi 5.5/6.0 , QEMU/KVM 1.0
39
Parameter Minimum
CPU (Cores) 4 (2 Control Plane, 2 Data
Plane)
14 Maximum
Memory (RAM) 12GB 16GB recommended
Hard Disk 55GB
Serial Port 1 (for console) 4 recommended
NIC Port (E1000/VirtIO/Niantic 10G) 4
(2 reserved, 1 traffic)
11
(2 reserved, 8 traffic)
40. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
IOS XRv 9000 Features
40
• MP-BGP/eBGP , BGP 3107, FlowSpec
• OSPF/ISIS etc.
• BFD
• SR
• LDP/MPLS, 6PE, 6vPE, RFC 3107 (3 labels), L3VPN
• IPv4 ACL (chained), uRPFv4/v6, LPTS
• Netconf/YANG & SNMP
• Hierarchical QoS policing, WRED
• EFD
• Lawful Intercept
(Bidirectional Forwarding Detection)
(Early Fast Discard)
• IOS XR Manageability & Control Plane
• PIE/SMU Upgrades
• LPTS/ CoPP
• Gratuitous ARP
• Netfllow & IPFIX
• Multicast
• VRRP
• IPSec / GRE
IOS XR
6.0.0
http://www.cisco.com/c/en/us/support/routers/ios-xrv-9000-router/tsd-products-support-series-home.html
41. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
IOS XRv 9000 Operational Enhancements
Programmability
Flexible Platform
and Packaging
Application
Hosting
• Data accessible via published model driven interfaces
• Machine friendly
• Enables automation @ scale
• RPM Packages: EIGRP, MGBL, MPLS, K9SEC, LI, BGP etc.
• Automated package dependency checkers
• Automated Provisioning at Bootup
• Ability to run 3rd party off the shelf applications built with Linux tool chains
• Run custom applications inside an LXC container on the 64-bit Linux host
Visibility &
Telemetry
• Operational Data, Deep analytical hooks
• Policy-based, flexible, Push Model
IOS XR
6.0.0
42. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
IOS XRv 9000 Performance
42
XRv CP
2016 2016+
Single Core Multi-Core Multi-Socket Multi-Server
2015
XRv CP XRv CP XRv CP
8
Gbps
?
Gbps
40
Gbps
XRv CPXRv CP XRv CP XRv CP
40
Gbps
160
Gbps
?
Gbps
IMIX traffic packet size
with features enabled
43. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
Hardware Platform
Physical NIC
IOS XRv 9000 Deployment
Pass-through vs Device Emulation
43
Hypervisor
Physical device+ driver
Emulated device
XRv9000 VM
Guest Driver
virtIO /
E1000
Hardware Platform
Physical NIC
Hypervisor
XRv9000 VM
Physical
NIC
Driver
High Performance Emulated
44. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
IOS XRv 9000 Deployment
4
4
Hostt
Eth0
Mgmt
Bridge
Data
Bridge-1 HyperVisor
IOS XRv 9000
vethe0
vethe1
vethe2
vethe3
vethe4
Mgmt
G0/0/0/0
G0/0/0/1
Eth1
Eth2
Virtual InterfaceVirtual BridgesPhysical Interfaces Virtual Machine
Hypervisor
Interface
Copy XRv 9000 image
(.ova/.iso/.vmdk) to server
Create Disk running image
Create Virtual (Tap)
interfaces
Start simulation
45. Cisco Confidential 45© 2015 Cisco and/or its affiliates. All rights reserved.
Deploying IOS XRv 9000
On a VMWare ESXi Host
66
46. R1 R2 R4
R3
vPEvPECE vRR
xrvr xrv9k xrvr xrv9k
Linux Host: 192.168.10.100
Bridge (bdg0)
Management Network Bridge
192.168.10.104192.168.10.101
192.168.10.103
192.168.10.102
ESXi Host
47. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47
IOS XRv 9000 Deployment using ESXi
ISO mage Upload
Allocated minimum 4 CPU
Minimum 4 Network interfaces 47
Linux as Guest OS
Allocated recommended
16GB Mem
48. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 48
IOS XRv 9000 Deployment using ESXi
Create Disk: Thin provisioning, 55GB, IDE
Creating Serial Interface
48
XR Console Port
XR AUX Port
Admin Console Port
Admin AUX Port
1st
2nd
3rd
4th
Console Ports
49. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 49
IOS XRv 9000
Deployment on ESXi
Accessing the IOS-XRv VMFilesystem type is iso9660, using whole disk
kernel /boot/bzImage root=/dev/ram console=ttyS0 prod=1 install=/dev/sda platfo
<SNIP>
Wed Feb 17 02:13:47 UTC 2016: Copying all ISOs to repository took 68 seconds
[ 340.853307] reboot: Restarting system
Press any key to continue.
<SNIP>
Telnet to the Serial Port
telnet <esxi_host_ip> <port_number>
################################################################################
# #
# Welcome to the Cisco IOS XRv9k platform #
# #
# Please wait for Cisco IOS XR to start. #
# #
# Copyright (c) 2014-2015 by Cisco Systems, Inc. #
# #
################################################################################
Cisco IOS XR console will start on the 1st serial port
Cisco IOS XR aux console will start on the 2nd serial port
Cisco Calvados console will start on the 3rd serial port
Cisco Calvados aux will start on the 4th serial port
<snip>
ios con0/RP0/CPU0 is now available
Press RETURN to get started.
!!!!!!!!!!!!!!!!!!!! NO root-system username is configured. Need to configure root-system username.
!!!!!!!!!!!!!!!!!!!!Configuration lock is held by another agent. Please wait. [.OK]
--- Administrative User Dialog ---
Enter root-system username:
Create Username and Password
Will go through baking process on first
boot up &reload
Only happens once, during the first bootup
50. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 50
Using ESXi Hypervisor
• Creating XRv 9000 Virtual Machine using vSphere GUI
Parameters Recommendation
Configuration Custom
Name and Location as with any other VM
Storage as with any other VM
Virtual Machine Version "Virtual Machine Version 8 or 9” *
Guest Operating System "Other", version "Other (32-bit)"
CPUs Max 14 cores
Memory Min 3 GB, Max 8 GB
Network 4-11 NICs,
First NIC will be MgmtEthernet0/0/CPU0/0 while
NIC 3-11 will be GigabitEthernet/TenGigigabitEthernet
50
51. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 51
Using ESXi Hypervisor
• Creating XRv 9000 Virtual Machine using vSphere GUI (Con’t)
•
• Start the VM. Telnet to the configured serial port(s) to interact with and configure the VM
Parameters Recommendation
SCI Controller LSI Logic Parallel (default)
Select a disk "Use an existing virtual disk"
Select Existing Disk select XRv 9000 VMDK image
Advanced Options Must be an IDE disk
Ready to Complete select "Edit the virtual machine settings before completion”
"Virtual Machine Properties" window – add 2 serial ports as: Under "Hardware", click "Add..."
Select "Serial Port"
Select "Connect via Network"
Select "Server" and enter a telnet URI with an unused port (e.g.,
telnet://<host IP address>:5001) - each VM and each serial port
must use a unique port number.
Repeat this to add a second serial port. The first serial port will be
the console port, and the second will be the aux port.
51
52. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 52
IOS XRv 9000 Bring-up
Accessing the IOS XRv Virtual Machine
52
cisco@epn-sjcj-ucs1:~$ telnet 0.0.0.0 12345
[Linux-initrd @ 0x456bc000, 0x3a93367c bytes]
Starting udev
Populating dev cache
Configuring network interfaces... done.
<snip>
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Hardware profile: vpe
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Host has 16Gb RAM / 4 vCPUs
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Management plane: 1Gb RAM / 0 vCPUs
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): XR control plane: 7Gb RAM / 2 vCPUs
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): XR packet memory: 128Mb RAM
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Data plane: 6Gb RAM
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Data plane core assignment: 2-3
Mon Feb 8 23:48:38 UTC 2016 (<snip>_lxc_iso.sh): Control plane core assignment: 0-1
52
E5E4
21 3 4
Host
Hypervisor
Host
XR ADM UVF
16G / 4 CPU
7G 1G 6 G / 2 CPU
2 CPU
53. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53
IOS XRv 9000 Bring-up
Accessing the IOS XRv Virtual Machine
53
Mon Feb 8 23:49:45 UTC 2016: Install finished on sda
Rebooting XRv9k system after installation ...
[ 99.990922] reboot: Restarting system
<snip>
################################################################################
# #
# Welcome to the Cisco IOS XRv9k platform #
# #
# Please wait for Cisco IOS XR to start. #
# #
# Copyright (c) 2014-2015 by Cisco Systems, Inc. #
# #
################################################################################
Cisco IOS XR console will start on the 1st serial port
Cisco IOS XR aux console will start on the 2nd serial port
Cisco Calvados console will start on the 3rd serial port
Cisco Calvados aux will start on the 4th serial port
!!!!!!!!!!!!!!!!!!!! NO root-system username is configured. Need to configure root-system username.
!!!!!!!!!!!!!!!!!!!!
--- Administrative User Dialog ---
Enter root-system username:
54. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 54
IOS XRv 9000 Deployment
Show Commands
54
RP/0/RP0/CPU0:ios#show ver
Tue Feb 9 00:10:36.484 UTC
Cisco IOS XR Software, Version 6.0.0
Copyright (c) 2013-2015 by Cisco Systems, Inc.
Build Information:
Built By : alnguyen
Built On : Thu Dec 24 00:54:24 PST 2015
Build Host : iox-lnx-009
Workspace : /auto/srcarchive16/production/6.0.0/xrv9k/workspace
Version : 6.0.0
Location : /opt/cisco/XR/packages/
cisco IOS-XRv 9000 () processor
System uptime is 16 minutes
RP/0/RP0/CPU0:ios#
55. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 55
IOS XRv 9000 Deployment
Show Commands
55
RP/0/RP0/CPU0:ios#show platform
Tue Feb 9 00:09:33.310 UTC
Node name Node type Node state Admin state Config state
-----------------------------------------------------------------------------------
0/RP0 R-IOSXRV9000-RP OPERATIONAL UP NSHUT
RP/0/RP0/CPU0:ios#
RP/0/RP0/CPU0:ios#show ipv4 int br
Tue Feb 9 00:12:04.600 UTC
Interface IP-Address Status Protocol Vrf-Name
GigabitEthernet0/0/0/0 unassigned Shutdown Down default
MgmtEth0/RP0/CPU0/0 unassigned Shutdown Down default
RP/0/RP0/CPU0:ios#
Single RP. No LineCard
56. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 56
IOS XRv 9000 Deployment
Containers and 3rd Party Network NameSpace
56
[sysadmin-vm:0_RP0:~]$ssh 10.0.2.16
Last login: Tue Feb 9 01:21:24 2016 from 10.11.12.15
[host:~]$ virsh list
Id Name State
----------------------------------------------------
5299 sysadmin running
12065 default-sdr__uvf--2 running
15153 default-sdr--1 running
[host:~]$
HyperVisor
IOS XRv 9000
XR
Admin
FWding
RP/0/RP0/CPU0:ios#show ipv4 int br
Thu Feb 11 15:55:05.581 UTC
Interface IP-Address Status Protocol Vrf-Name
Loopback0 1.2.3.4 Up Up default
Loopback2 110.2.2.2 Up Up default
Loopback3 110.3.3.3 Up Up default
GigabitEthernet0/0/0/0 200.1.1.1 Up Up default
MgmtEth0/RP0/CPU0/0 unassigned Shutdown Down default
RP/0/RP0/CPU0:ios#
[xr-vm_node0_RP0_CPU0:~]$ip netns exec tpnns ifconfig | more
Gi0_0_0_0 Link encap:Ethernet HWaddr 00:50:56:b9:44:0c
inet addr:200.1.1.1 Mask:255.255.255.0
lo:0 Link encap:Local Loopback
inet addr:1.2.3.4 Mask:255.255.255.255
lo:2 Link encap:Local Loopback
inet addr:110.2.2.2 Mask:255.255.255.255
lo:3 Link encap:Local Loopback
inet addr:110.3.3.3 Mask:255.255.255.255
3RDParty
57. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 57
IOS XRv 9000 Deployment
Checking License Status
57
RP/0/# show license platform summary
Sat Dec 26 05:47:08.537 UTC
Current state: PRODUCTION
Collection: LAST: Sat Dec 26 05:47:03 2015
NEXT: Sat Dec 26 06:47:03 2015
Reporting: LAST: Sat Dec 26 05:47:03 2015
NEXT: Sun Dec 27 05:47:03 2015
Count
Feature/Area Entitlement Last Next
============= ============================= ==== ====
System Product: Right to Use 1 0
System Feature: BGP Scale up to 4M 1 0
58. Cisco Confidential 58© 2015 Cisco and/or its affiliates. All rights reserved.
Deploying IOS XRv 9000
On a Linux Host
66
59. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 59
Lab Task: Deploying IOS XRv 9000 On Linux Host
• Three Ways to Deploy:
Directly call KVM/Qemu CLI
Simple Virtual Machine Management Tools (e.g. Virsh)
Deployment Grade VNF deployment tools (such as Openstack)
• For deploying on Linux, we will cover methods in the lab:
VIRSHKVM CLI
60. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 60
KVM CLI
Deploying IOS XRv 9000 On a Linux Host
Copy XRv 9000 image
(.ova/.iso/.vmdk) to server
Create Disk running image
Create Virtual (Tap)
interfaces
Start simulation
61. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 61
IOS XRv 9000 Deployment
Creating TAP and Bridge
61
cisco@epn-sjcj-ucs1:~$ sudo tunctl -t Tap1
Set 'Tap1' persistent and owned by uid 0
cisco@epn-sjcj-ucs1:~$ sudo ifconfig Tap1 up
cisco@epn-sjcj-ucs1:~$ sudo tunctl -t Tap2
Set 'Tap2' persistent and owned by uid 0
cisco@epn-sjcj-ucs1:~$ sudo ifconfig Tap2 up
<create Tap3/Tap4>
cisco@epn-sjcj-ucs1:~$ sudo brctl addbr vbridge1
cisco@epn-sjcj-ucs1:~$ sudo brctl addbr vbridge2
cisco@epn-sjcj-ucs1:~$ sudo brctl addif vbridge1 Tap1 eth4
cisco@epn-sjcj-ucs1:~$ sudo brctl addif vbridge2 Tap2 eth5
cisco@ubuntu-EPN-4:~$ sudo brctl show vbridge1
bridge name bridge id STP enabled interfaces
vbridge1 8000.b6c7102ae0f6 no Tap1
eth4
E5E4
21
vBridge1 vBridge1
3 4
Host
Hypervisor
KVM CLI
62. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 62
IOS XRv 9000 Bring-up
Launching the IOS XRv 9000 Virtual Machine
62
cisco@epn-sjcj-ucs1:~$ sudo /usr/bin/kvm
-m 16384
-smp cores=4,sockets=1
-name XRv-Test-Launch
-drive file=./xrv9k.raw,media=disk,index=1
-drive file=./xrv9k-fullk9-x.iso-6.0.0,media=cdrom,index=2
-serial telnet:0.0.0.0:12345,server,nowait
-device e1000,netdev=mgmt-intf
-netdev tap,ifname=Tap1,script=no,downscript=no,id=mgmt-intf
-device e1000,netdev=data-intf
-netdev tap,ifname=Tap4,script=no,downscript=no,id=data-intf
-display none –enable-kvm
-boot once=d
16G Memory
XRv9K Instance
XRv Image File
Console port
Ethernet (Mgmt)
Ethernet (GigE)
4 CPU Cores
XRv9K Disk
KVM CLI
63. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 63
Lab Task: Deploying IOS XRv 9000 On Linux Host
• Directly call KVM/Qemu CLI
pod@POD-VM:~$ tail -5 start_ios_xrv.sh
#########################################################
## Start virtual XR router
#########################################################
kvm -m 8000 -drive file=/tftpboot/iosxrv.vmdk-6.0.1.31I.SIT_IMAGE -smp
cores=2 -display none -serial telnet:0.0.0.0:13001,server,nowait -device
e1000,netdev=first -netdev
tap,ifname=Tap1,script=no,downscript=no,id=first -device
e1000,netdev=second -netdev
tap,ifname=Tap2,script=no,downscript=no,id=second -device
e1000,netdev=third -netdev
tap,ifname=Tap3,script=no,downscript=no,id=third -device
e1000,netdev=fourth -netdev
tap,ifname=Tap4,script=no,downscript=no,id=fourth &
pod@POD-VM:~$
KVM CLI
64. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 64
Lab Task: Deploying IOS XRv 9000 On Linux Host
• Simple Virtual Machine Management Tools (e.g. Virsh)
• Use XML File as Template
• “virsh” CLI can be used to : Start, Stop, List etc. the Virtual Machine
• Study XML File pre-created:
pod@POD-VM:~$ cd reference/
pod@POD-VM:~/reference$ cat xrv9k.xml
<!--
Format of this file:
1) Define virtualization parameters for VM
2) Define disks that the VM should use
3) Define Mgmt and data interfaces
4) Define Serial interfaces for console and aux
-->
<name>XRV9K</name>
<memory unit='GiB'>16</memory>
<vcpu placement='static'>4</vcpu>
<cpu mode='host-model'/>
16G Memory
XRv9K Instance
4 CPU Cores
VIRSH
65. R1 R2 R4
R3
vPEvPECE vRR
xrvr xrv9k xrvr xrv9k
Linux Host: 192.168.10.100
Bridge (bdg0)
Management Network Bridge
192.168.10.104192.168.10.101
192.168.10.103
192.168.10.102
ESXi Host
VIRSHVIRSH
66. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 66
Lab Task: Deploying IOS XRv 9000 On Linux Host
<devices>
<!-- Harddisk: -->
<!-- note: pre-create using : qemu-img create -f qcow2 ../R2.qcow2 55G -->
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' />
<source file='/home/pod/R2.qcow2' />
<target dev='vda' bus='virtio' />
</disk>
<!-- CDROM: -->
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' />
<source file='/tftpboot/xrv9k-mini-x.iso'/>
<target dev='hdc' bus='ide' />
</disk>
Boot and Run
time Disk
VIRSH
67. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 67
Lab Task: Deploying IOS XRv 9000 On Linux Host
<interface type='bridge'>
<source bridge='bdg0'/>
<mac address="52:54:00:52:c1:01"/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<source bridge='bdg0'/>
<model type='virtio'/>
</interface>
<serial type="tcp">
<source mode="bind" host="0.0.0.0" service="12001" />
<protocol type="telnet" />
<target port="0" />
</serial>
NIC & Serial
Ports
VIRSH
68. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 68
Lab Task: Deploying IOS XRv 9000 On Linux Host
pod@POD-VM:~/reference$ qemu-img create -f qcow2 ~/R2.qcow2 55G
Formatting '../R3.qcow2', fmt=qcow2 size=59055800320 encryption=off
cluster_size=65536 lazy_refcounts=off
pod@POD-VM:~/reference$
Crete the Run
time Disk
pod@POD-VM:~/reference$ virsh create xrv9k.xml
Domain XRV9K created from xrv9k.xml
pod@POD-VM:~/reference$
Start the Virtual
Machine for
XRV9K
VIRSH
69. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 69
Lab Task: Deploying IOS XRv 9000 On Linux Host
XRV9000 Boots up
DHCP Request
DCHP Server
Temporary IP
Address
Pointer to
Configuration Script
XRV9000 Requests
Config Script
Send me the File:
http://192.168.10.100:8080/config/script.sh
HTTP Server
Config Script Sent
XRV9000 Runs The
Script
Auto-Provisioning
70. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 70
Lab Task: Deploying IOS XRv 9000 On Linux Host
Auto-Provisioning
XRV9000 Runs
The Script
Request
Configuration File
R2.config
HTTP Server
Config File Provided
Send me the Packages:
Package Files Sent
Get Config File for
Post-package
Get Config File1
Get Packages2
3
Config File Sent
Request
Configuration File
R2-more.config
71. Cisco Confidential 71© 2015 Cisco and/or its affiliates. All rights reserved.
Service Orchestration for
NFV
71
72. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 72
Service Orchestration for NFV
IOS-XRv 9000
Hypervisor
Service
Orchestration
Cisco Network Service
Orchestrator (NSO)
Server Server
IOS-XRv 9000 IOS-XRv 9000
Hypervisor
Cloud VM
Orchestration
Cisco
ESC
Network Function Virtualization Software Defined Networking Service Orchestration
73. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 73
NFV with IOS XR
Right Sizing Your Deployment
73
Choose your Service Size up your Data Plane Adapt your Control Plane
Core / Transport
Peering
DCI
PE
Subscriber Services
Virtual PE (vPE)
Virtual RR (vRR)
NCS 6000
NCS 5500
ASR 9000 Tomahawk
CRS-X
CRS
ASR 9000 Typhoon
IOS-XRv 9K
Multichassis NCS 6000
Multichassis CRS-X
Data Plane
Low
High
Today’s IOS-XR on
box Control Plane
Virtualized CP or
Expansion CP from
Physical System
Choose
between
On-box,
Hybrid or
Pure
Virtual CP
Based on
Use Case
Control Plane
Low
High
74. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 74
NFV with IOS XR
Completing Portfolio
74
IOS-XR
CRS Portfolio Edge Routing
ASR 9000 Portfolio
Virtual
XR DP
NFV Virtual Router
IOS-XRv 9000
NCS 5500
NCS 5000
NCS 6000
Single & Multi
Chassis
75. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 75
Putting it all together…
Virtual
FunctionsStorage
B
S
S
O
S
S
HypervisorsCompute Network
IOS XRv
9000
Virtual Router
Real Performance
SMU-ability
Low Capex Flexible
ScalableOpex Saving
Carrier Class
High
Availability
Multi-
threaded
75
Elastic
76. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 76
Re-Cap
• Role of NFV in EPN
• NFV using IOS-XR:
• IOS XRv
• IOS XRv 9000 Router
• IOS-XR VNF Use case
• Virtual Route Reflector & Virtual Provider Edge
• Deployment & Troubleshooting
• Summary
76