Introduction

The purpose of this part of the lab is fix (i.e. make more deterministic) the routing issues we saw when we introduced the IXP to our lab network in the previous exercise.

 

Lab Topology

A reminder of the lab topology is in the diagram below.

 

We are now going to deal with the issue where we see two paths between us and our private peer. One is via our private peering link, the other is via our peering with them across the IXP.

In day to day Internet operations, network operators prioritise links according to the value they attach to them - the list goes something like this:

Type of Link Priority (local preference)
BGP Customer 250
Private Peer 200
IXP Bi-lateral 170
IXP RS 150
(default) 100
Local Transit 70
Global Transit 50

Obviously there will be many variations on this theme, but the principle remains the same. Traffic to BGP customers naturally should go from the operator directly over the customer link, and not over any other link (peering or transit) - hence such customers are tagged with the highest local preference. Peering links have no operational cost, so are highly preferred over links which have an operational cost (transit). Private peering links are preferred over IXP links as the former are brokered directly with the partner, while the IXP links are via a third party infrastructure. It is not physically possible to peer privately with every operator, and this is the function that the IXP then provides (as was covered in the course presentations).

We will now attach local preference to the routes we hear from our private peer and from the IXP Route Server, according to the table above.

To do this we will create two route-maps, one for the private peer, the other for the RS peering:

route-map private-peer-in permit 5
 set local-preference 200
!
route-map IXP-RS-peer-in permit 5
 set local-preference 150
!

Once we create the route-maps, we apply them to the BGP peerings with the IXP Route Server. Here is an example:

router bgp X0
 address-family ipv4
  neighbor <ptp-v4> route-map private-peer-in in
  neighbor 100.127.1.254 route-map IXP-RS-peer-in in
!
 address-family ipv6
  neighbor <ptp-v6> route-map private-peer-in in
  neighbor 2001:DB8:FFFF:1::FE route-map IXP-RS-peer-in in
!

Once this is configured, do a route-refresh inbound on the two peerings. You should now see the local preferences attached to the routes from the IXP and from the private peer. What has happened now?

 

Confirmation

Check on the Border, Core, Access and Peering Routers for what you now see in the BGP table.

What is the best path to your private peer? Look in the BGP and Routing tables.

What does traceroute tell you?

Hopefully you will see that the best path to your private peer will be via the private peering link. And the routes to the rest of the class will be via the Internet Exchange Point. The only traffic going via the Upstream Provider now will be traffic out to the Internet itself. If this is not the case, you will need to start doing some troubleshooting!