cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1077
Views
10
Helpful
2
Replies
glezJos91986
Beginner

ACI Routing Decision Logic

Hello Community,

I have been looking for information about the routing decision on ACI.

There are 3 lookup points:

1- Endpoint Table

2- RIB Table

3- ARP Table.

Basically a leaf switch will look for an endpoint on its database, if it is not found, then it tries its RIB table and finally the ARP table if needed. That's what I got, so far so good.

My struggle comes from the fact that also as per the documentation, when a leave switch does not know how to get to a destination, it sends the traffic to a spine (which in theory should know about all endpoints or try to "discover" them) and the spines forward the traffic then to the final leave. 

So:

Q1: When exactly in the 3 steps logic, does the leave send the traffic to the spine for lookup (COOP)?

Q2: If the leave uses the RIB info to route traffic to and endpoint, I guess that afterwards the leave will learn that endpoint and it wont have to get to the RIB next time it needs to send traffic to that endpoint? Is that how it works?

Q3: All routing decision are tied to VRFs as I understand, so for example if I ping an endpoint from a leave, which VRF am I using?

Thank you community team!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sergiu.Daniluk
VIP Advocate

Hi @glezJos91986 

The answer as usual, it depends, but here is a flowchart which can help you understand a bit the routing decision:

Screenshot 2021-08-04 100817.png

 

Q1: can be simply answered following the flowchart above. Just as an informative note, in the RIB the APIC will program the BD subnet as static route with next hop to Spine Proxy.

Q2: It depends. If you have enabled IP data-plane learning in the BD (enabled by default) then yes, the leaf will learn the source IP of the endpoint from data plane packets; otherwise, will learn local IPs are learned from ARP/GARP/ND via the control plane.

Q3: You must specify the VRF in which you are pinging:

 

Leaf201# show vrf 
 VRF-Name                           VRF-ID State    Reason                         
 SD:SD                                   7 Up       --                             
 black-hole                              3 Up       --                             
 overlay-1                               4 Up       --                             

Leaf201# iping -h
usage: iping    
<snip>
                 [ -V    <vrf-name>      name of the VRF through which destination is reachable ] 
</snip>

Leaf201# iping 10.1.1.1 -V SD:SD

 

 

Stay safe,

Sergiu

View solution in original post

2 REPLIES 2
Sergiu.Daniluk
VIP Advocate

Hi @glezJos91986 

The answer as usual, it depends, but here is a flowchart which can help you understand a bit the routing decision:

Screenshot 2021-08-04 100817.png

 

Q1: can be simply answered following the flowchart above. Just as an informative note, in the RIB the APIC will program the BD subnet as static route with next hop to Spine Proxy.

Q2: It depends. If you have enabled IP data-plane learning in the BD (enabled by default) then yes, the leaf will learn the source IP of the endpoint from data plane packets; otherwise, will learn local IPs are learned from ARP/GARP/ND via the control plane.

Q3: You must specify the VRF in which you are pinging:

 

Leaf201# show vrf 
 VRF-Name                           VRF-ID State    Reason                         
 SD:SD                                   7 Up       --                             
 black-hole                              3 Up       --                             
 overlay-1                               4 Up       --                             

Leaf201# iping -h
usage: iping    
<snip>
                 [ -V    <vrf-name>      name of the VRF through which destination is reachable ] 
</snip>

Leaf201# iping 10.1.1.1 -V SD:SD

 

 

Stay safe,

Sergiu

View solution in original post

Thank you @Sergiu.Daniluk, that flow chart clarified a lot the routing/forwarding decision, more than the "3 steps" process.

 

I actually had no idea that spine proxy can be used for both L2 and L3 decisions. For some reason I only though of it as the last resource for L2 forwarding decision.

Thank you for the answer !!