You are on page 1of 31

• IP routing protocols

• RIP
• OSPF
BGP
• What is Routing ?
• Routing is the process for forwarding a
packet between the source and destination
networks (or subnets)
• Routing devices perform two main tasks
– Routing –
» Topology discovery
» Path (or route) discovery
– Switching
» Process of forwarding the packet between the inbound and
outbound interface
» Finding path to the destination
• In IP the switching is done on the per
packet basis (L3 forwarding)
– Connectionless mode: routers forward traffic on the basis of the
address contained in the packet header
» Each packet is switched independently from others
• Routing Information
• Each router maintains routing table that
contains the routing information necessary
to find path to the destination
• Routing table contains paths to all known
destination in the network

R 172.16.8.0 [120/4] via 172.16.7.9 00:00:20


Serial0
• R How the route was learned e.g.
From RIP
• 172.16.8.0 Destination network or
subnet
• [120 Administrative distance of the
routing protocol
• 4] Metric i.e. hop count in case of
RIP
• via 172.16.7.9 Next-hop router address
• 00:00:20 Age of routing information
• Serial0 Outbound interface
• Administrative Distance Values
• Administrative distance defines the
preference of routes learned via different
protocols (which route can be trusted more
over the others)
• Defined values
– Connected interface 0
– Static route out of the interface 0
– Static route to a next hop router 1
– EIGRP summary route 5
– External BGP 20
– Internal EIGRP 90
– IGRP 100
– OSPF 110
– IS-IS 115
– RIP 120
– EGP 140
– External EIGRP 170
– Internal BGP 200
– Unknown 255
• Routing in the Internet
• The Internet is organized as a set of
independent Autonomous Systems (AS)
• The AS is a collection of networks under
single technical administration
• The AS appears to the outside world to
have coherent routing plan and presents
unique view what destination are reachable
through it
• The AS can use many different routing
protocols
– The routing protocols used inside the AS are called the Interior
Routing Protocols (IGP)
• A separate protocol is used to transfer
information between ASs
– The routing protocol used between the ASs is called the Exterior
Routing Protocol (EGP)
• AS Network Model
• The AS is modelled as a collection of
routers, hosts and networks
– The network can be point to point or multipoint link that
interconnect hosts and routers e.g. Ethernet, Token Ring or serial
link (we distinguish broadcast or non broadcast networks)
– Host can be connected to many networks
– Only Routers can transfer packets between networks
• The network denotes the IP subnet (in IP
addressing scheme)
• Routing Protocols for IP Networks
• Classful Routing
• In the classful routing the network mask is
not propagated throughout the network
– If the path is on the directly connected network the the router
assumes the same mask as the advertising device
– If the path is not on the directly connected network the default
mask is assumed
» the paths are summarised at the network boundary
• All interfaces on the subneted network
must use the same mask
– Address space is used inefficiently e.g. in case of point-to-point
links

• Classless Routing
• In the classless routing the subnet’s masks
are propagated together with the subnet’s
addresses
• More detailed information about network
topology is possible
– Subnets may not be continuous
• Efficient use of address space
– e.g. Only two addresses can be used on point-to-point links
• Route summarisation possible at any bit
position (VLSM)
– Small routing tables
• CIDR - Classless Interdomain Routing
• Routing Information Protocol (RIP)
• RFC 2453 – RIP-2
• Routing Information Protocol (RIP)
• RIP is an IGP protocol based on the
Bellman-Ford (or distance vector)
algorithm
– Distances between networks are exchange between routers
– The information is exchange only between adjacent routers
• RIP was first developed for the Xerox
Network Systems (XNS) architecture
• In 1969 RIP was adopted for ARPANET
(with modification for IP addressing
support)
– The RIP is intended to be used within IP-based Internet
• RIP is developed for medium-size networks
(AS) and have the following limitations
– The longest path is limited to 15 hopes
– Counting to infinity for loop resolution
– Fixed (hop) metrics
• Routing Information Protocol (RIP)
• Each router or host that participates in the
routing protocol maintains routing table
• Routing entry
– Standard routing information
» Destination network address
» Next hope router address
» Interface
» Metrics
– Protocol specific information
» Timers – the amount of time since the entry was last updated
» Flags (new route, withdrown route etc.)
• Routing Information Protocol (RIP)
• The destination on the same network can
be represented by single entry that
describes routing to the given network
– The details of routing within a given network are not visible to the
IP layer
• The routers/hosts exchange information
about known paths in periodical fashion
• The routers/hosts are initialised with the
networks directly connected to them
• Each router/host builds its routing table
from information provided from its
neighbours

• Basic RIP Routing Algorithm


• d(i,j) – cost of transferring a packet from
router i to j
– The routers i and j are directly connected through single network
– It represents the cost of using given network
– It is usually the same for all routers on that network
• D(i,j) – cost of best path from entity i to j

• Router i picks up the path of smallest cost


from information sent by all of its
neighbours and includes it into its routing
table
• Each neighbour sends routing information
asynchronously
• Basic RIP Routing Algorithm
• In real implementation routers do not need
to remember all path information send
from all of its members rather the best (so
far seen) path together with the indication
of the router that sent it is remembered
• The router does not need to sent the
information for itself (i.e. D(i,i)=0)
– Rather it assigns given cost to the networks that are directly
connected to it
– Consequently the host do not need to participate in routing
protocol
• Whenever the router receives an update
with higher cost then the current one for
given path it set the cost to this value if
the update is sent by the same entity as
the previous one
• Each router sends routing updates
periodically every 30 seconds
• Handling Topology Changes
• There is a need to detect crashed routers
or routers that were disconnected from the
rest of the network
• The above is done by timing out the
routing tables entry
– When the update for particular destination is not seen for some
time the destination is declared to be unreachable
– The update is supposed to come from the same router as the
previous one
– The default timeout is 180 seconds
• If the given network is detected to be lost
it is indicated as unreachable by the
router(s) that are directly connected to it
by setting the cost for it to infinity
– The infinity is the cost of 16
– This is done by normal update procedure
• Counting to Infinity
• Link B-D goes down
• Split Horizon
• The „counting to infinity” problem arises
when the router sends back the
reachability information to the router that
generated the original path
• To prevent this the router do not send back
the routing information about path learn
from given neighbour to this neighbour –
split horizon
• Split horizon with poisoned reverse
• Split horizon with poisoned reverse
assumes that such routes are included in
the message with the cost of infinity
– Breaks the loop between two adjacent routers
– Increases the size of routing messages
• In case of broadcast network router claims
network unreachablility to every router on
that network (if it learn the path from one
of them)
• Triggered Updates
• Split horizon with poisoned reverse do not
prevent from all loops e.g. three routers
can still establish a loop pointing at each
other in a circle
– Such loop will be resolve by counting to infinity, however this takes
some time
• In triggered update when the router
changes the metrics for given path it sends
update message immediately
• The triggered updates for deleted routes
are mandatory

• RIP Specification
• RIP uses UDP protocol to send routing
messages
– RIP port: UDP port 520
– All communications destined for RIP is sent for port 520
– All update messages are sent from port 520
– Update messages send in response to the request are sent to the
source port of that request
• Command: request or response
• Version: RIP-1 or RIP-2
• RIP Entry (RIP-1)
• Address family identifier (AFI) – type of
address
• IPv4 address – the IP address of the
destination network or host (or default
route)
• Metrics – the value of metrics for path to
the given destination
• Addressing
• Each router knows the IP address and
subnet mask for directly connected
networks
• The router sends outside given network
only the IP address of this network
– The routers not directly connected to the network know nothing
about its subnetting
– Without subnet mask it is not possible to distinguish the address of
subnet from the address of node in that subnet
– All addresses that are not network address are treated as node
addresses
• The subnet/host addresses are sent only to
the routers that are directly connected to
given network
• Routing Table
• The RIP routing table can contain the
following information:
– Addresses of directly connected network
– Addresses learnt from neighbours
– Addresses configured statically
– Addresses learnt from other protocol either EGP or IGP
– Default route (0.0.0.0)
• The creation of default routes in RIP is
implementation specific
– For example the BGP routers (the gateways to other AS) can
generate default route
» The outside traffic will be sent to the closest border router
• Timers
• Update timer - every 30 seconds the RIP
process sends response message to its
neighbours
– To prevent from message synchronisation (especially on broadcast
networks) the timer must be independent of the system load or
small offset +-5 seconds used
• Timeout timer – the timeout is initialised
when the route is established, the route
timeout is 180 seconds
• Garbage collection timer – after the route
is declared to be deleted it is kept in the
routing table and included in the update
messages for 120 second
– If new update for the deleted route comes before the garbage
timer expires the route is updated and the timer is cancelled
• Request Message
• A request message is used to obtain whole
or part of the routing table of the router
• Normally this message is sent by new
router that boot up and need to fill its
routing table
• The request message can be sent by other
entity than RIP router (for monitoring
purposes)
– In this case the request message is sent from other port than the
RIP port, the answer is sent back to this port
• If the request message contains one RIP
entry with AFI field zero and metric 16 it is
treated as the request for the whole
routing table
– Split horizon is done
• In other case the RIP entry are evaluated
one by one and interpreted as an update
request for the specific address (given in
the address field)
– Split horizon is not done
• Response Message
• The response message is sent in the
following cases
– Response to the specific query
– Normal update
– Triggered update
• Message validation
– Response was sent from the RIP port
– The source IP address must be checked against valid neighbour
and it must be in the directly connected network
– The message must be check if it was not generated by itself (on
broadcast network router can receive its own messages)
• RIP entry validation
– Correct destination address
– Correct metric (between 1 and 16)
• Protocol Extension (RIP-2)
• New RIP entries
– Allows to pass subnet information (classless routing)
– Allows to explicitly declare the next hop router
– Route Tag distinguishes RIP routes from other routes (e.g. from
BGP)
• Authentication
– Simple password
– MD5 as specified in RFC1997
• Multicast support
• Open Shortest Path First (OSPF)
• RFC 2328
• Open Shortest Path First
• OSPF is an IGP protocol based on the
Dijnkstra algorithm
– Link state information LSA (Link State Advertisement) is
exchanged between routers
– The LSA are exchange only when the link state changes
• OSPF addresses the scalability issues of
traditional distance vector protocols like
RIP
– Fast convergence
– Reduced routing traffic
– Support for large networks
• OSPF uses IP as its transport protocol
– OSPF is protocol number 89
• Open Shortest Path First
• Link state routing protocols
– Each router maintains the topology database derived from other
routers
– The routing table is build from the topological database
» The router runs SPF algorithm to construct tree of shortest
paths to all destination with itself as root
– Only changes in network topology are advertised between routers
• OSPF main characteristics
– Hierarchical routing - area definition
– VLSM support (subnet and mask propagation)
– No network topological limits
– Single value metrics - link cost
» Links costs are usually set in proportion to the bandwidth
– Load balancing over equal cost paths (up to 6 paths)
• OSPF Terminology
• Interface – the connection between router
and the network (represented as link in the
topology database)
• LSA – data describing the status of the
router links and networks
• Cost – weight assigned to the link
• Area – a collection of routers that have the
same are identification
• Neighbour – two routers on the same
network
• Adjacency - relationship between
neighbour routers established for the
purpose of exchanging routing information
• Designated router - the router that
generates LSA for given broadcast or NBMA
network
• Hello protocol - protocol used to detect
neighbours
• OSPF Topology Database
• All routers and network are represented as
vertices
• All interfaces are represented as edges
• Point to point links are represented as
edges
• OSPF Topologies
• Types of topologies
– Broadcast multi-access networks
» Ethernet
» Token Ring
– Point-to-point links
» Serial lines
– Non-broadcast Multi-access Networks (NBMA)
» X.25
» Frame Relay
» ATM
• Hello Protocol
• Hello protocol is used for establishing
neighbour relationship on broadcast
network
– Designated Router (DR) and Backup Designated Router (BDR) are
elected on broadcast networks
– Adjacency between routers is established
• Hello protocol is used for keep alive
procedure
– Hello packets are periodically send out from each router interface
with the broadcast IP address 224.0.0.5 (allOSPFRouters)
– typically the hello packets are sent every 10 seconds
• Hello protocol is used to discover changes
in the network topology
– Link failures/deletion
– Link addition
• Hello Packet
• Hello packets contain the following
information
– Router ID - the highest IP number on the active interface
– Hello and dead intervals - the time between consecutive hello
messages and the timeout value for detecting link or neighbour
failure
– Neighbours - the list of routers IDs with which the bi-directional
relation was established
– Area ID - the router must be on the same subnet and in the same
are to communicate
– Router priority - 8 bit number denoting router priority in the DR
and BDR designation process
– DR and BDR router addresses
– Authentication password
– Stub are flags
• Designated Router
• DR router represents the network to other
routers
– Routers on broadcast network must elect the DR and BDR routers
during the hello procedure
– The router with the highest priority becomes DR router
– The router with the second priority in order becomes the BDR
router
• The BDR router becomes active when the
DR router goes out of service
• Each router on the network establishes
adjacency with the DR router
• Only the DR router sends LSA for given
network
– This decreases the routing traffic
• Hello protocol
• Exchange process is performed at router
startup
– Newly started router sends out hello packets on all interfaces
– All routers that received the hello packets add the new router to
neighbour list
– The routers send unicast replay to the new router
» Including their IDs
– The new router updates its neighbour list (when it sees its ID in
the received relay) - the routers establishes bi-directional
communication
• The routers on the network determined
who the DR and BDR is (exstart state)
• After the exchange process routers
periodically exchange hello packets
• Hello Protocol
• Exchange Protocol
• Exchange Protocol is used to synchronise
the neighbour routers databases
• After the DR and BDR election, routers that
are not DR or BDR establishes the
adjacency with the DR and BDR routers
– The master-slave relationship is established
– The router with the higher ID becomes the master
• The adjacent routers exchange the DBD
packets
– When the slave router receives DBD it send ack to the master
router with its own LSAs
– Next each router compares the received LSA sequence numbers
with these it has, if some LSAs in the router are older it sends the
LSR (Link State Request) packet for these LSAs
– The other router responses with the LSU (Link State Update)
packet that contains full LSAs information
– The router acks the LSU packet
• After the exchange protocol each router
pre-computes its routing table entries
• Exchange Protocol
• Exchange Protocol
• Maintaining Routing Table
• If router notices the change in the link
state the flooding process is initiated to
populate this information with all routers in
the network (synchronise link databases)
– The router sends LSU packet (with new LSA) to all its DRs using
broadcast 224.0.0.6 address (allOSPFDRs)
– DR acknowledge the packet and sends LSU packet to all adjacent
routers using broadcast address 224.0.0.5
– All adjacent router acknowledge the LSU do DR
– If a Router is on other network it forwards the LSU to appropriate
DR (or DRs)
• After router receives LSU it re-computes its
routing table
• Usually some delay in routing table re-
computation is used to cope with route
flapping
• Maintaining Routing Table
• Each LSA is associated with some timer
usually 30 minutes
• When the LSA timer expires the router that
originates the LSA sends LSU to verify that
the link is still active
• When a router receives the LSU packets it
does the following
– it checks if the LSA is in its database if so it compares the
sequence numbers if are the same the LSU is ignored
– if the LSA is not in the database the database is updated and the
flooding process is started
– if the sequence number higher start flooding process if not
propagate the LSU
– after the flooding process pre-compute new routing table
• Operation on Point-to-Point Links
• The neighbours are discovered by hello
protocol using 224.0.0.5 address
• No DR and BDR router election is done
– the adjacency on point-to-point links is automatic
• All LSA information is propagated to the
other router

• Operation on the NBMA networks


• NBMA networks interconnect many routers
but with out the broadcast capability
• Typical physical topologies of NBMA
networks
– full mesh
– star
– partial mesh
• NBMA is typically a connection oriented
network e.g. X.25 or ATM
• The DR and BDR election and adjacency
establishment assumes full connectivity
between all routers on the network
• Operation on the NBMA networks
• RFC modes on NBMA networks
– Non-broadcast multiaccess - emulates an OSPF operation on
broadcast network
» requires full mesh topology
› if partial mesh is used the DR and BDR routers have to
configured manually and connectivity between adjacent
routers have to be assured
» neighbours must be configured manually
» the router emulates broadcasting by replicating packets on all
connections (e.g. PVC)
– point-to-multipoint - treats NBMA network as a collection of point-
to-point links
» used on partial or star topologies
» routers detect neighbours but do not elect DR and BDR
routers
» all routers are on the same subnet
• OSPF Limitation with Single Area
• In large networks the following issues may
arise
– frequent routing table recalculation -
» in large network link state changes are inevitable
» the larger the network the more frequently a link in the
network will go out of service causing recalculation
» high CPU utilisation
– large routing tables -
» each router has at least one entry in the routing table per
each destination
» large memory requirements
– large topology database
– significant routing traffic in the network
» link bandwidth is consumed by routing traffic
» lest bandwidth to data packets
• Solution - OSPF Areas
• In OSPF large network can be split into
many areas
• OSPF areas allow to implement hierarchical
routing thus the following benefits can be
achieved
– individual LSA updates are not propagated out of the are thus the
change in one area does not incur routing table recalculation out
side this area
– smaller routing tables - the detailed routing information is kept
within area, the route summarisation can be done for the routes
that are send out of the area, with proper addressing even only
one route can be propagated out of the area
– reduce routing traffic in the network - more bandwidth available to
data packets
• OSPF Multi-area Terminology
• Routers types
– Internal - routers with all interface in the same area
– backbone routers - routers with at least one interface in the
backbone area 0
– Area border router(ABR) - routers that have interfaces attached to
many areas, maintain link state database for each area, do LSA
summarisation before sending information to other areas
– Autonomous system boundary router (ASBR) - routers that have at
least one interface into external network
• Routers can be of more than one type
• OSPF Multi-area Terminology
• LSA types
– type 1 - router link entry - generated by each router for each area
it belongs to, describe the sate of the routers links to given area,
flooded only within area
– type 2 - network link entry - generated by the DR for multiaccess
networks, describe the set of routers attached to the network,
flooded only within area
– type 3/4 - summary link entry - generated by ABR, describe the
ABR link state and the routers internal to the area, flooded via
backbone to other areas, type 3 describe routes o the network,
type 4 describe routes to ASBR
– type 5 - external link entry - generated by ASBR, describe routes o
the destination outside the AS, flooded to backbone and normal
areas
• OSPF Multi-area Terminology
• Area types
– standard area - accept link updates and route summaries
– backbone area - special area that interconnects other areas,
behaves as standard area
– stub area - area that do not accept the external LSA, the routers in
this area use the default route when they need to send traffic out
of the AS
– totally stub areas - do not accept external LSA or internal LSA from
other areas, the routers in this area use default route when they
need to send traffic out of the area
• Data traffic sent for destination within the
area is sent through this area only
• Data traffic sent for destination outside the
area always crosses the backbone area
– packet leaves the originating area via its ABR
– packet enters the destination area via its ABR
• Cost calculation
• Cost of the summary routes
– The cost of the inter area route is the smallest cost of the route
that appears in the summary plus he ABR link cost
• Cost of the external routes
– Type 1 external cost - external cost plus the cost of all links to the
ASBR, used when there is many ASBR routers
– Type 2 external cost - external cost only, used when there is one
ASBR router
• LSU Flooding Between Areas
• The ABR router is responsible for
generating routing information for given
area and flooding it to other areas
– First intra area routing process must be done before the ABR can
generate LSA for that area
– The ABR generates summary LSA from the link state database it
created during the intra area routing process
» To use route summarisation the continuous addressing must
be used in the area
– The LSA type 3 and 4 are generated and flooded via backbone to
other areas
– When the ABR receives LSA it updates its database and forwards
them to its areas
• Once the all LSA are received the routing
table is recalculated
– First internal area routes are calculated
– Next the external routes within AS are calculated
– Next the external to the AS routes are calculated
• Virtual Links
• OSPF requires all area to be connected to
the backbone
• In some situation topological restriction
may prevent from connecting given are
directly to the backbone
– In such situation a virtual link may be define that logically connects
are to the backbone via other area
– The virtual link may also be used in case of discontinuous
backbone or in order to provide extra redundancy
• Border Gateway Protocol (BGP)
• RFC 1771
• RFC 1772
• http://www.cisco.com/warp/public/459/bg
p-toc.pdf
• BGP-4 Basics
• BGP is Inter-Autonomous System routing
protocol (EGP)
– The BGP is used to route traffic between different AS systems
– BGP is used to interconnect ISP networks or connect Enterprise
networks to ISPs
• BGP is based on the EGP protocol (RFC
904)
• BGP uses TCP on port 179 as its transport
protocol
– BGP assumes reliable transmission protocol
– Periodic keep alive to verify TCP connectivity
• BGP-4 Basics
• BGP is a distance vector routing protocol
– Exchanges complicated path attributes (vector of attributes)
– Hierarchical topology is not required
– Incremental triggered updates
• Support for classless routing (CIDR)
– Support for supernetting
• Route aggregation
• Policy routing
– Only rules conformant to hop-by-hop routing scheme possible
• Only routes used in the AS can be
advertised to other ASs
• When to Use BGP?
• When the BGP is needed?
– An AS allows to pass packets between different Ass
– An AS has multiply connection to other AS
– The AS wants to manipulate the flows of traffic leaving or entering
this AS
• BGP is CPU and memory consuming
– Typically BGP routing table has over route 70000 entries from over
6000 ASs
• BGP Speakers
• Router running BGP is called BGP speaker
(or neighbours)
• The neighbours are configured manually
– by telling each router what is IP address of its neighbour
• BGP speakers establish TCP connection to
exchange routing information
– If the two BGP speakers belong to different AS they are running
external BGP (eBGP)
» The neighbours have to be directly connected
– If the two speakers belong to the same AS they are running
internal BGP (iBGP)
» The neighbours do not have to be directly connected
» IGP protocol must be in place to assure connectivity between
BGP internal neighbours
• At startup BGP speakers exchange full
routing tables, then only changes are
advertised
• BGP Policy-based Routing
• BGP allows to define rules for how traffic is
sent via given AS
• BGP cannot implement policy that do not
conform to the hop-by-hop routing
paradigm
– BGP does not enable one AS to sent traffic to other AS that is
intended to be send out from that AS via different route then the
traffic originated in the second AS
• BGP allows router to advertise to its peers
only this routes that it is itself using
• BGP Attributes
• BGP metrics are called path attributes
• The following path attribute categories
exist
– Well-known mandatory – must be recognised by all
implementation and must be included in all update messages
– Well-known discretionary - must be recognised by all
implementation but needn’t be included in all update messages
– Optional transitive – may not be recognised by some
implementation, when not recognised must be propagated to their
neighbours
– Optional nontransitive – may not be recognised by some
implementation, when not recognised must be dropped
• BGP Attributes
• Well-known mandatory attributes
– AS-path
– Next-hop
– Origin
• Well-known discretionary attributes
– Local preference
– Atomic aggregate
• Optional transitive attributes
– Aggregator
– Community
• Optional non-transitive attributes
– Multi-exit-discriminator (MED)

• AS Path Attribute
• List of AS identifiers on the path toward
the destination
– Whenever route passes through AS its identifier is pre-penned to it
by the BGP router
• Allows to detect and eliminate route loops

• Next-hop Attribute
• Address of the next router on the path
towards the destination
• For eBGP it is the address of the router
that sent the path information (neighbour
address)
– Router A advertises the network 172.16.0.0 to B with next hop
172.15.10.1
• For iBGP the next hop advertised by the
EBGP should be curried into the IBGP
– Router B will advertise network 172.16.0.0 to C with next hop
172.15.10.1
– Router C has to know how to reach 172.15.10.1
• Origin Attribute
• Origin of the path information
– IGP – the route is internal to the AS
» Explicitly configured in BGP to be advertised
» Redistributed from IGP
– EGP – the route was learned from other AS via EGP protocol
– Incomplete – the origin is unknown e.g. In case of static routes
redistributed from IGP
• EGP and IGP maintains separate routing
tables
– The routing information can be exchange between tables
• While making route redistribution from IGP
to BGP careful filtering should be done i.e.
the routes that were previously
redistributed from BGP to IGP should not
be considered again
– Some IGP protocols tag external routes
• Local Preference Attribute
• Local preference is an attribute configured
on the router and exchange only inside the
AS
• The route from router with higher local
precedence value will be preferred
• Atomic Aggregate Attribute
• When the router receives overlapping
routes from its peers and selects less
specific route it should include the Atomic
Aggregate attribute in the update message
• Atomic Aggregate attribute informs the
receiving BGP speaker that the less specific
route is advertised without more specific
one
– the AS path attribute may not contain all AS numbers
• A BGP speaker that receives the route with
atomic attribute shall not remove it
– Such route cannot be de-aggregated
• MED Attribute
• The MED attribute is configured on the
router and exchanged between adjacent
ASs
• The MED attribute is an indication to
external peers about the preferred path
into given AS

• Aggregator Attribute
• The AS number and Router ID of the router
that made path summarisation
• Community Attribute
• Community attributes are a means to tag
paths
– The routes can be tagged on incoming or outgoing interface
– Community is a list of values
• The tagging is used for route filtering and
selection
• Community attributes are used to
implement consistent BGP policy routing
rules
• The routers that understand community
attribute must be configured to use it
otherwise the attribute is dropped
• Known communities
– No-export – do not advertised the route to external peers
– No-advertised – do not advertised the route to any peer
– Internet – advertise the route to the Internet
– Local AS – used in confederation to prevent sending packets
outside AS
• BGP Synchronisation
• BGP requires that the route learned via
iBGP is not advertised to external peer
unless the IGP has propagated given
routing information inside the AS
• Synchronisation ensures that the path via
AS is operational
– avoids black holes
• BGP message types
• Open
– Sent after the TCP connection is established
– Includes
» hold time - the maximum time between consecutive keep
alive messages
» router ID - highest IP interface address
• Keep alive
– Sent periodically
• Update
– Contains information about one path (networks list and attributes)
• Notification
– Sent in case of error condition

• Route Selection Decision


• Consider synchronised routes with no loops
and valid next-hop address
– prefer routes highest local preference
– prefer routes originated by local router
– prefer shortest AS path
– Prefer lowest origin attribute (IGP<EGP<incomplete)
– Prefer lowest MED
– Prefer eBGP over iBGP paths
– Prefer paths through the closest IGP
– Prefer oldest eBGP paths
• BGP Confederations
• BGP confederation is one way to resolve
the full mesh iBGP connections scalability
problem
• The AS can be divided into multiple ASs
– Each AS has full mesh of iBGP sessions
– The ASs run iBGP sessions between them (not eBGP)
» The next hop, MED and local preference attributes are
preserved
• The AS looks to the outside world as single
AS
• Route Reflectors
• Route reflectors allows to cope with the
iBGP sessions full mesh problem
• Normally the BGP speaker will not
advertised route learnt via iBGP to any
other local neighbour
• The route reflector advertised such routes
to other local BGP peers
– This reduces the number of point-to-point relations between BGP
speakers
• Many route reflectors can be configured in
one AS

You might also like