You are on page 1of 10

Definitions

• Transit – carrying traffic across a network,


usually for a fee
traffic and prefixes originating from one AS are
carried across an intermediate AS to reach
their destination AS
BGP and the Internet
• Exchange Points – common interconnect
Transit and Internet Exchange Points location where several ASes exchange
routing information and traffic

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 1 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 2

ISP Transit Issues ISP Transit Issues

• Only announce default to your BGP


customers unless they need more prefixes
Many mistakes are made on the Internet
• Only accept the prefixes which your
customer is entitled to originate today due to incomplete understanding of
how to configure BGP for transit
• If your customer hasn’t told you he is
providing transit, don’t accept anything
else

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 3 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 4

ISP Transit

• AS130 and AS100 are stub/customer ASes


of AS120
they may have their own peerings with other
ASes
ISP Transit Provider
minimal routing table desired
Simple Example minimum complexity required

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 5 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 6

1
ISP Transit ISP Transit

• Router A Configuration
router bgp 130

AS 120 A AS 130 network 221.10.0.0 mask 255.255.224.0


B neighbor 222.222.10.2 remote- as 120
neighbor 222.222.10.2 prefix- list upstream out
C
neighbor 222.222.10.2 prefix- list default i n
D
!
AS 100 ip prefix- list default permit 0.0.0.0/0
ip prefix- list upstream permit 221.10.0.0/19
!
• AS120 is transit provider between AS130 and
ip route 221.10.0.0 255.255.224.0 null0
AS100
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 7 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 8

ISP Transit ISP Transit

• Router B Configuration • Router C Configuration


router bgp 120 router bgp 120
neighbor 222.222.10.1 remote-as 130 neighbor 222.222.20.1 remote-as 100
neighbor 222.222.10.1 default-originate neighbor 222.222.20.1 default-originate
neighbor 222.222.10.1 prefix-list Customer130 in neighbor 222.222.20.1 prefix-list Customer100 in
neighbor 222.222.10.1 prefix-list default out neighbor 222.222.20.1 prefix-list default out
! !
ip prefix-list Customer130 permit 221.10.0.0/19 ip prefix-list Customer100 permit 219.0.0.0/19
ip prefix-list default permit 0.0.0.0/0 ip prefix-list default permit 0.0.0.0/0

• Router B announces default to Router A, only • Router C announces default to Router D, only
accepts customer /19 accepts customer /19
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 9 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 10

ISP Transit ISP Transit

• Router D Configuration
router bgp 100
• This is simple case:
network 219.0.0.0 mask 255.255.224.0 if AS130 or AS100 get another address block, it
neighbor 222.222.20.2 remote- as 120 requires AS120 and their own filters to be
neighbor 222.222.20.2 prefix- list upstream out changed
neighbor 222.222.20.2 prefix- list default i n some ISP transit provider are better skilled at doing
! this than others!
ip prefix- list default permit 0.0.0.0/0 May not scale if they are frequently adding new
ip prefix- list upstream permit 219.0.0.0/19 prefixes
!
ip route 219.0.0.0 255.255.224.0 null0

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 11 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 12

2
ISP Transit

• AS130 and AS100 are stub/customer ASes


of AS120
AS120 provides transit between AS130 and
AS100 only
ISP Transit Provider
AS120 does not provide Internet connectivity
More complex Example 1 to AS130

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 13 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 14

ISP Transit ISP Transit

• Router A Configuration
router bgp 130
AS 120 A AS 130
B network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.2 remote- as 120
C neighbor 222.222.10.2 prefix- list upstream out

D neighbor 222.222.10.2 prefix- list rfc1918 -dsua i n

AS 100 !
ip prefix- list upstream permit 221.10.0.0/19
!
• AS120 is transit provider between AS130 and ip route 221.10.0.0 255.255.224.0 null0
AS100
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 15 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 16

ISP Transit ISP Transit

• Router B Configuration • Router C Configuration


router bgp 120 router bgp 120
neighbor 222.222.10.1 remote-as 130 neighbor 222.222.20.1 remote-as 100
neighbor 222.222.10.1 prefix-list Customer130 in
neighbor 222.222.20.1 default-originate
neighbor 222.222.10.1 prefix-list rfc1918-sua out
neighbor 222.222.20.1 prefix-list Customer100 in
neighbor 222.222.10.1 filter-list 15 out
neighbor 222.222.20.1 prefix-list default out
!
!
ip as-path access-list 15 permit ^$
ip prefix-list Customer100 permit 219.0.0.0/19
ip as-path access-list 15 permit ^100$
ip prefix-list Customer130 permit 221.10.0.0/19 ip prefix-list default permit 0.0.0.0/0

• Router B announces AS120 and AS100 prefixes • Router C announces default to Router D, only
to Router A, only accepts customer /19 accepts customer /19
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 17 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 18

3
ISP Transit ISP Transit

• Router D Configuration
router bgp 100
network 219.0.0.0 mask 255.255.224.0 • AS130 only hears AS120 and AS100
neighbor 222.222.20.2 remote- as 120 prefixes
neighbor 222.222.20.2 prefix- list upstream out
neighbor 222.222.20.2 prefix- list default i n inbound AS path filter on Router A is optional,
! but good practice (never trust a peer)
ip prefix- list default permit 0.0.0.0/0
inbound Martian prefix-list filters are mandatory
ip prefix- list upstream permit 219.0.0.0/19
on all Internet peerings
!
ip route 219.0.0.0 255.255.224.0 null0

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 19 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 20

ISP Transit

• AS130 and AS100 are stub/customer ASes of


AS120
ISP Transit Provider AS130 has many customers with their own ASes
AS105 doesn’t get announced to AS120
More complex Example 2
AS120 provides transit between AS130 and AS100

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 21 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 22

ISP Transit ISP Transit

• Router A Configuration
AS 105 router bgp 130
network 221.10.0.0 mask 255.255.224.0
AS 120 A AS 130
B neighbor 222.222.10.2 remote- as 120
AS 104
neighbor 222.222.10.2 prefix- list upstream- out out
C AS 101 AS 103 neighbor 222.222.10.2 filter- list 5 out
D AS 102
neighbor 222.222.10.2 prefix- list upstream- in in
AS 100 !
ip route 221.10.0.0 255.255.224.0 null0 250
!
• AS130 has several customer ASes connecting
..next slide
to its backbone
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 23 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 24

4
ISP Transit ISP Transit

! Outbound Martian prefixes to be blocked to eBGP peers


ip prefix-list upstream-out deny 0.0.0.0/8 le 32
! ip prefix-list upstream-out deny 10.0.0.0/8 le 32
! As-path filters.. ip prefix-list upstream-out deny 127.0.0.0/8 le 32
ip prefix-list upstream-out deny 169.254.0.0/16 le 32
ip as- path access- list 5 permit ^$
ip prefix-list upstream-out deny 172.16.0.0/12 le 32
ip as- path access- list 5 permit ^(101_)+$
ip prefix-list upstream-out deny 192.0.2.0/24 le 32
ip as- path access- list 5 permit ^102$ ip prefix-list upstream-out deny 192.168.0.0/16 le 32
ip as- path access- list 5 permit ^103$ ip prefix-list upstream-out deny 224.0.0.0/3 le 32
ip as- path access- list 5 permit ^104$ ip prefix-list upstream-out deny 0.0.0.0/0 ge 25
! Extra prefixes
ip as- path access- list 5 deny ^105_
ip prefix-list upstream-out deny 221.10.0.0/19 ge 20
!
ip prefix-list upstream-out permit 0.0.0.0/0 le 32
..next slide ..next slide

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 25 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 26

ISP Transit ISP Transit

• Router B Configuration
! Inbound Martian prefixes to be blocked from eBGP peers
router bgp 120
ip prefix-list upstream-in deny 0.0.0.0/8 le 32
ip prefix-list upstream-in deny 10.0.0.0/8 le 32 neighbor 222.222.10.1 remote- as 130
ip prefix-list upstream-in deny 127.0.0.0/8 le 32 neighbor 222.222.10.1 prefix- list rfc1918 -sua in
ip prefix-list upstream-in deny 169.254.0.0/16 le 32 neighbor 222.222.10.1 prefix- list rfc1918 -sua out
ip prefix-list upstream-in deny 172.16.0.0/12 le 32
neighbor 222.222.10.1 filter- list 10 i n
ip prefix-list upstream-in deny 192.0.2.0/24 le 32
ip prefix-list upstream-in deny 192.168.0.0/16 le 32 neighbor 222.222.10.1 filter- list 15 out
ip prefix-list upstream-in deny 224.0.0.0/3 le 32 !
ip prefix-list upstream-in deny 0.0.0.0/0 ge 25 ip as- path access- list 15 permit ^$
! Extra prefixes
ip as- path access- list 15 permit ^100$
ip prefix-list upstream-in deny 221.10.0.0/19 le 32
ip prefix-list upstream-in permit 0.0.0.0/0 le 32 Router B announces AS120 and AS100 prefixes to
! Router A, and accepts all AS130 customer ASes
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 27 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 28

ISP Transit ISP Transit

• Router C Configuration
router bgp 120 • Router D Configuration
router bgp 100
neighbor 222.222.20.1 remote-as 100
network 219.0.0.0 mask 255.255.224.0
neighbor 222.222.20.1 default-originate
neighbor 222.222.20.2 remote- as 120
neighbor 222.222.20.1 prefix-list Customer100 in
neighbor 222.222.20.2 prefix- list upstream out
neighbor 222.222.20.1 prefix-list default out neighbor 222.222.20.2 prefix- list default i n
! !
ip prefix-list Customer100 permit 219.0.0.0/19 ip prefix- list default permit 0.0.0.0/0
ip prefix-list default permit 0.0.0.0/0 ip prefix- list upstream permit 219.0.0.0/19
!
• Router C announces default to Router D, only ip route 219.0.0.0 255.255.224.0 null0
accepts customer /19
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 29 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 30

5
ISP Transit

• AS130 only hears AS120 and AS100


prefixes
inbound AS path filter on Router A is optional,
but good practice (never trust a peer) ISP Transit Provider
Special Use Address prefix-list filters are More complex Example 3
required on all Internet peerings

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 31 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 32

ISP Transit ISP Transit

• AS130 and AS100 are stub/customer ASes of AS 105


AS120 AS 130
AS130 has many customers with their own ASes AS 120 B A
E AS 104
AS105 doesn’t get announced to AS120
C AS 101 AS 103
AS120 provides transit between AS130 and AS100 AS 102
D
• Same example as previously but using AS 100
communities
• AS130 has several customer ASes connecting
to its backbone
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 33 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 34

ISP Transit ISP Transit

• Router A Configuration
• Router A configuration is greatly
router bgp 130
simplified
network 221.10.0.0 mask 255.255.224.0 route -map setcomm
all prefixes to be announced to upstream are neighbor 222.222.10.2 remote-as 120
marked with community 130:5100 neighbor 222.222.10.2 prefix-list upstream-out out
neighbor 222.222.10.2 route-map to-AS120 out
route -map on outbound peering implements
community policy neighbor 222.222.10.2 prefix-list upstream-in in
!
Martian prefix-lists still required
ip route 221.10.0.0 255.255.224.0 null0 250
!
..next slide
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 35 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 36

6
ISP Transit ISP Transit

! • Router E Configuration
ip community-list 5 permit 130:5100 router bgp 130

! neighbor x.x.x.x remote- as 101


neighbor x.x.x.x default -originate
! Set community on local prefixes
neighbor x.x.x.x prefix- list customer101 in
route-map setcomm permit 10
neighbor x.x.x.x route-map bgp- cust- in in
set community 130:5100 neighbor x.x.x.x prefix- list default out
! neighbor x.x.x.x remote- as 102
route-map to-AS120 permit 10 neighbor x.x.x.x default -originate
match community 5 neighbor x.x.x.x prefix- list customer102 in
! neighbor x.x.x.x route-map bgp- cust- in in
neighbor x.x.x.x prefix- list default out
• upstream -in and upstream -out prefix-lists are the ..next slide
same as in the previous example
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 37 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 38

ISP Transit ISP Transit

neighbor s.s.s.s remote- as 105


neighbor s.s.s.s default -originate
neighbor s.s.s.s prefix- list customer105 in
neighbor s.s.s.s route-map no -transit in
• AS130 only announces the community
neighbor s.s.s.s prefix- list default out
130:5100 to AS120
!
• Notice how Router E tags the prefixes to be
! Set community on eBGP customers announced to AS120
announced to AS120 with community
route-map bgp-cust-in permit 10
130:5100
set community 130:5100
route-map no-transit permit 10 • More efficient to manage than using filter
set community 130:5199 lists
Notice that AS105 peering has no route -map to set
the community policy
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 39 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 40

Exchange Point Example

• Exchange point with 6 ASes present


Layer 2 – ethernet switch

Exchange Points • Each ISP peers with the other


NO transit across the IXP allowed
Simple Example

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 41 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 42

7
Exchange Point
Exchange Point Router A configuration

interface fastethernet 0/0


description Exchange Point LAN
AS100 AS150 ip address 220.5.10.2 mask 255.255.255.224
A F ip verify unicast reverse-path
no ip directed-broadcast
no ip proxy-arp
AS140
AS110
B E no ip redirects
!
router bgp 100
network 221.10.0.0 mask 255.255.224.0
AS120 AS130
C D neighbor ixp-peers peer -group
neighbor ixp-peers soft -reconfiguration in
each of these represents a border router in a different autonomous system neighbor ixp-peers prefix-list myprefixes out
..next slide
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 43 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 44

Exchange Point Exchange Point


neighbor 220.5.10.2 remote-as 110
neighbor 222.5.10.2 peer-group ixp-peers
neighbor 222.5.10.2 prefix-list peer110 in !
neighbor 220.5.10.3 remote-as 120 ip route 221.10.0.0 255.255.224.0 null0
neighbor 222.5.10.3 peer-group ixp-peers
!
neighbor 222.5.10.3 prefix-list peer120 in
ip prefix- list myprefixes permit 221.10.0.0/19
neighbor 220.5.10.4 remote-as 130
ip prefix- list peer110 permit 222.0.0.0/19
neighbor 222.5.10.4 peer-group ixp-peers
ip prefix- list peer120 permit 222.30.0.0/19
neighbor 222.5.10.4 prefix-list peer130 in
ip prefix- list peer130 permit 222.12.0.0/19
neighbor 220.5.10.5 remote-as 140
neighbor 222.5.10.5 peer-group ixp-peers ip prefix- list peer140 permit 222.18.128.0/19

neighbor 222.5.10.5 prefix-list peer140 in ip prefix- list peer150 permit 222.1.32.0/19


neighbor 220.5.10.6 remote-as 150 !
neighbor 222.5.10.6 peer-group ixp-peers
neighbor 222.5.10.6 prefix-list peer150 in
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 45 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 46

Exchange Point Exchange Point

• Ethernet port configuration


• Configuration of the other routers in the use ip verify unicast reverse-path
AS is similar in concept
helps prevent “stealing of bandwidth”
• Notice inbound and outbound prefix filters
• IXP border router must NOT carry prefixes
outbound announces myprefixes only with origin outside local AS and IXP
inbound accepts peer prefixes only
participant ASes
helps prevent “stealing of bandwidth”

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 47 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 48

8
Exchange Point

• Issues:
AS100 needs to know all the prefixes its peers are
announcing
New prefixes requires the prefix-lists to be updated

• Alternative solutions Exchange Points


Use the Internet Routing Registry to build prefix list More Complex Example
Use AS Path filters (could be risky)

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 49 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 50

Exchange Point Example Exchange Point

AS200

• Exchange point with 6 ASes present AS201 AS100 AS150


A F
Layer 2 – ethernet switch
• Each ISP peers with the other AS110 AS140
B E
NO transit across the IXP allowed
ISPs at exchange points provide transit to their
AS120 AS130
customers C D

each of these represents a border router in a different autonomous system

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 51 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 52

Exchange Point
Router A configuration Exchange Point
interface fastethernet 0/0 neighbor 220.5.10.2 remote-as 110
description Exchange Point LAN neighbor 222.5.10.2 peer-group ixp-peers
ip address 220.5.10.2 mask 255.255.255.224 neighbor 222.5.10.2 prefix-list peer110 in
ip verify unicast reverse-path neighbor 220.5.10.3 remote-as 120
no ip directed-broadcast neighbor 222.5.10.3 peer-group ixp-peers
no ip proxy-arp neighbor 222.5.10.3 prefix-list peer120 in
no ip redirects neighbor 220.5.10.4 remote-as 130
! neighbor 222.5.10.4 peer-group ixp-peers
router bgp 100 neighbor 222.5.10.4 prefix-list peer130 in
network 221.10.0.0 mask 255.255.224.0 neighbor 220.5.10.5 remote-as 140
neighbor ixp-peers peer -group neighbor 222.5.10.5 peer-group ixp-peers
neighbor ixp-peers soft -reconfiguration in neighbor 222.5.10.5 prefix-list peer140 in
neighbor ixp-peers prefix-list rfc1918-sua out neighbor 220.5.10.6 remote-as 150
neighbor ixp-peers filter-list 10 out neighbor 222.5.10.6 peer-group ixp-peers
..next slide neighbor 222.5.10.6 prefix-list peer150 in
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 53 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 54

9
Exchange Point Exchange Point

!
ip route 221.10.0.0 255.255.224.0 null0
!
• Notice the change in router A’s
ip as-path access -list 10 permit ^$ configuration
ip as-path access -list 1 0 permit ^200$
ip as-path access -list 1 0 permit ^201$
filter-list instead of prefix-list permits local and
!
customer ASes out to exchange
ip prefix- list myprefixes permit 221.10.0.0/19
prefix-list blocks Special Use Address prefixes
ip prefix- list peer110 permit 222.0.0.0/19
– rest get out, could be risky
ip prefix- list peer120 permit 222.30.0.0/19
ip prefix- list peer130 permit 222.12.0.0/19 • Other issues as previously
ip prefix- list peer140 permit 222.18.128.0/19
ip prefix- list peer150 permit 222.1.32.0/19
!
Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 55 Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 56

BGP and the Internet


Transit and Internet Exchange Points

Cisco ISP Workshops © 2003, Cisco Systems, Inc. All rights reserved. 57

10

You might also like