Hierarchical Routing - PowerPoint PPT Presentation

1 / 29
About This Presentation
Title:

Hierarchical Routing

Description:

look up network address of E in router's forwarding table ... poison reverse used to prevent ping-pong loops (infinite distance = 16 hops) ... – PowerPoint PPT presentation

Number of Views:414
Avg rating:3.0/5.0
Slides: 30
Provided by: kay57
Category:

less

Transcript and Presenter's Notes

Title: Hierarchical Routing


1
Hierarchical Routing
  • aggregate routers into regions, autonomous
    systems (AS)
  • routers in same AS run same routing protocol
  • intra-AS routing protocol
  • routers in different AS can run different
    intra-AS routing protocol
  • special routers in AS
  • run intra-AS routing protocol with all other
    routers in AS
  • also responsible for routing to destinations
    outside AS
  • run inter-AS routing protocol with other gateway
    routers

2
Intra-AS and Inter-AS routing
  • Gateways
  • perform inter-AS routing amongst themselves
  • perform intra-AS routers with other routers in
    their AS

b
a
a
C
B
d
A
network layer
inter-AS, intra-AS routing in gateway A.c
link layer
physical layer
3
Hierarchical Routing
  • Hierarchical routing.

4
Getting a datagram from source to dest.
forwarding table in A
  • IP datagram
  • datagram remains unchanged, as it travels source
    to destination
  • addr fields of interest here

5
Getting a datagram from source to dest.
forwarding table in A
misc fields
data
223.1.1.1
223.1.1.3
  • Starting at A, send IP datagram addressed to B
  • look up net. address of B in forwarding table
  • find B is on same net. as A
  • link layer will send datagram directly to B
    inside link-layer frame
  • B and A are directly connected

6
Getting a datagram from source to dest.
forwarding table in A
misc fields
223.1.1.1
223.1.2.3
data
  • Starting at A, dest. E
  • look up network address of E in forwarding table
  • E on different network
  • A, E not directly attached
  • routing table next hop router to E is 223.1.1.4
  • link layer sends datagram to router 223.1.1.4
    inside link-layer frame
  • datagram arrives at 223.1.1.4
  • continued..

7
Getting a datagram from source to dest.
forwarding table in router
misc fields
223.1.1.1
223.1.2.3
data
  • Arriving at 223.1.4, destined for 223.1.2.2
  • look up network address of E in routers
    forwarding table
  • E on same network as routers interface 223.1.2.9
  • router, E directly attached
  • link layer sends datagram to 223.1.2.2 inside
    link-layer frame via interface 223.1.2.9
  • datagram arrives at 223.1.2.2!!! (hooray!)

8
Approaches to Routing Distance-vector
  • Each node (router or host) exchange information
    with neighboring nodes
  • Neighbors are both directly connected to same
    network
  • First generation routing algorithm for ARPANET
  • Node maintains vector of link costs for each
    directly attached network and distance and
    next-hop vectors for each destination
  • Used by Routing Information Protocol (RIP)
  • Requires transmission of lots of information by
    each router
  • Distance vector to all neighbors
  • Contains estimated path cost to all networks in
    configuration
  • Changes take long time to propagate

9
Approaches to Routing Link-state
  • Designed to overcome drawbacks of distance-vector
  • When router initialized, it determines link cost
    on each interface
  • Advertises set of link costs to all other routers
    in topology
  • Not just neighboring routers
  • From then on, monitor link costs
  • If significant change, router advertises new set
    of link costs
  • Each router can construct topology of entire
    configuration
  • Can calculate shortest path to each destination
    network
  • Router constructs routing table, listing first
    hop to each destination
  • Router does not use distributed routing algorithm
  • Use any routing algorithm to determine shortest
    paths
  • In practice, Dijkstra's algorithm
  • Open shortest path first (OSPF) protocol uses
    link-state routing.
  • Also second generation routing algorithm for
    ARPANET

10
Exterior Router Protocols Not Distance-vector
  • Link-state and distance-vector not effective for
    exterior router protocol
  • Distance-vector assumes routers share common
    distance metric
  • ASs may have different priorities
  • May have restrictions that prohibit use of
    certain other AS
  • Distance-vector gives no information about ASs
    visited on route

11
Exterior Router Protocols Not Link-state
  • Different ASs may use different metrics and have
    different restrictions
  • Impossible to perform a consistent routing
    algorithm.
  • Flooding of link state information to all routers
    unmanageable 

12
Exterior Router Protocols Path-vector
  • Dispense with routing metrics
  • Provide information about which networks can be
    reached by a given router and ASs crossed to get
    there
  • Does not include distance or cost estimate
  • Each block of information lists all ASs visited
    on this route
  • Enables router to perform policy routing
  • E.g. avoid path to avoid transiting particular AS
  • E.g. link speed, capacity, tendency to become
    congested, and overall quality of operation,
    security
  • E.g. minimizing number of transit Ass

13
Border Gateway Protocol (BGP)
  • For use with TCP/IP internets
  • Preferred BGP of the Internet
  • Messages sent over TCP connections
  • Open
  • Update
  • Keep alive
  • Notification
  • Procedures
  • Neighbor acquisition
  • Neighbor reachability
  • Network reachability

14
Intra-AS Routing
  • Also known as Interior Gateway Protocols (IGP)
  • Most common Intra-AS routing protocols
  • RIP Routing Information Protocol
  • OSPF Open Shortest Path First
  • IGRP Interior Gateway Routing Protocol (Cisco
    proprietary)

15
RIP ( Routing Information Protocol)
  • Distance vector algorithm
  • Distance metric of hops (max 15 hops)
  • Distance vectors exchanged among neighbors every
    30 sec via Response Message (also called
    advertisement)
  • Each advertisement list of up to 25 destination
    nets within AS

16
RIP Example
z
w
x
y
A
D
B
C
Destination Network Next Router Num. of
hops to dest. w A 2 y B 2
z B 7 x -- 1 . . ....
Routing table in D
17
RIP Example
Dest Next hops w - - x -
- z C 4 . ...
Advertisement from A to D
Destination Network Next Router Num. of
hops to dest. w A 2 y B 2 z B
A 7 5 x -- 1 . . ....
Routing table in D
18
RIP Link Failure and Recovery
  • If no advertisement heard after 180 sec --gt
    neighbor/link declared dead
  • routes via neighbor invalidated
  • new advertisements sent to neighbors
  • neighbors in turn send out new advertisements (if
    tables changed)
  • link failure info quickly propagates to entire
    net
  • poison reverse used to prevent ping-pong loops
    (infinite distance 16 hops)

19
RIP Table processing
  • RIP routing tables managed by application-level
    process called route-d (daemon)
  • advertisements sent in UDP packets, periodically
    repeated, use port number 520

Transprt (UDP)
Transprt (UDP)
network forwarding (IP) table
network (IP)
forwarding table
link
link
physical
physical
20
OSPF (Open Shortest Path First)
  • Uses Link State algorithm
  • Topology map at each node
  • Route computation using Dijkstras algorithm
  • Router broadcasts link state information upon
    updating, also broadcasts link state periodically
  • Advertisements disseminated to entire AS (via
    flooding)
  • Carried in OSPF messages directly over IP (rather
    than TCP or UDP)

21
OSPF advanced features (not in RIP)
  • Security all OSPF messages authenticated (to
    prevent malicious intrusion), only allow trusted
    routers participation
  • Multiple same-cost paths allowed (only one path
    in RIP)
  • Integrated uni- and multicast support
  • Multicast OSPF (MOSPF) uses same topology data
    base as OSPF
  • Hierarchical OSPF in large domains.

22
Hierarchical OSPF
23
Hierarchical OSPF
  • Two-level hierarchy local area, backbone.
  • Link-state advertisements only in area
  • each nodes has detailed area topology only know
    direction (shortest path) to nets in other areas.
  • Area border routers summarize distances to
    nets in own area, advertise to other Area Border
    routers belong to both an area and the backbone
    area.
  • Backbone routers run OSPF routing limited to
    backbone.
  • Boundary routers connect to other ASs.

24
Inter-AS routing in the Internet BGP
25
Internet inter-AS routing BGP
  • BGP (Border Gateway Protocol) the de facto
    standard
  • Path Vector protocol
  • similar to Distance Vector protocol
  • each Border Gateway broadcast to neighbors
    (peers) entire path (i.e., sequence of ASs) to
    destination
  • BGP routes to networks (ASs), not individual
    hosts
  • E.g., Gateway X may send its path to dest. Z
  • Path (X,Z) X,Y1,Y2,Y3,,Z

26
BGP Operations
  • Three activities involving route advertisements
  • Receiving and filtering route advertisements from
    directly attached neighbors, ignore
    advertisements that contain its own AS number in
    the AS-PATH to prevent loop
  • Route selection use routing policy to pick a
    path from among those advertised
  • Sending route advertisements to neighbors
  • Example gateway X send its path to peer gateway
    W
  • W may or may not select path offered by X
  • cost, policy (dont route via competitors AS),
    loop prevention reasons.
  • Note X can control incoming traffic by
    controlling it route advertisements to peers
  • e.g., dont want to route traffic to Z -gt dont
    advertise any routes to Z

27
BGP controlling who routes to you
  • A,B,C are provider networks
  • X,W,Y are customer (of provider networks)
  • X is dual-homed attached to two networks
  • X does not want to route from B via X to C
  • .. so X will not advertise to B a route to C

28
BGP controlling who routes to you
  • A advertises to B the path AW
  • B advertises to X the path BAW
  • Should B advertise to C the path BAW?
  • No way! B gets no revenue for routing CBAW
    since neither W nor C are Bs customers
  • B wants to force C to route to w via A
  • B wants to route only to/from its customers!

29
Why different Intra- and Inter-AS routing ?
  • Policy
  • Inter-AS admin wants control over how its
    traffic routed, who routes through its net.
  • Intra-AS single admin, so no policy decisions
    needed
  • Scale
  • hierarchical routing saves table size, reduced
    update traffic
  • Performance
  • Intra-AS can focus on performance
  • Inter-AS policy may dominate over performance
Write a Comment
User Comments (0)
About PowerShow.com