Escolar Documentos
Profissional Documentos
Cultura Documentos
MPLS Bsico
Presentation_ID
Cisco Confidential
Agenda
Conceitos Base da Tecnologia
O que MPLS? Onde usar?
Sumrio
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Conceitos
Presentation_ID
Cisco Confidential
Terminologia
Acrnimos
PEProvider Edge router PProvider Core router CECustomer Edge router (also referred to as CPE) ASBRAutonomous System Boundary Router RRRoute Reflector
TETraffic Engineering
TE head endroteador que inicial o tnel TE TE midpointroteador por onde transita o tnel TE
VPNColeo de sites que compartilham polticas comum AToMAny Transport over MPLS
Conhecido como mtodo de construir circuitos layer 2 sobre MPLS Attachment circuitCircuito layer 2 entre PE e CE Emulated circuitpseudowire entre PEs
4
Presentation_ID
Cisco Confidential
Evoluo do MPLS
MPLS Group Formally Chartered by IETF Cisco Ships MPLS (Tag Switching)
Time
1996
1997
1998
1999
2000
2001
Presentation_ID
Cisco Confidential
O que MPLS?
Multi Protocol Label Switching MPLS um eficiente mecanismo de encapsulamento Utiliza Labels acoplado nos pacotes (IP packets, AAL5 frames) MPLS pode rodar em outras tecnologia de camada 2, tais como ATM, FR, PPP, POS, Ethernet MPLS uma tecnologia para entrega de servios IP
Presentation_ID
Cisco Confidential
Presentation_ID
Cisco Confidential
IP+ATM
IP+Optical GMPLS
MPLS
Network Infrastructure
Presentation_ID
Cisco Confidential
Base da Tecnologia
Presentation_ID
Cisco Confidential
Label
EXP S
TTL
Label = 20 Bits COS/EXP = Class of Service, 3 Bits S = Bottom of Stack, 1 Bit TTL = Time to Live, 8 Bits
Contm informaes suficientes para encaminhamento de pacote. Label com significncia local
Presentation_ID
Cisco Confidential
10
Encapsulamento
PPP Header (Packet over SONET/SDH)
PPP Header Label Layer 2/L3 Packet
MAC Header
Label
GFC
VPI
VCI
PTI
CLP HEC
DATA
Label
11
Presentation_ID
Cisco Confidential
Presentation_ID
Cisco Confidential
12
Conceitos de MPLS
At Edge: Classifica os pacotes Coloca o Label Label Imposition In Core: Encaminha com Label. Label indica destino Label Swapping or Switching
At Edge: Remove Labels e encaminha pacote IPv4 Label Disposition Label Switch Router (LSR) Router ATM switch + Label Switch Controller
Cria novos servios via classificao flexvel Prov a habilidade de configurar garantia de banda para caminhos diferentes
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
13
Operao do MPLS
1a. Existncia de Protocolo de Roteamento(e.g. OSPF, IS-IS) 4. Edge LSR Egress remove Estabelecer alcance para destinos desejados Label e entrega 1b. Label Distribution Protocol (LDP) pacotes IPv4 Estabelece vizinhana com roteadores que possuem o destino
2. Ingress Edge LSR Recebe o pacote, Realiza Servios de Layer 3, e associa o Labels no Pacote
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Presentation_ID
Cisco Confidential
15
Presentation_ID
Cisco Confidential
16
Discovery
Para encontrar vizinhos LDP
Presentation_ID
Cisco Confidential
17
128.89 171.69
0 1
128.89 171.69
1 1
128.89 171.69
0 1
128.89.25.4
Data
18
128.89 171.69
1 1
128.89 171.69
0 1
128.89
0 1 0
128.89
171.69
Cisco Confidential
19
128.89 171.69
1 1
4 5
4 5
128.89 171.69
0 1
9 7
128.89
0 1 0
128.89
171.69
Cisco Confidential
20
128.89 171.69
1 1
4 5
4 5
128.89 171.69
0 1
9 7
128.89
0 0
128.89 Data
171.69
21
Downstream on-demand
N Upstream solicita um label para associar ao prefixo e encaminha para o n downstream
Presentation_ID
Cisco Confidential
22
128.89 171.69
1 1
128.89 171.69
0 1
128.89
1 1 2 0
0 128.89
171.69
23
128.89 171.69
1 1
4 5
4 8 5
2 3 2
0 0 1
9 10 7
9 10
1 1
128.89 128.89
0 0
1 1 2 0
0 128.89
171.69
Presentation_ID
Cisco Confidential
24
128.89 171.69
1 1
4 5
4 8 5
2 3 2
0 0 1
9 10 7
9 10
1 1
128.89 128.89
0 0
1 1 2 0
128.89.25.4
Data
171.69
25
LDP
Neighbor discovery
Busca vizinhos diretamente conectadoslinks pt-to-pt (including Ethernet) Estabelece uma sesso Troca prefixo/FEC e informao de label
Presentation_ID
Cisco Confidential
26
TDP e LDP
Tag distribution protocolCisco proprietary
Precursor do LDP Usado para Cisco tag switching
TDP e LDP so suportados no mesmo router TDP um subconjunto do TDP Usa o mesmo label/TAG
Presentation_ID
Cisco Confidential
27
28
Presentation_ID
Cisco Confidential
29
Label Information Base (LIB) Per-Label Forwarding, Queuing, and Multicast Mechanisms
Presentation_ID
Cisco Confidential
30
RIB
LIB
MPLS Process
MFI
FIB
MPLS Traffic
IP Traffic
31
Presentation_ID
Cisco Confidential
Empilhamento de Label
Pode existir mais que um label em um pacote MPLS Como sabemos, labels correspondem a forwarding equivalence classes
ExemploUm label usado para informao de roteamento do pacote para o roteador de sada e outro que separa se o pacote pertence ou cliente A ou cliente B Labels internos (Inner) so usados para utilizar servios/FECs, etc. E.g. VPNs, fast reroute
Label externo (outer) usado para rotear o pacote dentro da rede MPLS Outer Label Mais Labels podem ser associados
MPLS VPNs Traffic engineering e fast re-route VPNs over traffic engineered core Any transport over MPLS Inner Label
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Presentation_ID
Cisco Confidential
33
Presentation_ID
Cisco Confidential
34
VPNs
Layer 2 VPNs
Customer endpoints (CPE) conectado via Layer 2 tais como Frame Relay DLCI, ATM VC ou conexo point-to-point Se esta VPN conecta dois routers, ento estabelecida vizinhana de roteamento
Layer 3 VPNs
Segmentao de Sites em Layer 3 Relao de Peering com o PE (Provider Edge) Provedor responsvel por Distribuir informaes de roteamento para sites VPN Separao da tabela de roteamento da tabela da VPN.
Presentation_ID
Cisco Confidential
35
Layer 3 VPNs
Presentation_ID
Cisco Confidential
36
A
---------
Cust A
B
---------
Cust A
B
---------
MPLS Network
Cust B
Cust B
Presentation_ID
Cisco Confidential
37
Como feito?
Roteadores precisam manter tabelas de roteamento separadas, chamadas de VRFs (Virtual Routing and Forwarding Tables) Roteadores ento exportam e importam rotas usando extenses do BGP para identificar e separar uma rota VPN da outra Roteadores ento associam labels s rotas IGP
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
38
LDP PE
CE
CE CE
Overlapping Addresses Are Made Unique by Appending RD and Creating VPNv4 Addresses VRF
Presentation_ID
Cisco Confidential
39
VPN A
Routing Relationship
VPN A
CE
IPv4 Route Exchange
CE PE PE
Presentation_ID
Cisco Confidential
40
VPN A
IPv4 IPv4
VPN A
CE
IPv4 IPv4 Forwarded Packet
CE
IPv4
PE
Vpnv4 Routes Advertised via BGP Labels Exchanged via BGP
PE
IPv4
41
Presentation_ID
Cisco Confidential
42
Layer 2 VPNs
Presentation_ID
Cisco Confidential
43
Layer 2 VPNs
Similar a L3VPN
Um label designado por circuito Troca de informao de label com o egress PE Encapsula o trfego de entrada (Layer 2 frames) Aplica o label (aprendido via troca de labels) Encaminha pacotes MPLS (L2 encapsulado e com destino para a LSP) No egress
Lookup de L2 label Encaminhamento de pacotes para o L2 correspondente.
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
44
Arquitetura
Attachment Circuit Ethernet VLAN, FR DLCI, ATM VC, PPP Session
VPN A
VPN A
CE PE
Emulated VC/Pseudowire Labels Exchanged via Directed LDP
CE PE
Presentation_ID
Cisco Confidential
45
Frame Relay
MPLS Backbone
MPLS LSP
Frame Relay
Presentation_ID
46
Sumrio
Modo fcil de transportar frames Layer 2 Pode ser usado para transportar ATM AAL5 frames, cells, FR DLCI, PPP, Ethernet VLANs Transporte point-to-point com QoS garantido Combinado com TE e QoS para emular servios Layer2 sobre infra-estrutura de Layer-3
Presentation_ID
Cisco Confidential
47
Engenharia de Trfego
Presentation_ID
Cisco Confidential
48
Presentation_ID
Cisco Confidential
49
Plano de Capacitao
TE aumento a disponibilidade do backbone
Presentation_ID
Cisco Confidential
50
IP Routing e TE
R8 R3 R4 R2 R5
R1 R6
R7
IP (Mostly) Uses Destination-Based Least-Cost Routing Flows from R8 and R1 Merge at R2 and Become Indistinguishable From R2, Traffic to R3, R4, R5 Use Upper Route Alternate Path Under-Utilized
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
51
Router A tem 40Mb de trfego para o Route F, e 40Mb de trfego para o Router G 44% dos pacotes perdidos se o caminho for Router B->Router E!
Router F
OC-3
Router A
OC-3
Router E
DS3 OC-3
Router G
OC-3
Router C
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved.
DS3 DS3
Cisco Confidential
Router D
52
Router A v todos os links Router A calcula os caminhos com propriedades diferentes do menor caminho No h oversubscrition!
Router F
OC-3
Router A
OC-3
Router E
DS3 OC-3
Router G
OC-3
Router C
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved.
DS3 DS3
Cisco Confidential
Router D
53
Presentation_ID
Cisco Confidential
54
Distribuindo Informao
Voc precisa de um protocolo link-state (IGP)
IS-IS or OSPF
Presentation_ID
Cisco Confidential
55
Exemplo
RESV RESV PATH
RESV
PATH
TE Headend
PATH
TE Tail End
Mensagens PATH so enviadas com o pedido de banda Mensagens RESV so enviadas no sentido contrrio com o label do tnel TE Tneis podem ser explicitamente roteados Controle de Admisso de cada salto para conferir se h banda disponvel
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
56
Traffic Engineering
Baseado no conceito fim-a-fim Tem controle de banda Validao do tnel
Presentation_ID
Cisco Confidential
57
R6
R7
Mimic SONET APS Reroute em 50ms ou Menos
Presentation_ID
Cisco Confidential
58
Link Protection
Router A Router B Router D Router E
Router X Router C
Router Y
Primary tunnel: A -> B -> D -> E Backup tunnel: B -> C -> D (preprovisioned) Recovery = ~50ms
Presentation_ID
Cisco Confidential
59
Node Protection
Router A Router B Router D Router E Router F
Router X Router C
Router Y
Primary tunnel: A -> B -> D -> E -> F Backup tunnel: B -> C -> E (pre-provisioned) Recovery = ~100ms
Presentation_ID
Cisco Confidential
60
Presentation_ID
Cisco Confidential
61
Aplicao do TE
Requer: Manipular congestionamento na rede Soluo: Aplica MPLS TE no n com congestionamento
Presentation_ID
Cisco Confidential
62
VPN Site A
Presentation_ID
Cisco Confidential
63
Aplicao de 1-Hop
Requer: Soluo: Proteo em caso de falhas Usa Fast Reroute e protege cada n e cada link
VPN Site B
64
VPN Site A
Central Site
Sumrio de MPLS TE
Usual para re-rotear trfego em ambientes congestionados Construir servios no Backbone Construir solues de proteo que utilizam MPLS FRR
Presentation_ID
Cisco Confidential
66
Sumrio
Presentation_ID
Cisco Confidential
67
Aplicaes Managed VPN Services (BGP/MPLS VPNs) Any Transport over MPLS (AToM)
InfraInfraestrutura
InterInter-Area TE
Base Comum
08/2001
Presentation_ID 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential
68
Presentation_ID
Cisco Confidential
69