Professional Documents
Culture Documents
Abstract--This report explains what the Border 1. Distance Vector Protocols ( RIP, IGRP)
Gateway Protocol is and what are the characteristics and 2. Link State Protocols (OSPF, IS-IS)
functionality of it. The report describes the difference of
internal and external BGP and also looks into BGP
attributes, MED and Local Preference in detail and use Fig. 2: Example of IGP running in an AS.
of route maps in BGP. Autonomous System
I. INTRODUCTION
OSPF
Routing protocols can be basically identified in two
F
OSP
categories. The first one, Interior gateway protocols are used
in networks inside an enterprise. OSPF, EIGRP, RIPv1 and
OS
OSP
PF
RIPv2 are examples for EGPs. The other category, which is
Exterior Gateway Protocols are used between the
autonomous systems, usually between customer AS and
internet service provider (ISP). Border Gateway Protocol OSPF
OSPF
F
[4][10]
F
OSP
OSPF
OS
P F
F
OS
OSP
FP
OS
FP
categories.
OSPF
OSPF
III. POLICY BASED ROUTING
Table 1
Policy based routing is a technique which can be used to
affect the IP routing protocol decisions of routing or
forwarding data packets by applying policies defined by the
network administrator .
In policy based routing, the data packets are forward
Cisco Routers use routing maps to implement policy based
routing. Route maps are complex technique to control access
and routing seditions like Access Control Lists, but are more
powerful than ACLs. Route maps can alter the route of a
packet and also able to modify the packet. They are
sometimes used with complex access control lists to test any The RFC 1771 defines the support for Classless Inter-
[4]
condition in route map. Domain Routing (CIDR). The BGP4 which is used in the
date was ratified in RFC 4271.
A. How Route Maps Works? Unlike other routing protocols like EIGRP or OSPF, BGP
runs top of the transmission control protocol (TCP) using
Route maps work in manner of ‘if - then' statement in
port 179. It uses the TCP for the reliability of the
computer programming language. They use match set
transmission and many other connection setup and
statement to do a similar task of if then statement. When data
maintenance features. The other routing protocols have their
packets pass through the route map, it checks each match
own layer 4 protocols with own reliability mechanisms.
command to find that packet meets the set statement. If it [4][10]
matches, packet processes according to the configuration.
Route maps operate in first match method as in ACLs.
For an example, consider following route map. A. External BGP (EBGP)
BGP is implemented between autonomous systems, in
Route-map EXAMPLE permit 10 most of the times, between customer AS and the ISP AS.
Match ip address 1 The Figure XX shows the most common implementation of
Set local-preference 150 BGP. The neighbor relationships between two BGP routers
in two autonomous systems are called external peers.
In this example, route map checks IP address of the data
packet whether it matches with the ACL 1. If ACL 1 is Fig 3: External BGP Peers
configured to process that IP address, route map set local-
preference of the packet to 150, which change the exit path
of a BGP autonomous system. (Local-preference and BGP
[3]
autonomous systems are explained in this document later)
Internal R2
Peers Running BGP
VI. BGP ATTRIBUTES
Internal
Peers BGP metric is not as simple as the metrics of OSPF, RIP
R1
or EIGRP. In OSPF, it uses cost as the metric to find the best
Running BGP path to the destination. For Rip, the metric is hop-count and
R4 for EIGRP, the metric is composite and consists of five
Running BGP
components. But in BGP, there are number of attributes
R3 which are used by BGP to choose the best path to destination
AS.
In above figure, R1, R2 and R4 running BGP and all BGP attributes are basically fall in to following
routers are within a single autonomous system. Unlike other categories.
routing protocol neighbors such as OSPF or EIGRP, BGP
peers don’t need to be directly connected. R1 and R2 are A. Well-known Attributes and Optional Attributes
directly connected and are internal peers and R1 and R4 are
also internal peers even though they are not directly Well-known attributes are supported by every device
[4][10] vendors which provide BGP functionality. Optional
connected and R3 is not running BGP.
attributes may not be supported by every device vendor.
R1
AS 65100 R3
R2
R1
Inbound routes
R3 Outbound Routes
R4 Distributed Routes
X. CONCLUSION