La documentazione per questo prodotto è stata redatta cercando di utilizzare un linguaggio senza pregiudizi. Ai fini di questa documentazione, per linguaggio senza di pregiudizi si intende un linguaggio che non implica discriminazioni basate su età, disabilità, genere, identità razziale, identità etnica, orientamento sessuale, status socioeconomico e intersezionalità. Le eventuali eccezioni possono dipendere dal linguaggio codificato nelle interfacce utente del software del prodotto, dal linguaggio utilizzato nella documentazione RFP o dal linguaggio utilizzato in prodotti di terze parti a cui si fa riferimento. Scopri di più sul modo in cui Cisco utilizza il linguaggio inclusivo.
Cisco ha tradotto questo documento utilizzando una combinazione di tecnologie automatiche e umane per offrire ai nostri utenti in tutto il mondo contenuti di supporto nella propria lingua. Si noti che anche la migliore traduzione automatica non sarà mai accurata come quella fornita da un traduttore professionista. Cisco Systems, Inc. non si assume alcuna responsabilità per l’accuratezza di queste traduzioni e consiglia di consultare sempre il documento originale in inglese (disponibile al link fornito).
Questo documento descrive le diverse modalità di bilanciamento del carico ESI (Ethernet Segment Identifier), essenziale per ottimizzare la distribuzione del traffico e mantenere l'affidabilità della rete.
Requisiti
Cisco raccomanda la conoscenza di base di:
Componenti usati
Utilizzo del diagramma della topologia di rete nella figura 1 per illustrare il funzionamento delle diverse modalità di bilanciamento del carico.
Figura 1 Topologia di rete
Figura 2 Modalità di ridondanza attiva della porta
La Figura 2 Modalità di ridondanza attiva della porta descrive una modalità di ridondanza in cui la ridondanza attiva/standby è configurata a livello di interfaccia. In questa configurazione, il traffico per un'istanza virtuale Ethernet (EVI), ad esempio EVI 100, viene inoltrato solo tramite l'interfaccia attiva (in questo caso, l'interfaccia collegata a Provider Edge -PE3). Tutto il traffico destinato a EVI 100 viene hashato sul router attivo (PE3), mentre i router di standby (PE2) rimangono pronti a subentrare in caso di guasto all'interfaccia attiva.
evpn
interface Bundle-Ether23
ethernet-segment
identifier type 0 00.23.23.23.23.23.23.23.23
load-balancing-mode port-active >> configuration required to enable this mode
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show interfaces BE23
Bundle-Ether23 is down, line protocol is down
Nota: In modalità standby PE (PE2) lo stato dell'interfaccia Bundle Ether (BE) è inattivo.
RP/0/RSP0/CPU0:ASR9910-3-PE3#show interfaces BE23
Bundle-Ether23 is up, line protocol is up
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show bundle bundle-ether 23
Bundle-Ether23
Status: LACP OOS (out of service)
<snip>
Port Device State Port ID B/W, kbps
-------------------- --------------- ----------- -------------- ----------
Hu0/1/0/7 Local Standby 0x8000, 0x0001 100000000
Link is in standby due to bundle out of service state
Nota:
RP/0/RSP0/CPU0:ASR9910-3-PE3#show bundle bundle-ether 23
Bundle-Ether23
Status: Up
<snip>
Port Device State Port ID B/W, kbps
-------------------- --------------- ----------- -------------- ----------
Hu0/1/0/7 Local Active 0x8000, 0x0001 100000000
Link is Active
L'interfaccia attiva su cui deve essere eseguito l'hash di tutto il traffico dall'edge cliente (CE) 23.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
ES to BGP Gates : Ready
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether23
Interface MAC : 08ec.f50e.6af6
IfHandle : 0x040001a0
State : Standby
Redundancy : Not Defined
ESI type : 0
Value : 0000.2323.2323.2323.2323
ES Import RT : 0023.2323.2323 (from ESI)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : MH
Configured : Port-Active
<snip>
Service Carving Results:
Forwarders : 2
Elected : 0
Not Elected : 2
EVI NE : 100, 200
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.33.33
Access signal mode: Bundle OOS
PE2 - Il router del server di inoltro non designato implementa un blocco direzionale per tutto il traffico in entrata e in uscita dal CE23.
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
Main port :
Interface name : Bundle-Ether23
Interface MAC : 08ec.f52e.55b5
IfHandle : 0x000001a0
State : Up
Redundancy : Not Defined
<snip>
Topology :
Operational : MH
Configured : Port-Active
<snip>
Service Carving Results:
Forwarders : 2
Elected : 2
EVI E : 100, 200
Not Elected : 0
<snip>
HRW Reset timer : 5 sec [not running]
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.22.22
Access signal mode: Bundle OOS (Default)
Nota: PE3 è selezionato come server d'inoltro designato (DF, Designated Forwarder) per questo segmento Ethernet. Tutto il traffico diretto a CE23 viene inviato e ricevuto tramite PE3.
Route annunciate al router remoto PE1 da PE2 e PE3
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn
Route Distinguisher: 10.10.11.11:100 (default for vrf EVPN-ELAN-1)
*>i[1][0000.2323.2323.2323.2323][0]/120 >>>>>>>>>>>>>>>>>>>>>>>>> per ESI route
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[1][0000.2323.2323.2323.2323][4294967295]/120 >>>>>>>>>>>>>>>> per EVI route
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[2][0][48][6c03.093e.7213][0]/104 >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Route-Type 2 for the CE23 mac address is only advertised by PE3
10.10.33.33 100 0 i
*> [2][0][48][ecce.13e7.d85c][0]/104
0.0.0.0 0 i
RP/0/RSP1/CPU0:ASR9906-1-PE1#show evpn internal-label vpn-id 100 detail
VPN-ID Encap Ethernet Segment Id EtherTag Label
---------- ------ --------------------------- ---------- --------
100 MPLS 0000.2323.2323.2323.2323 0 24010
Multi-paths resolved: TRUE (Remote single-active)
Multi-paths Internal label: 24010
MAC 10.10.33.33 24001
EAD/ES 10.10.22.22 0
10.10.33.33 0
EAD/EVI 10.10.22.22 24001
10.10.33.33 24001
Summary pathlist:
0x02000002 (P) 10.10.33.33 24001
0x00000000 (B) 10.10.22.22 24001
Nota: Il tipo di route 2 di CE23 viene annunciato solo da PE3, pertanto PE3 è impostato come principale per questo segmento Ethernet e PE2 come secondario.
L2vpn
RP/0/RSP1/CPU0:ASR9906-1-PE1#show l2vpn forwarding bridge-domain EVPN-ELAN-1:EVPN-ELAN-1 mac-address location 0/0/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
ecce.13e7.d85c dynamic Hu0/1/0/2.100 N/A 24 Dec 08:58:17 N/A
6c03.093e.7213 EVPN BD id: 1 N/A N/A N/A
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show l2vpn forwarding bridge-domain EVPN-ELAN:EVPN-ELAN mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
6c03.093e.7213 EVPN BD id: 0 N/A N/A N/A
ecce.13e7.d85c EVPN BD id: 0 N/A N/A N/A
PE2 apprende entrambi gli indirizzi MAC di CE1 e CE23 come instradamenti EVPN da PE1 e PE3.
RP/0/RSP0/CPU0:ASR9910-3-PE3#show l2vpn forwarding bridge-domain EVPN-ELAN:EVPN-ELAN mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
ecce.13e7.d85c EVPN BD id: 0 N/A N/A N/A
6c03.093e.7213 dynamic BE23.100 N/A 24 Dec 07:26:58 N/A
L2rib
RP/0/RSP1/CPU0:ASR9906-1-PE1#show l2route evpn mac all
Topo ID Mac Address Producer Next Hop(s)
-------- -------------- ----------- ----------------------------------------
1 6c03.093e.7213 L2VPN 24010/I/ME, N/A
1 ecce.13e7.d85c LOCAL HundredGigE0/1/0/2.100, N/A
EVPN:
RP/0/RSP1/CPU0:ASR9906-1-PE1#show evpn evi vpn-id 100 mac
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
100 MPLS 6c03.093e.7213 :: 10.10.33.33 24001
100 MPLS ecce.13e7.d85c :: HundredGigE0/1/0/2.100 24002
BGP:
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn rd 10.10.11.11:100 [2][0][48][6c03.093e.7213][0]/104
Local
10.10.33.33 (metric 10) from 10.10.33.33 (10.10.33.33)
Received Label 24001
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 1, version 1321
Extended community: SoO:10.10.33.33:100 0x060e:0000.0000.0064 RT:100:100
EVPN ESI: 0000.2323.2323.2323.2323
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.33.33:100
In questa modalità, quando il traffico proveniente da CE1 deve essere inviato a CE23, da PE1 viene associato un alias solo a PE3, in quanto si riceve l'instradamento di tipo 2 solo da PE3. Quando BE23 si blocca su PE3, il traffico viene spostato su PE2 .
Figura 3 Modalità di ridondanza Single-Active
Come mostrato nella Figura 3 Modalità di ridondanza Single-Active , in questa modalità di ridondanza, entrambe le interfacce di accesso PE rimangono attive, a ciascun collegamento verso il PE viene assegnata un'interfaccia Ethernet Bundle univoca sul CE23, con le VLAN 100 e 200 consentite su entrambe le interfacce. Poiché questi collegamenti appartengono a bundle Ethernet distinti, CE23 instrada inizialmente il traffico verso entrambi i PE. Tuttavia, solo il server d'inoltro designato (DF, Designated Forwarder) del segmento Ethernet inoltra il traffico verso il core. Di conseguenza, il CE mantiene una singola interfaccia Ethernet Bundle nella propria tabella di inoltro, garantendo il multi-homing per VLAN single-active.
interface Bundle-Ether23
ethernet-segment
identifier type 0 00.23.23.23.23.23.23.23.23
load-balancing-mode single-active >> configuration required to enable this mode
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show interfaces bundle-ether 23
Bundle-Ether23 is up, line protocol is up
RP/0/RSP0/CPU0:ASR9910-3-PE3#show interfaces bundle-ether 23
Bundle-Ether23 is up, line protocol is up
Nota: Lo stato fisico e lo stato del bundle di BE23 su PE2 e PE3 sono attivi e attivi.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, Single-active
Configured : Single-active (AApS)
<snip>
Service Carving Results:
Forwarders : 2
Elected : 1
EVI E : 200
Not Elected : 1
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.33.33
Access signal mode: Bundle OOS
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, Single-active
Configured : Single-active (AApS)
<snip>
Service Carving Results:
Forwarders : 2
Elected : 1
EVI E : 100
Not Elected : 1
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.22.22
Access signal mode: Bundle OOS (Default)
Nota:
Route annunciate a PE1 da PE2 e PE3
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn
Route Distinguisher: 10.10.11.11:100 (default for vrf EVPN-ELAN-1)
*>i[1][0000.2323.2323.2323.2323][0]/120>>>>>>>>>>>>>>>>>>>>>>>>>>> Per EVI route
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[1][0000.2323.2323.2323.2323][4294967295]/120>>>>>>>>>>>>>>>>>> per ESI route
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[2][0][48][6c03.093e.7213][0]/104>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Route-type 2 Advertised only by PE3 for vlan 100
10.10.33.33 100 0 i
Nella modalità di bilanciamento del carico attivo singolo vengono utilizzate sia l'interfaccia di accesso PE1 che PE2, il traffico EVI 100 con hash a PE3 e il traffico EVI 200 con hash a PE2. L'indirizzo mac CE23 su EVI 100 è raggiungibile solo tramite PE3, in quanto PE3 è il server d'inoltro designato per EVI 100 che annuncia la route Mac/IP associata, PE3 viene indicato come PE principale su PE1.
L'apprendimento e la propagazione dell'indirizzo mac attraverso vari componenti rimane la stessa della modalità di ridondanza attiva delle porte.
Figura 4 Tutti - Modalità di ridondanza attiva
Come illustrato nella Figura 4 - Modalità di ridondanza attiva (All-Active Redundancy Mode), in modalità di ridondanza attiva per una EVI che sia PE2 che PE3 possono inviare e ricevere traffico unicast noto, il traffico viene sottoposto a hashing per flusso su entrambi i PE.
Evpn
interface Bundle-Ether23
ethernet-segment
identifier type 0 00.23.23.23.23.23.23.23.23
Nota: La modalità predefinita è all-active.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show interfaces Be23
Bundle-Ether23 is up, line protocol is up
RP/0/RSP0/CPU0:ASR9910-3-PE3#show interfaces BE23
Bundle-Ether23 is up, line protocol is up
Nota: Lo stato fisico e lo stato del bundle di BE23 su PE2 e PE3 sono attivi.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, All-active
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
<snip>
Service Carving Results:
Forwarders : 2
Elected : 2
EVI E : 100, 200
Not Elected : 0
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.33.33
Access signal mode: Bundle OOS
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, All-active
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
<snip>
Service Carving Results:
Forwarders : 2
Elected : 0
Not Elected : 2
EVI NE : 100, 200
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.22.22
Access signal mode: Bundle OOS (Default)
Nota:
Route annunciate a PE1 da PE2 e PE3
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn
Route Distinguisher: 10.10.11.11:100 (default for vrf EVPN-ELAN-1)
*>i[1][0000.2323.2323.2323.2323][0]/120 >>>>>>>>>>>>>>>>>>>>>> Per EVI
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[1][0000.2323.2323.2323.2323][4294967295]/120>>>>>>>>>>>>> Per ESI
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
*>i[2][0][48][6c03.093e.7213][0]/104 >>>>>>>>>>>>>>>>>>>>>>>>> Route-Type2 is advertised by both PE2 and PE3
10.10.22.22 100 0 i
* i 10.10.33.33 100 0 i
RP/0/RSP1/CPU0:ASR9906-1-PE1#show evpn internal-label detail
VPN-ID Encap Ethernet Segment Id EtherTag Label
---------- ------ --------------------------- ---------- --------
100 MPLS 0000.2323.2323.2323.2323 0 24010
Multi-paths resolved: TRUE (Remote all-active)
Multi-paths Internal label: 24010
MAC 10.10.22.22 24001
10.10.33.33 24001
EAD/ES 10.10.22.22 0
10.10.33.33 0
EAD/EVI 10.10.22.22 24001
10.10.33.33 24001
Summary pathlist:
0x02000001 (P) 10.10.22.22 24001
0x02000002 (P) 10.10.33.33 24001
Dall'output è possibile osservare che per raggiungere CE23 su PE1, PE2 e PE3 vengono considerati come percorso primario e il traffico viene sottoposto a hashing sia su PE2 che su PE3
RP/0/RSP1/CPU0:ASR9906-1-PE1#show mpls forwarding labels 24010 detail
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24010 24001 EVPN:100 10.10.22.22 0
Updated: Dec 29 12:19:20.649
Version: 333, Priority: 3
Label Stack (Top -> Bottom): { 24001 }
NHID: 0x0, Encap-ID: N/A, Path idx: 0, Backup path idx: 0, Weight: 0
MAC/Encaps: 0/4, MTU: 0
Packets Switched: 0
24001 EVPN:100 10.10.33.33 0
Updated: Dec 29 12:19:20.649
Version: 333, Priority: 3
Label Stack (Top -> Bottom): { 24001 }
NHID: 0x0, Encap-ID: N/A, Path idx: 1, Backup path idx: 0, Weight: 0
MAC/Encaps: 0/4, MTU: 0
Packets Switched: 0
L2vpn:
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show l2vpn forwarding bridge-domain EVPN-ELAN:EVPN-ELAN mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
ecce.13e7.d85c EVPN BD id: 0 N/A N/A N/A
6c03.093e.7213 static BE23.100 N/A N/A N/A
RP/0/RSP0/CPU0:ASR9910-3-PE3#show l2vpn forwarding bridge-domain EVPN-ELAN:EVPN-ELAN mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
ecce.13e7.d85c EVPN BD id: 0 N/A N/A N/A
6c03.093e.7213 dynamic BE23.100 N/A 30 Dec 06:49:50 N/A
Da CE23 è stato avviato solo 1 flusso, è stato eseguito l'hashing a PE3, quindi l'apprendimento è dinamico in PE3 , su PE2 l'indirizzo mac è stato sincronizzato per questa ESI la voce è statica in PE2.
L2RIB :
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show l2route evpn mac all
Topo ID Mac Address Producer Next Hop(s)
-------- -------------- ----------- ----------------------------------------
0 6c03.093e.7213 L2VPN Bundle-Ether23.100, N/A
RP/0/RSP0/CPU0:ASR9910-3-PE3#show l2route evpn mac all
Topo ID Mac Address Producer Next Hop(s)
-------- -------------- ----------- ----------------------------------------
0 6c03.093e.7213 LOCAL Bundle-Ether23.100, N/A
EVPN:
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn evi vpn-id 100 mac
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
100 MPLS 6c03.093e.7213 :: 10.10.33.33 24001
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn evi vpn-id 100 mac
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
100 MPLS 6c03.093e.7213 :: Bundle-Ether23.100 24001
Questo output a livello di componente EVPN mostra chiaramente che PE3 ha appreso dinamicamente l'indirizzo mac di CE23 e ha annunciato Route-Type 2 verso PE2 e PE1.
PE2 ha importato questo Route-Type2 con il flag di sincronizzazione impostato e reindirizza il Route-Type 2 per l'indirizzo MAC di CE23 con PE2 con l'hop successivo.
Tracce L2RIB da PE2 che mostrano questo comportamento:
[12/29/24 11:14:07.763 UTC 225f 7879] Received MAC ROUTE msg: addr: (0, 6c03.093e.7213) vni: 0 admin_dist: 0 seq_num: 0 rt_flags: S soo: 0 dg_count: 0 res: 0 esi: (F) >>> sync flag is set
[12/29/24 11:14:07.763 UTC 2262 7879] (0,6c03.093e.7213,9):Updated recv attrs seq:0 flags:S NH-type:2 NH:Bundle-Ether23.100 NH2-type:0 NH2:N/A >>> the NH is updated to the ESI interface
[12/29/24 11:14:07.763 UTC 2264 7879] (0,6c03.093e.7213,9):set route flags: BEST
[12/29/24 11:14:07.763 UTC 2265 7879] (0,6c03.093e.7213,9):MAC route created seq num:0 flags:BS (Rcv) rcv_seq:0 rcv_flags:S slot_id:0 >>>>>>>>> the mac route is created with PE2 has the NH
[12/29/24 11:14:07.763 UTC 2266 7879] (0,6c03.093e.7213,9):MAC route created BR:9 Dup Moves:0 NH-type:2 NH:Bundle-Ether23.100 NH2-type:0 NH2:N/A
[12/29/24 11:14:07.765 UTC 2267 7879] (0,6c03.093e.7213,9):Encoding MAC BR (ADD) Client = 3 BR = 0x56487439e9a0 SBRD = 0 PROD_CHANGED = 0 RLDP 0
BGP:
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn rd 10.10.11.11:100 [2][0][48][6c03.093e.7213][0]/104
Local
10.10.22.22 (metric 10) from 10.10.22.22 (10.10.22.22)
Received Label 24001
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 1, version 1699
Extended community: SoO:10.10.33.33:100 0x060e:0000.0000.0064 RT:100:100
EVPN ESI: 0000.2323.2323.2323.2323
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.22.22:100
Path #2: Received by speaker 0
Not advertised to any peer
Local
10.10.33.33 (metric 10) from 10.10.33.33 (10.10.33.33)
Received Label 24001
Origin IGP, localpref 100, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: SoO:10.10.33.33:100 0x060e:0000.0000.0064 RT:100:100
EVPN ESI: 0000.2323.2323.2323.2323
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.33.33:100
L'attributo Origine origine indica che il tipo di route 2 è stato creato da PE3, ma l'identificatore di route indica chiaramente che PE2 ha letto il tipo di route 2.
Nota: Quando il traffico viene ricevuto su PE3 e PE2 da CE23, poiché diversi flussi vengono sottoposti a hashing su entrambi i collegamenti, sia PE2 che PE3 possono imparare dinamicamente l'indirizzo mac e la route-Type2 annunciata.
In questa modalità di ridondanza, una VLAN può essere attiva su tutti i PE del gruppo di ridondanza, ma ogni singolo flusso L2 di tale Vlan può essere attiva solo su uno dei PE del gruppo di ridondanza alla volta.
Evpn
interface Bundle-Ether23
ethernet-segment
identifier type 0 00.23.23.23.23.23.23.23.23
load-balancing-mode single-flow-active >>> this command enables SFA redundancy mode
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show interfaces BE23
Bundle-Ether23 is up, line protocol is up
RP/0/RSP0/CPU0:ASR9910-3-PE3#show interfaces BE23
Bundle-Ether23 is up, line protocol is up
Nota: Lo stato fisico e lo stato del bundle di BE23 su PE2 e PE3 sono attivi e attivi.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, Single-flow-active
Configured : Single-flow-active
Service Carving : Auto-selection
<snip>
Service Carving Results:
Forwarders : 2
Elected : 0
Not Elected : 0
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.33.33
Access signal mode: Bundle OOS
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn ethernet-segment carving detail
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.2323.2323.2323.2323 BE23 10.10.22.22
10.10.33.33
<snip>
Topology :
Operational : MH, Single-flow-active
Configured : Single-flow-active
Service Carving : Auto-selection
<snip>
Service Carving Results:
Forwarders : 2
Elected : 0
Not Elected : 0
<snip>
Local SHG label : 24003
Remote SHG labels : 1
24003 : nexthop 10.10.22.22
Access signal mode: Bundle OOS (Default)
Nota:
Route annunciate a PE1 da PE2 e PE3.
Per route ESI:
RP/0/RSP1/CPU0:ASR9906-1-PE1#show bgp l2vpn evpn rd 10.10.11.11:100 [1][0000.2323.2323.2323.2323][4294967295]/120
Local
10.10.22.22 (metric 10) from 10.10.22.22 (10.10.22.22)
Received Label 0
Extended community: EVPN ESI Label:0x02:24003 RT:100:100 RT:200:200
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.22.22:1
Path #2: Received by speaker 0
Not advertised to any peer
Local
10.10.33.33 (metric 10) from 10.10.33.33 (10.10.33.33)
Received Label 0
Extended community: EVPN ESI Label:0x02:24003 RT:100:100 RT:200:200
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.33.33:1
Nota:
L2vpn
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show l2vpn forwarding bridge-domain EVPN-ELAN-200:EVPN-ELAN-200 mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
ecce.13e7.d85c EVPN BD id: 1 N/A N/A N/A
6c03.093e.7213 dynamic BE23.200 N/A 30 Dec 10:05:07 N/A
RP/0/RSP0/CPU0:ASR9910-3-PE3#show l2vpn forwarding bridge-domain EVPN-ELAN-200:EVPN-ELAN-200 mac-address location 0/1/CPU0
Mac Address Type Learned from/Filtered on LC learned Resync Age/Last Change Mapped to
-------------- ------- --------------------------- ---------- ---------------------- --------------
6c03.093e.7213 EVPN BD id: 1 N/A N/A N/A
ecce.13e7.d85c EVPN BD id: 1 N/A N/A N/A
Nota: In PE2 Mac viene appreso dinamicamente e in PE3 mac viene appreso tramite EVPN.
ARP :
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show arp vrf TEST
192.168.200.23 00:03:37 6c03.093e.7213 Dynamic ARPA BVI200
RP/0/RSP0/CPU0:ASR9910-3-PE3#show arp vrf TEST
192.168.200.23 - 6c03.093e.7213 EVPN_SYNC ARPA BVI200
L2rib:
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show l2route evpn mac-ip all detail
1 6c03.093e.7213 192.168.200.23 L2VPN Bundle-Ether23.200, 24006/I/ME 1 SSfa
RP/0/RSP0/CPU0:ASR9910-3-PE3#show l2route evpn mac-ip all detail
1 6c03.093e.7213 192.168.200.23 L2VPN Bundle-Ether23.200, 24010/I/ME 2 BSSfa
Nota: BSSfa >> per questo mac il miglior percorso è il percorso remoto con flag di sincronizzazione impostato.
EVPN:
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show evpn evi vpn-id 200 mac ipv4 192.168.200.23
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
200 MPLS 6c03.093e.7213 192.168.200.23 Bundle-Ether23.200 24007
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn evi vpn-id 200 mac ipv4 192.168.200.23
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
200 MPLS 6c03.093e.7213 192.168.200.23 10.10.22.22 24007
Nota: Da PE3 a raggiungere 192.168.200.23 l'hop successivo è PE2 e non l'interfaccia locale.
RP/0/RSP1/CPU0:ASR-9904-5-PE2#show bgp l2vpn evpn rd 10.10.22.22:200 [2][0][48][6c03.093e.7213][32][192.168.200.23]/136
BGP routing table entry for [2][0][48][6c03.093e.7213][32][192.168.200.23]/136, Route Distinguisher: 10.10.22.22:200
<snip>
Local
0.0.0.0 from 0.0.0.0 (10.10.22.22)
Second Label 24012
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 2022
Extended community: Flags 0xe: SoO:10.10.22.22:200 EVPN MAC Mobility:0x00:2 0x060e:0000.0000.00c:200:200
EVPN ESI: 0000.2323.2323.2323.2323
Path #2: Received by speaker 0
Not advertised to any peer
Local
10.10.33.33 (metric 10) from 10.10.33.33 (10.10.33.33)
Received Label 24006, Second Label 24008
Origin IGP, localpref 80, valid, internal, import-candidate, imported, rib-install
Received Path ID 0, Local Path ID 0, version 0
Extended community: SoO:10.10.22.22:200 EVPN MAC Mobility:0x00:2 0x060e:0000.0000.00c8 RT:200:200
EVPN ESI: 0000.2323.2323.2323.2323
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 10.10.33.33:200
Nota:
In PE3, quando il Route-Type2 per CE23 viene sincronizzato e letto da PE3, viene annunciato con la preferenza locale 100, che viene modificata dai criteri BGP in uscita su PE3. Questo comportamento può essere osservato negli output successivi.
RP/0/RSP0/CPU0:ASR9910-3-PE3# show bgp l2vpn evpn rd 10.10.33.33:200 [2][0][48][6c03.093e.7213][32][192.168.200.23]/136
<snip>
Local
0.0.0.0 from 0.0.0.0 (10.10.33.33)
Second Label 24008
Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install
Received Path ID 0, Local Path ID 1, version 1365
Extended community: Flags 0xe: SoO:10.10.22.22:200 EVPN MAC Mobility:0x00:2 0x060e:0000.0000.00c8 RT:200:200
EVPN ESI: 0000.2323.2323.2323.2323
Questa preferenza Locale viene modificata in PE3 quando BGP applica il criterio in uscita prima di annunciare Route-Type2 ad altri PE remoti
RP/0/RSP0/CPU0:ASR9910-3-PE3#show evpn evi vpn-id 200 mac ipv4 192.168.200.23 private
VPN-ID Encap MAC address IP address Nexthop Label SID
---------- ---------- -------------- ---------------------------------------- --------------------------------------- -------- ---------------------------------------
200 MPLS 6c03.093e.7213 192.168.200.23 10.10.22.22 24007
Ethernet Tag : 0
Multi-paths Resolved : True
Multi-paths Internal label : 24010
<snip>
Ext Flags : 0x00000510 (Lcl Spec,Pref-Rib,LP-80,)
Nota:
il presente documento si applica anche ad altri prodotti XR, quali NCS 5500 e NCS 5700 .
Le modalità ESI (Ethernet Segment Identifier) di EVPN offrono robusti meccanismi di ridondanza e distribuzione del traffico, garantendo un'elevata disponibilità e un utilizzo efficiente delle risorse nelle moderne architetture di rete. Sfruttando funzionalità quali la modalità di ridondanza Single-Active e All-Active, EVPN consente failover, bilanciamento del carico e resilienza operativa senza problemi. La comprensione e l'implementazione della modalità ESI appropriata per requisiti di rete specifici è fondamentale per ottimizzare le prestazioni e mantenere l'affidabilità della rete.
Revisione | Data di pubblicazione | Commenti |
---|---|---|
1.0 |
19-Mar-2025
|
Versione iniziale |