Gerando Rotas BGP. Tutorial BGP - GTER



Similar documents
Basic Configuration Examples for BGP

Monitoring and Troubleshooting BGP Neighbor Sessions

JUNOS Secure BGP Template

Network Configuration Example

APNIC elearning: BGP Attributes

Tutorial: Options for Blackhole and Discard Routing. Joseph M. Soricelli Wayne Gustavus NANOG 32, Reston, Virginia

JNCIE Juniper Networks Certified Internet Expert

Network Configuration Example

CLOS IP FABRICS WITH QFX5100 SWITCHES

Exterior Gateway Protocols (BGP)

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

DAY ONE: ADVANCED IPV6 CONFIGURATION

Lecture 18: Border Gateway Protocol"

Routing Protocol - BGP

BGP Best Path Selection Algorithm

Application Note: Securing BGP on Juniper Routers

BGP Router Startup Message Flow

Chapter 33 BGP Configuration Guidelines

Advanced BGP Policy. Advanced Topics

Application Note: Securing BGP on Juniper Routers

Network Configuration Example

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Load balancing and traffic control in BGP

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

BGP Attributes and Path Selection

Redes Border Gateway Protocol (BGP): Exercícios Redes de Longa Distância e Alta Velocidade. Prof. Dr. Ruy de Oliveira IFMT

Anycast Rou,ng: Local Delivery. Tom Daly, CTO h<p://dyn.com Up,me is the Bo<om Line

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

Uli Bornhauser - Peter Martini - Martin Horneffer Scalability of ibgp Path Diversity Concepts

basic BGP in Huawei CLI

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Understanding Route Redistribution & Filtering

Border Gateway Protocol BGP4 (2)

Border Gateway Protocol (BGP)

In this activity, you will complete the following objectives.

Load balancing and traffic control in BGP

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

CS551 External v.s. Internal BGP

Understanding Route Aggregation in BGP

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

How To Understand Bg

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

Cisco To Juniper. Thomas Mangin Exa Networks LINX 51

JNCIA-Junos Study Guide Part 2

SRX High Availability Design Guide

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

Monitoring Network Traffic Using sflow Technology on EX Series Ethernet Switches

MONITORING NETWORK TRAFFIC USING sflow TECHNOLOGY ON EX SERIES ETHERNET SWITCHES

Inter-domain Routing. Outline. Border Gateway Protocol

E : Internet Routing

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

BGP4 Case Studies/Tutorial

Understanding Virtual Router and Virtual Systems

Internet Routing Protocols Lecture 04 BGP Continued

Module 12 Multihoming to the Same ISP

Implementation Guide NEW NETWORK PLATFORM ARCHITECTURE: WAN. Internet Edge

H3C large-scale network routing

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

Solution Guide. Software as a Service. Modified: Copyright 2015, Juniper Networks, Inc.

HP Networking BGP and MPLS technology training

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

Based on Computer Networking, 4 th Edition by Kurose and Ross

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Internet inter-as routing: BGP

BGP Filtering with RouterOS

Using the Border Gateway Protocol for Interdomain Routing

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

Interdomain Routing. Outline

BGP Link Bandwidth. Finding Feature Information. Contents

DD2491 p MPLS/BGP VPNs. Olof Hagsand KTH CSC

pmacct: introducing BGP natively into a NetFlow/sFlow collector

DDoS Mitigation Techniques

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Application Note. Failover through BGP route health injection

Simple Multihoming. ISP/IXP Workshops

Network Configuration Example

Internet inter-as routing: BGP

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

BGP1 Multihoming and Traffic Engineering

Juniper Networks EVPN Implementation for Next-Generation Data Center Architectures

Junos OS. MPLS Network Operations Guide. Published: Copyright 2012, Juniper Networks, Inc.

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

Testing Juniper Networks M40 Router MPLS Interoperability with Cisco Systems 7513 and Routers

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Routing Protocols (RIP, OSPF, BGP)

Analyzing Capabilities of Commercial and Open-Source Routers to Implement Atomic BGP

Configuring BGP. Cisco s BGP Implementation

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

The benefits of BGP for every service provider

Introduction Inter-AS L3VPN

Transcription:

Gerando Rotas BGP 1

BGP Gerando rotas internas BGP 192.168.1.0/24 Injetar agregado 192.168.0.0/21 192.168.2.0/24 10.0.0.4 mexico 10.0.0.2 OSPF AS 65000 10.0.0.5 chile PONTO DE OBSERVAÇÃO 192.168.8.0/24 brasil 192.168.9.0/24 Injetar rotas estáticas www.juniper.net 2

Gerando rotas BGP Agregado Aloca blocos por equipamento Reduz número de rotas Rota estável Estáticas Caso não seja possível o agregado Procedimento muito utilizado www.juniper.net 3

Configuração Básica ibgp mexico bgp { group ibgp { type internal; local-address 10.0.0.4; neighbor 10.0.0.5; neighbor 10.0.0.2; routing-options { autonomous-system 65000; chile bgp { group ibgp { type internal; local-address 10.0.0.5; neighbor 10.0.0.4; neighbor 10.0.0.2; routing-options { autonomous-system 65000; brasil bgp { group ibgp { type internal; local-address 10.0.0.2; neighbor 10.0.0.4; neighbor 10.0.0.5; routing-options { autonomous-system 65000; www.juniper.net 4

Injeção de um agregado no ibgp 192.168.1.0/24 192.168.2.0/24 mexico Injetar agregado 192.168.0.0/21 routing-options { /* rotas estáticas */ static { route 192.168.1.0/24 next-hop 10.1.1.2; route 192.168.2.0/24 next-hop 10.1.2.2; /* rota agregada */ aggregate { route 192.168.0.0/21; policy-statement distribui-agregado { term agregado { from protocol aggregate; then accept; bgp { group ibgp { type internal; local-address 10.0.0.4; export distribui-agregado; neighbor 10.0.0.5; neighbor 10.0.0.2; www.juniper.net 5

Injeção de rotas individuais no ibgp routing-options { /* rotas estaticas */ static { route 192.168.8.0/24 next-hop 10.1.3.2; route 192.168.9.0/24 next-hop 10.1.4.2; 192.168.8.0/24 192.168.9.0/24 brasil Injetar rotas estáticas policy-statement rotas-ibgp { term rotas-especificas { from { protocol static; route-filter 192.168.8.0/21 orlonger; then { next-hop self; accept; bgp { group ibgp { type internal; local-address 10.0.0.2; export rotas-ibgp; neighbor 10.0.0.4; neighbor 10.0.0.5; www.juniper.net 6

Visualização das rotas 10.0.0.5 chile PONTO DE OBSERVAÇÃO user@chile# run show route protocol bgp inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.0/21 *[BGP/170] 00:36:03, localpref 100, from 10.0.0.4 AS path: I > to 10.0.5.4 via fe-0/0/1.0 192.168.8.0/24 *[BGP/170] 00:36:13, localpref 100, from 10.0.0.2 AS path: I > to 10.0.2.2 via fe-0/0/2.0 192.168.9.0/24 *[BGP/170] 00:36:13, localpref 100, from 10.0.0.2 AS path: I > to 10.0.2.2 via fe-0/0/2.0 www.juniper.net 7

Assinante Single Homed 8

Assinante Single Homed 192.168.1.0/24 192.168.2.0/24 10.0.0.4 10.0.0.5 10.0.6.5 10.0.0.3 mexico 10.0.0.2 OSPF AS 65000 chile 10.0.6.3 argentina AS 65001 192.168.8.0/24 192.168.9.0/24 brasil Simula Rotas Inet (estáticas) 11.0.1.0/24 11.0.2.0/24 11.0.3.0/24 11.0.4.0/24 11.0.5.0/24 11.0.6.0/24 11.0.7.0/24 www.juniper.net 9

Configuração ebgp chile bgp { group ebgp-argentina { type external; export anuncio-para-inet; peer-as 65001; neighbor 10.0.6.3; policy-statement anuncio-para-inet { term bloco-local { from { route-filter 192.168.0.0/20 exact; then accept; term rejeita { then reject; argentina bgp { group ebgp-chile { type external; export simula-inet; peer-as 65000; neighbor 10.0.6.5; policy-statement simula-inet { term distribui-estatica { from protocol static; then accept; routing-options { autonomous-system 65001; 10.0.0.5 chile 10.0.6.5 10.0.0.3 argentina AS 65001 10.0.6.3 www.juniper.net 10 10

Resultado no AS 65000 user@chile# run show route protocol bgp terse inet.0: 24 destinations, 24 routes (24 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 11.0.1.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.2.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.3.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.4.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.5.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.6.0/24 B 170 100 0 >10.0.6.3 65001 I * 11.0.7.0/24 B 170 100 0 >10.0.6.3 65001 I * 192.168.0.0/21 B 170 100 >10.0.5.4 I * 192.168.8.0/24 B 170 100 >10.0.2.2 I * 192.168.9.0/24 B 170 100 >10.0.2.2 I user@mexico# run show route protocol bgp terse inet.0: 27 destinations, 27 routes (20 active, 0 holddown, 7 hidden) + = Active Route, - = Last Active, * = Both??? A Destination P Prf Metric 1 Metric 2 Next hop AS path * 192.168.8.0/24 B 170 100 >10.0.3.2 I * 192.168.9.0/24 B 170 100 >10.0.3.2 I www.juniper.net 11 11

Next-hop Self bgp { group ibgp { type internal; export next-hop-self; neighbor 10.0.0.4; policy-statement next-hop-self { term muda-next-hop { from protocol bgp; then { next-hop self; mexico 10.0.0.5 chile 10.0.6.5 10.0.0.3 argentina AS 65001 10.0.6.3 user@mexico# run show route protocol bgp terse inet.0: 27 destinations, 27 routes (27 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 11.0.1.0/24 B 170 100 0 >10.0.5.5 65001 I * 11.0.2.0/24 B 170 100 0 >10.0.5.5 65001 I... www.juniper.net 12 12

Assinante Multi Homed 13

Assinante Multi Homed Anuncia bloco inteiro 192.168.0.0/20 mexico Bloco 192.168.0.0/20 OSPF AS 65000 chile AS 65002 argentina AS 65001 brasil Anuncia bloco inteiro 192.168.0.0/20 Simula Rotas Inet (estáticas) 11.0.1.0/24 11.0.2.0/24 11.0.3.0/24 11.0.4.0/24 11.0.5.0/24 11.0.6.0/24 11.0.7.0/24 www.juniper.net 14 14

Sem balanceamento de carga user@chile# run show route 192.168/16 extensive inet.0: 17 destinations, 18 routes (17 active, 0 holddown, 0 hidden) 192.168.0.0/20 (2 entries, 1 announced) Path 192.168.0.0 from 10.0.2.2 Vector len 4. Val: 0 1 *BGP Preference: 170/-101 Source: 10.0.2.2 Next hop: 10.0.2.2 via fe-0/0/2.0, selected State: <Active Ext> Local AS: 65002 Peer AS: 65000 Age: 1:15 Metric: 0 Task: BGP_65000.10.0.2.2+4812 Announcement bits (2): 0-KRT 1-BGP.0.0.0.0+179 AS path: 65000 I Localpref: 100 Router ID: 10.0.0.2 BGP Preference: 170/-101 Source: 10.0.5.4 Next hop: 10.0.5.4 via fe-0/0/1.0, selected State: <NotBest Ext> Inactive reason: Router ID Local AS: 65002 Peer AS: 65000 Age: 1:03 Metric: 0 Task: BGP_65000.10.0.5.4+179 AS path: 65000 I Localpref: 100 Router ID: 10.0.0.4 www.juniper.net 15 15

Uma Alternativa de Balanceamento de Carga Anuncia 192.168.8.0/21 e 192.168.0.0/20 mexico Bloco 192.168.0.0/20 OSPF AS 65000 chile AS 65002 argentina AS 65001 brasil Anuncia 192.168.0.0/21 e 192.168.0.0/20 Prefixos mais específicos são preferenciais ~50% do tráfego em cada enlace Redundância mantida www.juniper.net 16 16

Com balanceamento de carga user@chile# run show route 192.168/16 inet.0: 19 destinations, 20 routes (19 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.0/20 *[BGP/170] 00:25:05, MED 0, localpref 100 AS path: 65000 I > to 10.0.2.2 via fe-0/0/2.0 [BGP/170] 00:24:53, MED 0, localpref 100 AS path: 65000 I > to 10.0.5.4 via fe-0/0/1.0 192.168.0.0/21 *[BGP/170] 00:01:23, MED 0, localpref 100 AS path: 65000 I > to 10.0.2.2 via fe-0/0/2.0 192.168.8.0/21 *[BGP/170] 00:00:21, MED 0, localpref 100 AS path: 65000 I > to 10.0.5.4 via fe-0/0/1.0 Faz sentido para o upstream provider Não faz sentido para ASs além do upstream Gera muitas rotas desnecessárias www.juniper.net 17 17

Community NO_EXPORT Anuncia 192.168.8.0/21 e 192.168.0.0/20 no-export 192.168.0.0/20 192.168.0.0/21 192.168.8.0/21 mexico Bloco 192.168.0.0/20 OSPF AS 65000 chile AS 65002 argentina AS 65001 brasil Anuncia 192.168.0.0/21 e 192.168.0.0/20 no-export AS 65002 utiliza os prefixo porém Não os repassa adiante www.juniper.net 18 18

Configuração no-export policy-statement anuncio-inet { term bloco-local { from { route-filter 192.168.0.0/20 exact; then accept; term especifico { from { route-filter 192.168.0.0/21 exact; then { community set bloqueia-especifica; accept; term rejeita-resto { then reject; community bloqueia-especifica members no-export; bgp { group ebgp-chile { type external; export anuncio-inet; peer-as 65002; neighbor 10.0.2.5; brasil Anuncia 192.168.0.0/21 e 192.168.0.0/20 no-export www.juniper.net 19 19

Rota com no-export user@chile# run show route 192/8 extensive community no-export inet.0: 19 destinations, 20 routes (19 active, 0 holddown, 0 hidden) 192.168.0.0/21 (1 entry, 1 announced) TSI: KRT in-kernel 192.168.0.0/21 -> {10.0.2.2 *BGP Preference: 170/-101 Source: 10.0.2.2 Next hop: 10.0.2.2 via fxp2.0, selected State: <Active Ext> Local AS: 65002 Peer AS: 65000 Age: 3:50 Metric: 0 Task: BGP_65000.10.0.2.2+4812 Announcement bits (1): 0-KRT AS path: 65000 I Communities: no-export Localpref: 100 Router ID: 10.0.0.2 192.168.8.0/21 (1 entry, 1 announced)... www.juniper.net 20 20

Multi Homed com Múltiplos Provedores 21

Multihomed com múltiplos provedores mexico Bloco 192.168.0.0/20 OSPF AS 65000 chile AS 65002 Simula Rotas Inet (estáticas) 21.0.1.0/24 21.0.2.0/24 21.0.3.0/24 21.0.4.0/24 21.0.5.0/24 21.0.6.0/24 21.0.7.0/24 brasil argentina AS 65001 Simula Rotas Inet (estáticas) 11.0.1.0/24 11.0.2.0/24 11.0.3.0/24 11.0.4.0/24 11.0.5.0/24 11.0.6.0/24 11.0.7.0/24 www.juniper.net 22 22

Função de Trânsito mexico? chile brasil argentina 11.0.1.0/24 11.0.2.0/24 11.0.3.0/24 11.0.4.0/24 11.0.5.0/24 11.0.6.0/24 11.0.7.0/24 user@mexico# run show route advertising-protocol bgp 10.0.5.5 (CHILE) inet.0: 28 destinations, 35 routes (28 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path 11.0.1.0/24 Self 65001 I 11.0.2.0/24 Self 65001 I 11.0.3.0/24 Self 65001 I 11.0.4.0/24 Self 65001 I 11.0.5.0/24 Self 65001 I 11.0.6.0/24 Self 65001 I 11.0.7.0/24 Self 65001 I 192.168.0.0/20 Self 0 I www.juniper.net 23 23

Bloqueando trânsito com communities brasil bgp { group ebgp-argentina { type external; import recebe-inet; export anuncio-inet; peer-as 65001; neighbor 10.0.1.3; policy-statement recebe-inet { term unico { then { community add transito; community transito members 65000:120; 11.0.x.0/24 (65000:120) mexico brasil 11.0.x.0/24 11.0.x.0/24 mexico bgp { group ebgp-chile { import recebe-inet; export anuncio-inet; peer-as 65002; policy-statement anuncio-inet { term bloco-local { from { route-filter 192.168.0.0/20 exact; then accept; term bloqueia-transito { from community transito; then reject; community transito members 65000:120; www.juniper.net 24 24

Saída preferencial Local Pref mexico Bloco 192.168.0.0/20 Enlace mais barato ou de maior velocidade LOCAL-PREF 120 Tráfego OSPF AS 65000 chile AS 65002 Simula Rotas Inet (estáticas) 21.0.1.0/24 21.0.2.0/24 21.0.3.0/24 21.0.4.0/24 21.0.5.0/24 21.0.6.0/24 21.0.7.0/24 brasil Enlace Alternativo LOCAL-PREF 100 argentina AS 65001 Simula Rotas Inet (estáticas) 11.0.1.0/24 11.0.2.0/24 11.0.3.0/24 11.0.4.0/24 11.0.5.0/24 11.0.6.0/24 11.0.7.0/24 www.juniper.net 25 25

Impacto do Local-Pref user@brasil# run show route protocol bgp inet.0: 26 destinations, 40 routes (26 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 11.0.1.0/24 *[BGP/170] 00:05:44, localpref 120, from 10.0.0.4 AS path: 65002 65001 I > to 10.0.3.4 via fe-0/0/3.0 [BGP/170] 02:04:45, MED 0, localpref 100 AS path: 65001 I > to 10.0.1.3 via fe-0/0/1.0... 21.0.1.0/24 *[BGP/170] 00:05:44, MED 0, localpref 120, from 10.0.0.4 AS path: 65002 I > to 10.0.3.4 via fe-0/0/3.0 [BGP/170] 02:04:45, localpref 100 AS path: 65001 65002 I > to 10.0.1.3 via fe-0/0/1.0... www.juniper.net 26 26

Obrigado 27