BGP Add-Paths

44
GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 1 BGP Add-Paths Caminhos Adicionais GTER 35 23 Maio 2013 Eduardo Ascenço Reis <[email protected]> <[email protected]> Equipe PTT.br <[email protected]>

Transcript of BGP Add-Paths

Page 1: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 1

BGP Add-PathsCaminhos Adicionais

GTER 3523 Maio 2013

Eduardo Ascenço Reis

<[email protected]>

<[email protected]>

Equipe PTT.br

<[email protected]>

Page 2: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 2

Resumo

Na atual versão do protocolo de roteamento utilizado entre os Sistemas Autônomos,

o BGP-4, cada roteador calcula o melhor caminho para um determinado prefixo IP (NLRI),

dentre os disponíveis, e apenas este é repassado aos demais roteadores com os quais

possui vizinhança (sessões estabelecidas).

Neste trabalho serão apresentadas algumas propostas que estão em andamento no IETF

para permitir que caminhos adicionais sejam anunciados via BGP, e algumas possíveis

decorrências destas modificações.

Page 3: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 3

Agradecimentos

Ao NIC.br/PTT.br por ceder a janela de uso do laboratório de

roteamento para a implantação da rede de São Paulo (VPLS).

A equipe do PTT.br pelo apoio na preparação do laboratório para o

Experimento desta apresentação, em especial ao:

Ademar Francisco de Almeida

Ailton Soares da Rocha

Page 4: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 4

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Modelo de Referência – Anúncio Somente Best Path

Page 5: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 5

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

?

Caminho A

Caminho B

Caminho C

Modelo de Referência – Anúncio Somente Best Path

Page 6: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 6

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Router Y

Prefixo IP● Caminho A (best)

1

3

Seleção do melhor caminhopara cada Prefixo IP

Apenas o melhor caminhopara cada Prefixo IP é anunciadoPara os vizinhos BGP

ConheçeApenas o

best

Prefixo IPCaminho A

(best)

2

Modelo de Referência – Anúncio Somente Best Path

Page 7: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 7

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Router Y

Prefixo IP● Caminho A (best)

X X

Evento no qual o caminho selecionado (best) torna-se inacessível

?

Prefixo IPCaminho A

(best)

Modelo de Referência – Anúncio Somente Best Path

Page 8: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 8

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP

● Caminho B● Caminho C

WithdrawRetirar

Prefixo IPCaminho A

X X

Router Y

Prefixo IPunreachableinacessível

Router Y NÃO sabe chegar noPrefixo IP

* implicit withdrawDe acordo com a implementação de BGPAs mensagens de retirada e novo entradaDe prefixo podem ser somadas, o que tambémReduz o tempo de convergência

Modelo de Referência – Anúncio Somente Best Path

Page 9: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 9

Router A

Router B

Router C

Prefixo IPRouter

XRouter

YCaminho B

Caminho C

Router X

Prefixo IP

● Caminho B● Caminho C (best)

Prefixo IPCaminho C

(best)

Router Y

Prefixo IP● Caminho C (best)

1

Nova Seleção do melhor caminhopara o Prefixo IP que oscilou

2

Novo melhor caminho para oPrefixo IP que oscilou é anunciado

3

NovaEntrada

best

Modelo de Referência – Anúncio Somente Best Path

Page 10: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 10

Proposta de Caminhos Adicionais (Add-Paths)

Ao invés de enviar apenas a melhor opção de caminho (best)

Enviar também a segunda melhor opção de caminho (backup) ou mesmo

Todas as opções de caminhos conhecidos

BGP – Caminhos Adicionais – Add Paths

Page 11: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 11

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

1

2

3

Seleção do melhor caminhopara cada Prefixo IP

O melhor (best) e os outros caminhospara cada Prefixo IP são anunciadosPara os vizinhos BGP

Conheçeas mesmas

Opções

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Router Y

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Modelo de Referência – BGP Add Paths

Page 12: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 12

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

Router Y

Prefixo IP● Caminho A (best)● Caminho B● Caminho C

X X

Evento no qual o caminho selecionado (best) torna-se inacessível

?

Modelo de Referência – BGP Add Paths

Page 13: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 13

Router A

Router B

Router C

Prefixo IPRouter

XRouter

Y

Caminho A

Caminho B

Caminho C

Router X

Prefixo IP

● Caminho B● Caminho C

Router Y

Prefixo IP

● Caminho B● Caminho C

X X

Evento que o caminho selecionado (best) torna-se inacessível

WithdrawRetirar

Prefixo IPCaminho A

Modelo de Referência – BGP Add Paths

Page 14: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 14

Router A

Router B

Router C

Prefixo IPRouter

XRouter

YCaminho B

Caminho C

Router X

Prefixo IP

● Caminho B● Caminho C (best)

Router Y

Prefixo IP

● Caminho B● Caminho C (best)

1 Nova Seleção do melhor caminhopara o Prefixo IP que oscilou

1 1

Modelo de Referência – BGP Add Paths

Page 15: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 15

Possível resultado imediato do uso de Caminhos Adicionais:

Menor Tempo de Convergência da Rede após Interferência.

Modelo de Referência – BGP Add Paths

Page 16: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 16

AS A

AS B

AS C

Router A

Router B

Router C

AS W

Router X Router Y

BGPTable

RIB

FIB

Adj inPOL

Adj inPOL

Adj inPOL

POL

Adj out

Fluxo

BGPTable

RIB

FIB

Adj inPOL

Modelo de Referência – Roteador com BGP

Page 17: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 17

AS A

AS B

AS C

Router A

Router B

Router C

AS W

Router X Router Y

BGPTable

RIB

FIB

Adj inPOL

Adj inPOL

Adj inPOL

POL

Adj out

Fluxo

BGPTable

RIB

FIB

Adj inPOL

ProcessamentoBGP scanner

MemóriaRIB

MemóriaFIB

Modelo de Referência – Roteador com BGP

Page 18: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 18

http://datatracker.ietf.org/doc/draft-ietf-idr-add-paths/

Advertisement of Multiple Paths in BGP

Draft-ietf-idr-add-paths-08

Abstract

In this document we propose a BGP extension that allows the

advertisement of multiple paths for the same address prefix without

the new paths implicitly replacing any previous ones. The essence of

the extension is that each path is identified by a path identifier in

addition to the address prefix.

IETF – IDR WG - Drafts

Page 19: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 19

3. Extended NLRI Encodings

In order to carry the Path Identifier in an UPDATE message, the existing NLRI encodings are extended by prepending the Path Identifier field, which is of four-octets.

For example, the NLRI encodings specified in [RFC4271, RFC4760] are extended as the following:

+--------------------------------+ | Path Identifier (4 octets) | +--------------------------------+ | Length (1 octet) | +--------------------------------+ | Prefix (variable) | +--------------------------------+

Advertisement of Multiple Paths in BGP

Draft-ietf-idr-add-paths-08

IETF – IDR WG - Drafts

Page 20: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 20

4. ADD-PATH Capability

The ADD-PATH Capability is a new BGP capability [RFC5492]. The Capability Code for this capability is specified in the IANA Considerations section of this document. The Capability Length field of this capability is variable. The Capability Value field consists of one or more of the following tuples:

+------------------------------------------------+ | Address Family Identifier (2 octets) | +------------------------------------------------+ | Subsequent Address Family Identifier (1 octet) | +------------------------------------------------+ | Send/Receive (1 octet) | +------------------------------------------------+

The meaning and use of the fields are as follows: Address Family Identifier (AFI): This field is the same as the one used in [RFC4760]. Subsequent Address Family Identifier (SAFI): This field is the same as the one used in [RFC4760]. Send/Receive: This field indicates whether the sender is (a) willing to receive multiple paths from its peer (value 1), (b) would like to send multiple paths to its peer (value 2), or (c) both (value 3) for the <AFI, SAFI>.

Advertisement of Multiple Paths in BGP

Draft-ietf-idr-add-paths-08

IETF – IDR WG - Drafts

Page 21: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 21

6. Applications

The BGP extension specified in this document can be used by a BGP speaker to advertise multiple paths in certain applications. The availability of the additional paths can help reduce or eliminate persistent route oscillations [RFC3345]. It can also help with optimal routing and routing convergence in a network. The applications are detailed in separate documents.

7. Deployment Considerations

The extension proposed in this document provides a mechanism for a BGP speaker to advertise multiple paths over a BGP session. Care needs to be taken in its deployment to ensure consistent routing and forwarding in a network, the details of which will be described in separate application documents.

8. IANA Considerations

IANA has assigned capability number 69 for the ADD-PATH Capability described in this document. This registration is in the BGP Capability Codes registry.

Advertisement of Multiple Paths in BGP

Draft-ietf-idr-add-paths-08

IETF – IDR WG - Drafts

Page 22: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 22

http://datatracker.ietf.org/doc/draft-ietf-idr-add-paths-guidelines/

Best Practices for Advertisement of Multiple Paths in IBGP

draft-ietf-idr-add-paths-guidelines-04

Abstract

Add-Paths is a BGP enhancement that allows a BGP router to advertise

multiple distinct paths for the same prefix/NLRI. This provides a

number of potential benefits, including reduced routing churn, faster

convergence and better loadsharing.

This document provides recommendations to implementers of Add-Paths

so that network operators have the tools needed to address their

specific applications and to manage the scalability impact of Add-

Paths. A router implementing Add-Paths may learn many paths for a

prefix and must decide which of these to advertise to peers. This

document analyses different algorithms for making this selection and

provides recommendations based on the target application.

IETF – IDR WG - Drafts

Page 23: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 23

Table of Contents

1. Introduction...................................................4 2. Terminology....................................................4 3. Add-Paths Applications.........................................5 3.1. Fast Connectivity Restoration.............................5 3.2. Load Balancing............................................7 3.3. Churn Reduction...........................................7 3.4. Suppression of MED-Related Persistent Route Oscillation...7 4. Implementation Guidelines......................................8 4.1. Capability Negotiation....................................8 4.2. Receiving Multiple Paths..................................9 4.3. Advertising Multiple Paths................................9 4.3.1. Path Selection Modes................................11 4.3.1.1. Advertise All Paths............................11 4.3.1.2. Advertise N Paths..............................12 4.3.1.3. Advertise All AS-Wide Best Paths...............12 4.3.1.4. Advertise ALL AS-Wide Best and Next-Best Paths (Double AS Wide)........................................13 4.3.2. Derived Modes from Bounding the Number of Advertised Paths......................................................14 5. Deployment Considerations.....................................14 5.1. Introducing Add-Paths into an Existing Network...........14 5.2. Scalability Considerations...............................17 5.3. Routing Consistency Considerations.......................17 5.4. Consistency between Advertised Paths and Forwarding Paths18 5.5. Routing Churn............................................19

Best Practices for Advertisement of Multiple Paths in IBGP

draft-ietf-idr-add-paths-guidelines-04

IETF – IDR WG - Drafts

Page 24: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 24

======== ===================== = +---+ +---+ +---+ = |RTR|________|RTR| |RTR| = | E | | A | | C | = +---+Path A->+---+ AS1 +---+ = = = \ / = = = = \ / = = = = \ / = = = = \ / = = AS3 = = +---+ = = = = |RR | = = = = | 1 | = = = = +---+ = = = = / \ = = = = / \ = = = = / \ = = = = / \ = = +---+Path B->+---+ +---+ = |RTR| ______|RTR| |RTR| = | F | | B | | D | = +---+ +---+ +---+ ======== =====================

Figure 1: Example Topology

Best Practices for Advertisement of Multiple Paths in IBGP

draft-ietf-idr-add-paths-guidelines-04

IETF – IDR WG - Drafts

Page 25: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 25

http://datatracker.ietf.org/doc/draft-pmohapat-idr-fast-conn-restore/

Fast Connectivity Restoration Using BGP Add-pathDraft-pmohapat-idr-fast-conn-restore-03

Abstract A BGP route defines an association of an address prefix with an "exit point" from the current Autonomous System (AS). If the exit point becomes unreachable due to a failure, the route becomes invalid. This usually triggers an exchange of BGP control messages after which a new BGP route for the given prefix is installed. However, connectivity can be restored more quickly if the router maintains precomputed BGP backup routes. It can then switch to a backup route immediately upon learning that an exit point is unreachable, without needing to wait for the BGP control messages exchange. This document specifies the procedures to be used by BGP to maintain and distribute the precomputed backup routes. Maintaining these additional routes is also useful in promoting load balancing, performing maintenance without causing traffic loss, and in reducing churn in the BGP control plane.

IETF – IDR WG - Drafts

Page 26: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 26

Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide,Release 4.2.x

Implementing BGP on Cisco ASR 9000 Series Router

http://www.cisco.com/en/US/docs/routers/asr9000/software/asr9k_r4.2/routing/configuration/guide/b_routing_cg42asr9k_chapter_00.html#task_6510DCF00831458692D0AC4285E08FD3

Advanced Routing Resiliencyhttp://www.cisco.com/web/SK/expo2012/pdf/advanced_routing_resilliency_josef_ungerman_cisco.pdf

Cisco - Referência BGP Add-Paths

Page 27: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 27

!route-policy add_path_policy if community matches-any (*) then set path-selection all advertise else pass endifend-policy!router bgp xxxxx! address-family ipv4 unicast additional-paths receive additional-paths send additional-paths selection route-policy add_path_policy

!

Configuring BGP Additional Paths: Example - TAC engineer IOS XR group

This is a sample configuration for enabling BGP Additional Paths send, receive,and selection capabilities:

Cisco - Referência BGP Add-Paths

Page 28: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 28

!router bgp xxxxx address-family ipv4 unicast advertise best-external !!

Configuring BGP Additional Paths: Example - TAC engineer IOS XR group

Enable BGP peers to advertise best-external

Cisco - Referência BGP Add-Paths

Page 29: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 29

!route-policy backup set path-selection backup 1 install multipath-protect advertiseend-policy!router bgp xxxxxx address-family ipv4 unicast additional-paths selection route-policy backup !!end

Configuring BGP Additional Paths: Example - TAC engineer IOS XR group

Tell BGP to install a backup path in the FIB table

Cisco - Referência BGP Add-Paths

Page 30: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 30

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Diagrama Lógico - Topologia

AS 65000Prefixo IP 192.168.0.0/16

Q2PC/LinuxQuagga

Q1PC/LinuxQuagga

AS 65500

R4Cisco ASR 1001

1001-B

R3Cisco ASR 1001

1001-A

R2Cisco ASR 9001

9001-ARoute Reflector

R1Cisco ASR 9001

9001-B

Page 31: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 31

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Diagrama Lógico – Endereçamento IP

AS 65000Prefixo IP 192.168.0.0/16

Q2PC/LinuxQuagga

Q1PC/LinuxQuagga

AS 65500

R4Cisco ASR 1001

1001-B

R3Cisco ASR 1001

1001-A

R2Cisco ASR 9001

9001-ARoute Reflector

R1Cisco ASR 9001

9001-B

192.168.246.0/24

192.168.111.0/24

172.24.24.0/24

172.23.23.0/24

172.20.20.0/24

.1

.2

.1

.1.2

.2

Page 32: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 32

RP/0/RSP0/CPU0:9001-A#show version Thu May 23 16:09:55.157 UTC

Cisco IOS XR Software, Version 4.2.3[Default]Copyright (c) 2012 by Cisco Systems, Inc.

ROM: System Bootstrap, Version 1.29(20120327:203546) [ASR9K ROMMON],

9001-A uptime is 5 days, 11 hours, 53 minutesSystem image file is "bootflash:disk0/asr9k-os-mbi-4.2.3/0x100000/mbiasr9k-rp.vm"

cisco ASR9K Series (P4040) processor with 8388608K bytes of memory.P4040 processor at 1500MHz, Revision 2.0ASR-9001 Chassis

2 Management Ethernet12 TenGigE12 DWDM controller(s)12 WANPHY controller(s)219k bytes of non-volatile configuration memory.2940M bytes of hard disk.4014064k bytes of disk0: (Sector size 512 bytes).

Configuration register on node 0/RSP0/CPU0 is 0x2102(...)

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 33: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 33

RP/0/RSP0/CPU0:9001-A#show running-config router bgpThu May 23 15:50:07.464 UTCrouter bgp 65500 bgp router-id 172.20.20.2 bgp cluster-id 172.20.20.2 address-family ipv4 unicast additional-paths receive additional-paths send advertise best-external additional-paths selection route-policy backup ! neighbor 172.20.20.1 remote-as 65500 address-family ipv4 unicast route-policy pass-all in route-reflector-client route-policy pass-all out ! !(...)

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 34: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 34

RP/0/RSP0/CPU0:9001-A#show bgp summary Thu May 23 15:53:15.447 UTCBGP router identifier 172.20.20.2, local AS number 65500BGP generic scan interval 60 secsBGP table state: ActiveTable ID: 0xe0000000 RD version: 39BGP main routing table version 39BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVerSpeaker 39 39 39 39 39 39

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd172.20.20.1 0 65500 3439 3487 39 0 0 00:06:24 0172.23.23.2 0 65500 3912 3547 39 0 0 00:06:48 1172.24.24.2 0 65500 3901 3557 39 0 0 00:06:48 1

RP/0/RSP0/CPU0:9001-A#

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 35: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 35

RP/0/RSP0/CPU0:9001-A#show bgp Thu May 23 15:54:48.432 UTCBGP router identifier 172.20.20.2, local AS number 65500BGP generic scan interval 60 secsBGP table state: ActiveTable ID: 0xe0000000 RD version: 39BGP main routing table version 39BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best i - internal, r RIB-failure, S staleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*>i192.168.0.0/16 172.23.23.2 0 100 0 65000 i* i 172.24.24.2 0 100 0 65000 i

Processed 1 prefixes, 2 pathsRP/0/RSP0/CPU0:9001-A#

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 36: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 36

RP/0/RSP0/CPU0:9001-A#show bgp 192.168.0.0Thu May 23 15:55:48.222 UTCBGP routing table entry for 192.168.0.0/16Versions: Process bRIB/RIB SendTblVer Speaker 39 39Last Modified: May 23 15:46:27.550 for 00:09:20Paths: (2 available, best #1) Advertised to update-groups (with more than one peer): 0.3 Advertised to peers (in unique update groups): 172.20.20.1 Path #1: Received by speaker 0 Advertised to update-groups (with more than one peer): 0.3 Advertised to peers (in unique update groups): 172.20.20.1 65000, (Received from a RR-client) 172.23.23.2 from 172.23.23.2 (172.23.23.2) Origin IGP, metric 0, localpref 100, valid, internal, best, group-best Received Path ID 0, Local Path ID 1, version 39 Path #2: Received by speaker 0 Advertised to peers (in unique update groups): 172.20.20.1 65000, (Received from a RR-client) 172.24.24.2 from 172.24.24.2 (172.24.24.2) Origin IGP, metric 0, localpref 100, valid, internal, backup, add-path Received Path ID 0, Local Path ID 2, version 39RP/0/RSP0/CPU0:9001-A#

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 37: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 37

RP/0/RSP0/CPU0:9001-A#show bgp neighbor 172.20.20.1Thu May 23 15:59:04.137 UTC

BGP neighbor is 172.20.20.1 Remote AS 65500, local AS 65500, internal link Remote router ID 172.20.20.1 Cluster ID 172.20.20.2(…) For Address Family: IPv4 Unicast BGP neighbor version 39 Update group: 0.4 Filter-group: 0.4 No Refresh request being processed Route-Reflector Client AF-dependent capabilities: Additional-paths Send: advertised and received Additional-paths Receive: advertised and received Route refresh request: received 0, sent 0 Policy for incoming advertisements is pass-all Policy for outgoing advertisements is pass-all 0 accepted prefixes, 0 are bestpaths Cumulative no. of prefixes denied: 0. Prefix advertised 2, suppressed 0, withdrawn 0 Maximum prefixes allowed 1048576 Threshold for warning message 75%, restart interval 0 min AIGP is enabled An EoR was not received during read-only mode Last ack version 39, Last synced ack version 0 Outstanding version objects: current 0, max 4 Additional-paths operation: Send and Receive(...)

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 38: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 38

RP/0/RSP0/CPU0:9001-B#show bgp summary Thu May 23 16:02:46.114 UTCBGP router identifier 172.20.20.1, local AS number 65500BGP generic scan interval 60 secsBGP table state: ActiveTable ID: 0xe0000000 RD version: 29BGP main routing table version 29BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVerSpeaker 29 29 29 29 29 29

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd172.20.20.2 0 65500 2444 2420 29 0 0 00:16:08 2

RP/0/RSP0/CPU0:9001-B#

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 39: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 39

RP/0/RSP0/CPU0:9001-B#show bgp 192.168.0.0Thu May 23 16:03:34.957 UTCBGP routing table entry for 192.168.0.0/16Versions: Process bRIB/RIB SendTblVer Speaker 29 29Last Modified: May 23 15:46:42.540 for 00:16:52Paths: (2 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer 65000 172.23.23.2 (metric 2) from 172.20.20.2 (172.23.23.2) Origin IGP, metric 0, localpref 100, valid, internal, best, group-best Received Path ID 1, Local Path ID 1, version 29 Originator: 172.23.23.2, Cluster list: 172.20.20.2 Path #2: Received by speaker 0 Not advertised to any peer 65000 172.24.24.2 (metric 2) from 172.20.20.2 (172.24.24.2) Origin IGP, metric 0, localpref 100, valid, internal Received Path ID 2, Local Path ID 0, version 0 Originator: 172.24.24.2, Cluster list: 172.20.20.2RP/0/RSP0/CPU0:9001-B#

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 40: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 40

NIC.br/PTT.br – Laboratório – Experimento BGP Add-Paths

Page 41: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 41

http://datatracker.ietf.org/wg/idr/

e.g. RFC 4271

A Border Gateway Protocol 4 (BGP-4)

http://datatracker.ietf.org/doc/rfc4271/

IETF - Inter-Domain Routing (idr)

Page 42: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 42

The Internet Engineering Task Force (IETF)

http://www.ietf.org/

The goal of the IETF is to make the Internet work better.

The mission of the IETF is to make the Internet work better by producing high quality,relevant technical documents that influence the way people design, use, and manage the Internet.

http://datatracker.ietf.org/wg/

Active IETF Working Groups

IETF Working Groups (WGs) are the primary mechanism for development of IETFspecifications and guidelines, many of which are intended to be standards or recommendations.

Page 43: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 43

ISOC - Fellowship to the IETF Programme

http://www.internetsociety.org/

Home » What We Do » Leadership Programmes »

IETF and OIS Programmes » Fellowship: IETF

The Internet Society Fellowship to the Internet Engineering Task Force (IETF) Programme

The Internet Engineering Task Force (IETF) is the world’s premier open Internet

standards-development body. The Internet Society Fellowship to the IETF is available to

technology professionals, advanced IT students, and other qualified individuals from

developing and emerging economies.

Fellows to the IETF attend an IETF meeting where they are paired with an experienced

mentor and are expected to make a positive contribution to IETF work.

Page 44: BGP Add-Paths

GTER35 23/05/2013 - BGP Add-Paths - Caminhos Adicionais - Eduardo Ascenço Reis <[email protected]> - http://ptt.br/ 44

Obrigado & Contatos

Eduardo Ascenço Reis

<[email protected]>

<[email protected]>

Equipe PTT.br

<[email protected]>

http://ptt.br/