ACI VisualCheat Concepts v1
ACI VisualCheat Concepts v1
A tenant is a logical container for application, Concepts Policy Model Application Profile (fvAp)
network and security policies that enable an ACI uses the concepts of Tenants, Private In the policy model, EPGs are tightly coupled with VLANs. For traffic to flow, an EPG must be AP’s define the policies, services and relationships
administrator to exercise domain-based access Networks, Bridge Domains, and Subnets in a deployed on a leaf port with a VLAN in a physical, VMM, L2out, L3out, or Fiber Channel domain. between EPGs. Each AP contains one or more EPG
control. A tenant is a unit of isolation from a policy hierarchy to contain routed traffic. that can communicate with the other EPGs in the
perspective, but it does not represent a private The domain profile associated to the EPG contains the VLAN instance profile. same AP and with EPGs in other AP’s according to the
network. The system provides the following four Some relationships are linked, others are like The domain profile contains both the VLAN instance profile (VLAN pool) and the attachable contract rules.
kinds of tenants: parent-child: Access Entity Profile (AEP), which are associated directly with application EPGs.
- BD is linked to a VRF End Point Groups
1. User Tenants - Subnets are children of BDs The AEP deploys the associated application EPGs to all the ports to which it is attached, and EPG’s are basic unit of policy enforcement, a logical
Defined by the administrator according to the needs - BD’s are children of Tenants automates the task of assigning VLANs. entity that contains a collection of physical or virtual
of users. They contain policies that govern the network endpoints. Endpoints are devices connected
operation of resources such as applications, Policy Universe to the network directly or indirectly. They have an
databases, web servers, network-attached storage, Solid Lines address (identity), a location, attributes and can be
virtual machines, and so on. = object contain the ones below 1 1 physical or virtual. Endpoints within the same EPG can
Dotted Lines communicate freely without restrictions.
n
2. Common Tenant = Indicate a relationship
Provided by the system but can be configured by the Tenant End Points
fabric administrator. It contains policies that govern (user, common or infra) It stands for hosts, in other words MAC address with
the operation of resources accessible to all tenants, IP(s)
such as L4 to L7 services, etc... 1 1 1 1 1 1 - sometimes MAC only
- IP in EP is always /32
3. Infrastructure Tenant Private Network, Context or VRF Instance
Provided by the system but can be configured by the A Virtual Routing and Forwarding (VRF) object (fvCtx)
fabric administrator. It contains policies that govern n n n n n n 1
or context is a tenant network. A VRF is a unique
the operation of infrastructure resources such as the Outside Application Bridge Layer 3 forwarding and application policy domain. A
VRF Contract Filter Access
fabric VXLAN overlay. Network Profile Domain VRF provides IP address space isolation for tenants. A
1 1 1 n 1 n 1 tenant can have multiple VRFs.
4. Management Tenant n
n n
Provided by the system but can be configured by the Domain Profile Bridge Domain (BD)
fabric administrator. It contains policies that govern n
n Subject (Phys, VMM, L2out, L3out A BD is a Layer 2 (broadcast) domain that must be
the operation of fabric management functions. or Fibre Channel) associated with a Tenant‘s Private Network. A BD may
Subnet 1
Contract contain one or more Subnets that can provide routing
Contracts are rules that specify how communications n services for associated EPG’s. It’s a set of logical ports
between EPGs take place. VLAN that share the same flooding or broadcast
Instance Profile characteristics. Like a virtual LAN (VLAN), bridge
Subject 1 domains span multiple devices.
n n n n
A subject is a sub-application running behind an EPG.
Attachable Access Entity Subnet
Endpoint Group
Filter 1 Profile A Subnet is defined by an IP address/mask and
ACI uses a whitelist model: all communication is 1 provides a routing gateway service for EPG’s that are
blocked by default; communication must be given 1 associated to the Subnet‘s parent BD. A BD can
explicit permission. A filter is a TCP/IP header field, Criterion contain multiple Subnets, but a Subnet is contained
such as a L3 protocol type or L4 ports, that are used Encap, IP, MAC within a single BD.
to specify the type of traffic that can be
communicated and how it occurs between EPGs. Common Pervasive Gateway (CPG):
Allows us to have a virtual MAC and virtual IP which is
Consumer/Provider common (the same) across multiple ACI Fabrics.
An EPG that consumes/provides a service. *pervasive = spreading widely throughout an area
Typically you will have only 1 Subnet per BD, so in that sense a Bridge Domain “resembles” a Contracts are not directly linked to Filters. Contracts have a child object called a
VLAN, and a Subnet “resembles” a VLAN interface. Subject and it is the Subjects that are linked to Filters. For a Contract to pass traffic, the
EPGs are children of APs, AP is a child of Tenant, tenant owns AP, AP owns
EPG either has to Consume a Contract or Provide a Contract.
EPGs. But each EPG must be linked to a BD.
REST API Using the REST API Management Information Tree (MIT)
The APIC REST API is a programmatic A hierarchical tree containing all the
http(s):// host:port /api /{mo|class} /{dn|classname} .{xml|json} ?[options]
interface that uses REST managed objects (MOs) of a system.
architecture. The API accepts and Specify Specify filters, The ACI MIT is also called the
http or APIC API
returns HTTP or HTTPS messages Managed Distinguished name Encoding for selectors or modifiers Management Information Model (MIM)
https host and Oper
that contain JSON or XML Object or Class or Object Class response to query, joined using
protocol port ator
documents. The REST API is the Operator ampersnad (&) Tags
interface into the MIT and allows Schema Object tags simplify API operations. In
manipulation of the object model API Inspector an API operation, an objector group of
With Multi-Site, the Schema is a container for single
state. The same REST interface is Provides a real-time display of the REST API commands that the objects is referenced by the tag name
or multiple templates used for defining policies.
used by the Cisco APIC CLI, GUI, and APIC processes to perform GUI interactions. instead of by the distinguished
SDK. The REST API also provides an Managed Object (MO) name(DN). Tags are child objects of the
interface through which other Distinguished Name (DN) item they tag; besides the name, they
An abstract representation of network resources that
information can be retrieved. A unique name that describes a MO and its place in the MIT have no other properties.
are managed.
STP Link Type Must Be Shared In this example, external route ext-S1 is a Transit Route when advertised out L3Out-2.
Since BPDU’s are flooded, ACI acts as a HUB from an STP Perspective. Full Duplex Links default to If OSPF or EIGRP on L3Out-2, ext-S1 is redistributed from BGP into the IGP and advertised.
Spanning-Tree Link-Type PTP. If multiple switches connect to ACI on separate links, Link-Type Transit Routes are controlled via Export Route Control flag
must be set to Shared to allow processing of multiple BPDU’s on the same interface.
Mis-Cabling Protocol
Mis-Cabling Protocol can be used to detect loops. With MCP, a special frame is sent out with a
multicast destination MAC so that the downstream devices will flood it. MCP Can be sent on a per
VLAN basis. If that frame is received back on a leaf in the fabric, it will err-disable the interface if
ONE of the following conditions are met:
1. MD5 Digest is the same
2. Send time is within ~2s of receive time
Switch Selector Policies Switch Selector Interface Selector Domain + VLAN Pool
Attached
Switch STP (switch) VPC DOMAIN Switch Policy Group Interface Policy Group Access Entity Physical Domain VLAN Pool
Profile
Application Profile
Interface Policies
EPG
Interface Policy Group
Deploy on Bridge Domain
Tenant
static port
Policies IP Subnet
Interface Profile
1/1
Interface Selector CDP LLDP Port-Channel
Interface
STP (int) MCP Link-Level
Global Policies
Switch Profile
Physical Domains External L2 Domains External L3 Domains Interface Profile + Interface Selector
Switch Selector
Interface Selector
Interface Profile Interface Policy Group
Deploy on
Contract
Domain
static port
Subject
Subnet
Bridge
Filter
VRF
1/1
BCN 1
STS
ACT 2
The domain
Tenant Customer /
Tenant Tenant Customer / profile contains
(use r, common or infra) Group / BU The AEP deploys the
(user, common or infra) (user, common or infra) Group / BU VLAN pool &
AEP which are Private Network associated EPGs to all
Routing Table
Private Network Private Network Routing Table associated VRF Instance the ports to which it
Switch Profile VRF
VRF Instance VRF Instance VRF directly with is attached, and
Switch Selector automates the task of
EPGs L2 Boundary
L2 Boundary Bridge Domain assigning VLANs
Interface Profile Bridge Domain Bridge Domain
Access Port Selector Subnet IP Space(s)
Subnet Subnet IP Space(s)
Interface Policy Group
Application Profile
Access Port Policy Group Application Profile Application Profile Group of
Group of EPG End Points
Physical Domain Profile EPG EPG EPG End Points
VLAN Pool AEP
Cisco Nexus 9396PX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
BCN 1
STS
ACT 2
Contract Scope
The contract scope will limit which providers and consumers
can participate within the same contract.
VRF
Contract can be applied between EPGs within the same VRF.
Application Profile
Contract can be applied between EPGs within the same AP.
Tenant
Contract can be applied between EPGs within the same tenant.
Contracts contribute to both
Global y policy AND routing entries
Contract can be applied between any EPGs within the fabric. on leafs!
Global contracts not in common tenant need to be exported in
order to be consumed by EPG in a different tenant.
Consumers of global contracts will use the ‘Consumer Contract
Interface’ Option.
1) H1 sends packet
toward gateway in 1 5 5) If permitted, traffic
H1 H3 forwarded to H3 with
EPG-E1 with
BD-B1 BD-B2 appropriate encap
destination IP of H3
EPG-E1 EPG-E4
VRF-V1 VRF-V2
Shared Service ( Route Leaking) enables traffic between endpoints in EPG-E1 is now a shared service provider. Shared Service Forwarding
different VRFs. A shared service EPG provider is an EPG that provides a It is reallocated a fabric unique pcTag (<16384).
contract consumed by an EPG in a different VRF. 3) Spine performs proxy lookup for H1
From Consumer E4 IP in VRF-V1. s If unknown drops the 2) L6 performs layer3
All subnets on consumer BD programmed in provider VRF. to Provider E1 lookup for H1 in VRF-V2 and
Restrictions packet. Else forward to VTEP of L1
- Provider Subnet must be defined under the provider EPG. hits LPM entry for H1
Provider subnet programmed in consumer VRF with pcTag of subnet. LPM entry points to
- Both provider and consumer subnets must have scope set to shared provider EPG. S1 S2 Policy Applied
- Contract needs correct scope proxy with VNID rewrite
on egress L6 info for VRF-V1 and pcTag
- VzAny not supported as provider 3 (consumer VRF)
4) L1 performs layer3 lookup of EPG-E1. L6 applies policy
on H1 destination IP in VRF- between EPG-E4 and EPG-
V1. Hit in local EP database 2 E1 in consumer VRF-V2. If
4 permitted, packet is sent to
and derives destination EPG-
E1 Policy already applied by L1 L2 L3 L4 L5 L6 Spine Anycast IPv4 Proxy
L6 VTEP with VRF-V1 VNID and
EPG-E4 set in VXLAN
5) Traffic is forwarded 5 1 1) H3 sends packet
to H1 with H1 H3 toward gateway in
appropriate encap BD-B1 BD-B2 EPG-E4 with
destination IP of H1
EPG-E1 EPG-E4
VRF-V1 VRF-V2
Multi-Site
Controller
Pod:
A pod is a leaf-and-spine network sharing a common control plane (Intermediate System–to–
Intermediate System [ISIS], Border Gateway Protocol [BGP], Council of Oracle Protocol [COOP], etc.). A
pod can be considered a single network fault domain.
Fabric:
A fabric is the set of leaf and spines nodes under the control of the same APIC domain. Each fabric
represents a separate tenant change domain, because every configuration and policy change applied in the
APIC is applied across the fabric. A Cisco ACI fabric thus can be considered an availability zone.
Multi-Pod:
A Multi-Pod design consists of a single APIC domain with multiple leaf-and-spine networks
(pods) interconnected. As a consequence, a Multi-Pod design is functionally a fabric (a single availability
zone), but it does not represent a single network failure domain, because each pod runs a separate
instance of control-plane protocols.
Multi-Site:
A Multi-Site design is the architecture interconnecting multiple APIC cluster domains with their associated
pods. A Multi-Site design could also be called a Multi-Fabric design, because it interconnects separate
availability zones (fabrics), each deployed either as a single pod or multiple pods (a Multi-Pod design).
MAC Header
Ethernet Frame
MAC Header PAYLOAD FCS
...
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
EtherType
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
...
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
EtherType
128 129 130 131 132 133 134 135
D M
Identification R Fragment Offset
F F
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
Source IP Address
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Destination IP Address
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
TCP Header
Ethernet Frame containing TCP packet
MAC Header 802.1Q IPv4 Header TCP Header PAYLOAD FCS
Sequence Number
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
Acknowledgement Number
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
Flags/Control Bits
Header Length Reserved Window Size
N C E U A P R S F
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
UDP Header
Ethernet Frame containing UDP packet
MAC Header 802.1Q IPv4 Header UDP Header PAYLOAD FCS
Length Checksum
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
VXLAN Header
OUTER INNER
MAC Header 802.1Q IPv4 Header UDP Header VXLAN Header MAC Header IPv4 Header UDP Header PAYLOAD FCS
Flags
SP DP Source Group
I
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
VMM Domain EPG Association The policy will be downloaded to leaf when you add host to the VMM switch.
The ACI fabric associates tenant application profile EPGs to VMM domains, either automatically by an CDP/LLDP neighborship from host to leaf is required.
orchestration component such as Microsoft Azure, or by an APIC administrator creating such configurations. An
EPG can span multiple VMM domains and a VMM domain can contain multiple EPGs. On Demand
Specifies that a policy (for example, VLAN, VXLAN bindings, contracts, or filters) is
pushed to the leaf node only when an ESXi host is attached to a DVS and a VM is
placed in the port group (EPG).
The policy will be downloaded to leaf when host is added to VMM switch and
virtual machine needs to be placed into port group (EPG). CDP/LLDP neighborship
from host to leaf is required.
With both immediate and on demand, if host and leaf lose LLDP/CDP neighborship
the policies are removed.
Deployment Immediacy
Once the policies are downloaded to the leaf software, deployment immediacy
can specify when the policy is pushed into the hardware policy content-
addressable memory (CAM).
Immediate
Specifies that the policy is programmed in the hardware policy CAM as soon as the
policy is downloaded in the leaf software.
On demand
Specifies that the policy is programmed in the hardware policy CAM only when
the first packet is received through the data path. This process helps to optimize
End points (EP) of the same color are part of the same EPG. All the green EPs
the hardware space.
are in the same EPG even though they are in two different VMM domains.
- The vCenter IP address and credentials, VMM domain policies, and VMM domain SPAN - On the menu bar, choose VM Networking > Inventory.
- Policies (VLAN pools, domain type such as VMware VDS, ...) - In the Navigation pane, expand VMware > Domain_name > vCenter_name.
- Connectivity to physical leaf inerfaces (using AEPs)
In the Work pane, under Properties, view the VMM domain name to verify that the controller is online.
1. APIC automatically connects to vCenter. In the Work pane, the vCenter properties are displayed including the operational status. The displayed
2. APIC creates the VDS matching the name of the VMM domain. information confirms that connection from the APIC controller to the vCenter server is established, and
3. vCenter admin adds the ESX host to the APIC VDS and assigns the ESX host hypervisor ports as uplinks on the the inventory is available.
APIC VDS. These uplinks must connect to the ACI leaf switches.
4. APIC learns the location of the hypervisor host using LLDP or CDP info of the hypervisors. Configuring Endpoint Retention Using the GUI
5. APIC admin creates and associates EPG policies. 1. Log in to Cisco APIC.
6. APIC admin associates EPG policies to VMM domains. 2. Choose VM Networking > Inventory. A Sequential Illustration of the vCenter Domain Operational Workflow
7. APIC automatically creates port groups in the VMware vCenter under the VDS. This process provisions the network 3. In the left navigation pane, expand the VMware folder and then click the vCenter domain that you
policy in the VMware vCenter. The port group name is a concatenation of the tenant name, the AP name, and the created earlier.
EPG name. The port group is created under the VDS, and it was created earlier by the APIC. 4. In the central Domain work pane, make sure that the Policy and General tabs are selected.
8. The vCenter admin or compute management tool instantiates and assigns VMs to the port groups. 5. In the End Point Retention Time (seconds) counter, choose the number of seconds to retain
9. The APIC learns about the VM placements based on the vCenter events. The APIC automatically pushes the EPG endpoints before they are detached. You can choose between 0 and 600 seconds. The default is 0.
and its associated policy to the ACI fabric. 6. Click Submit.
DB-permit-all-ctr
External EPG
L3out-ext-epg
0.0.0.0/0
L3out
DB-legacy-SB-ospf-L3out
Tenants - DB
Fabric - Access Policies
Domain
BM-Physdom
Port Channel Interface Policy Group Virtual Port Channel Interface Policy Group Access Port Policy Group
PhysicalDomain PhysicalDomain
Attachable Access Entity Profile The AEP defines the range of allowed VLANS but it does
VLAN Pool Access Entity Policy VLAN Pool Access Entity Policy not provision them. No traffic flows unless an EPG is
Domain deployed on the port. Without defining a VLAN pool in
an AEP, a VLAN is not enabled on the leaf port even if
VLAN Pool an EPG is provisioned.