BRKACI-1601 Policy Driven Data Centre With ACI
BRKACI-1601 Policy Driven Data Centre With ACI
BRKACI-1601 Policy Driven Data Centre With ACI
BRKACI-1601
Chris Gascoigne
Technical Solutions Architect
#clmel
Agenda
• Introduction
• What is policy
• Network policy
• Application policy
• Conclusion
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Introduction
Traditional Data Centre Networking Issues
Lack of agility
• Configuration is complex
• Configuration is error-prone Services Services
L3
• Configuration changes require
careful planning
• Many touch points L3
• Restricted workload placement / L2
mobility
L2
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Traditional Networking Issues
Not cost effective
• Expensive hardware in
core/distribution Services Services
L3
• Intelligence/state centralised at
core/distribution
• Big CapEx upgrades required to L3
scale up L2
L2
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
ACI Changes The Game
A better network
• Simplify the topology
• Self configuring
vPC • Host mobility
• Scale out
vPC • Penalty free fabric
• Cost effective
vPC
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
ACI Changes The Game
vPC
vPC Policy
• Centralised provisioning
vPC
• Build policy, not configuration
• Profile driven
• Abstracted from topology, fowarding
• Simplify operations
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Imperative Control
• Controller has full intelligence/state
A320-200 commands:
• Controlled entities follow • Turn rudder +5deg left
rules/instructions B737-800 commands: • Set flaps 10%
• Set throttle 30%
• Controller knows how to control all • Turn rudder 30deg left
entity types
• Good for:
– Small systems
– Simple problems
– All controlled entities are the same Dash 8 Q400 commands:
• Decrease throttle by 10%
• Set flaps 20%
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Declarative Control
• Controller stores/distributes desired
state Generic commands:
• Ascend to 10,000ft
• Controlled entities receive desired Generic commands: • Set heading 230deg
state and make changes • Taxi to runway 3
• Take off to the west
• Good for:
– Large scale
– Complex problems
– Disparate controlled entities
Generic commands:
• Descend to 1,000ft
• Prepare to land on runway
2 to the west
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Declarative vs Imperative
Puppet (declarative) Shell script (imperative)
user { ‘cgascoig’ : #!/bin/bash
ensure => present,
gid => ‘admin’, if ! getent group sysadmin >/dev/null
} then
echo "Group sysadmin does not exist, creating"
group { ‘admin’ : groupadd sysadmin
ensure => present, fi
}
if ! getent passwd chris >/dev/null
then
echo "User chris does not exist, creating"
useradd --gid sysadmin chris
fi
if [ "$USERGROUPNAME" != "sysadmin" ]
then
echo "Primary group of user chris is not
sysadmin, updating"
usermod --gid sysadmin chris
fi
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Network Provisioning Today
Declarative
Imperative
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Intent Driven Provisioning
Declarative
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Policy Layers in ACI
Web App DB
Outside
QoS
Application Policies
QoS QoS
APIC
Access Policies
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Network Policy
Network Policy
• Fabric Policies
– Fabric interface policies
– Pod policies
– Fabric load balancing policies
– Firmware / maintenance policies
– …
• Access Policies
– Interface policies
– vPC
– Attachable Access Entity Profiles
– Quality of Service Classes
– DHCP Policies
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Switch / Interface Policy
• Ports 1-10: SC management
• Ports 1-40: Hyper-V hosts • Ports 1-40: Hyper-V hosts • Ports 1-40: Hyper-V hosts • Ports 11-20: Virtual services
• Ports 41-48: Scale-out file • Ports 41-48: Scale-out file • Ports 21-30: Portal, etc
• Ports 41-48: Scale-out file
servers servers servers
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Switch / Interface Policy
compute-rack
Interface Profile
compute-rack Adding a new compute rack?
Switch Profile
1. Add the new leafs to the selector
2. There is no step 2
compute-rack compute-rack-hyperv compute-rack-sofs
Switch Selector Interface Selector Interface Selector
Leafs 101-106 1/1-40 1/41-48
hyperv sofs
Interface Policy Group Interface Policy Group
CDP off CDP off
LLDP on LLDP on
AEP: hyperv-vlans AEP: sofs-vlans
…. ….
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Firmware Policy
spine-fw-group-a spine-fw-group-b
leaf-fw-group-a
leaf-fw-group-b
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Firmware Policy
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Maintenance Policy
spine-maint-group-a spine-maint-group-b
leaf-maint-group-a
leaf-maint-group-b
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Maintenance Policy
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Policy
Application Policy
• Logical networking
• Application Network Profiles
• Service insertion and automation
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Logical Networking
• How does A talk to B?
– Bridged?
– Routed?
– Intra-VRF? Inter-VRF?
– Inside to outside? Outside to inside?
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Logical Networking
Subnet 192.168.5.1/24
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Logical Networking Terms
• Tenant – Logical separation for administrative domains (e.g. Business Unit,
Customers, Dev/Test/Prod)
• Private Network – Separate routing instances == VRF
• Bridge Domain – Layer 2 segment; analogous to a VLAN, but not tied to a
VLAN ID
• Subnet – Layer 3 address associated to a Bridge Domain == SVI
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Network Profiles
• Logical network defines how A talks to B
• Application Network Profiles define should A talk to B?
– Which protocols?
– QoS?
– Additional L4-7 services required?
– Etc.
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Network Profile
Contract Contract
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Network Profile - Contracts
QoS
Services
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Network Profile - Contracts
Service Graph
QoS
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Network Profile Terms
• Endpoint Group (EPG) – Group of endpoints (servers/VMs) with the same
policy
• Contract – Encapsulates policy between endpoint groups
• Subject – Defines if (filters) and how (action) traffic can flow between endpoint
groups
• Filter – Selector of traffic, matching up to L4 attributes
• Action – Action to take on matched traffic, e.g. service graph, apply QoS, etc
• Provider – Provides the services defined in a contract
• Consumer – Consumes the services defined in a contract
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Endpoint Group Membership
• Physical port
• VLAN Identifier on a port / switch • VM Attribute*
• VXLAN VNID on a port / switch • IP Address*
• NGVGE VSID on a port / switch • MAC Address*
• Subnet • …
• Virtual Machine Manager grouping
– Port Group (VMWare vCentre/vShield)
– VM Network (Microsoft Hyper-V/SCVMM)
– Neutron Network (OpenStack)
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Service Graph
Service Graph
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Service Graph – Data Plane
Service Graph
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Service Graph – Configuration Plane
Service Graph
Citrix Configuration
Consumer Endpoints ASA Configuration Provider Endpoints
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Conclusion
Abstraction
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Extensibility
Service Graph
QoS
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Reuse
Tenant Dev-Test
Application Network Profile 3-Tier Web Application
Endpoint Group Web Endpoint Group App Endpoint Group DB
Contract Contract
Tenant Dev-Test
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Consistency
Application Network Profile 3-Tier Web Application
Web App DB
C C
C C
C C
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Summary
• Traditional networking approaches
– not agile enough
– not cost effective
• Declarative, policy driven approach required:
– Abstracted
– Extensible
– Reusable logical components
– Consistency
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Q&A
Complete Your Online Session Evaluation
Give us your feedback and receive a
Cisco Live 2015 T-Shirt!
Complete your Overall Event Survey and 5 Session
Evaluations.
BRKACI-1601 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Thank you.