Internet Routing

Tom Kelliher, CS 325

Apr. 27, 2011

Administrivia

Announcements

Assignment

Read 5.1, 5.3-5.6, 5.9.

From Last Time

Introduction to routing.

Outline

  1. Intra-AS routing: RIP and OSPF.

  2. Inter-AS routing: BGP.

Coming Up

Link Layer.

Intra-AS Routing

RIP

  1. Distance vector algorithm.

  2. Uses hop count as metric.

    Maximum hop count of a path is 15, limiting AS size.

    Distances from A:

    \includegraphics[width=4in]{Figures/fig04_34.eps}

  3. RIP advertisements are sent to neighboring routers every 30 seconds.

  4. If no advertisement received for 180 seconds, assume router/link dead.

  5. Example. Consider router D in the following portion of an AS:

    \includegraphics[width=5in]{Figures/fig04_35.eps}

    Routing table in D:

    Destination Subnet Next Router Hop Count
    w A 2
    y B 2
    z B 7
    x - 1
    $\cdots$ $\cdots$ $\cdots$

    Advertisement from A:

    Destination Subnet Next Router Hop Count
    z C 4
    w - 1
    x - 1
    $\cdots$ $\cdots$ $\cdots$

    Updated routing table in D:

    Destination Subnet Next Router Hop Count
    w A 2
    y B 2
    z A 5
    x - 1
    $\cdots$ $\cdots$ $\cdots$

  6. RIP as implemented in routed:

    \includegraphics[width=5in]{Figures/fig04_39.eps}

OSPF

  1. Link state algorithm run by each router.

    Link state info floods the network.

  2. Link costs can be configured by administrator.

  3. Link state updates sent each time link state changes, or every 30 minutes.

  4. Envisioned as a replacement for RIP. Improvements:
    1. Security -- Authentication can be implemented.

    2. Multiple same-cost paths.

    3. Integrated support for unicast and multicast routing.

    4. Support for hierarchy within a single AS.

  5. Hierarchical routing in OSPF:

    \includegraphics{Figures/fig04_40.eps}

    1. An AS is split into areas.

    2. Each area has one or more area border routers.

      Area border routers ``belong'' to two areas.

    3. Link state info is broadcast only within an area.

    4. One area is designated the ``backbone'' and routes datagrams between areas.

Inter-AS Routing -- BGP

  1. BGP enables:
    1. Neighboring ASs to exchange subnet reachability info.

      eBGP.

    2. Reachability info to propagate to routers internal to an AS.

      iBGP.

    3. Routers to determine ``good'' routes based on reachability info and AS policy.

    \includegraphics{Figures/fig04_41.eps}

  2. ASs described by ASNs.

  3. Route described by prefix, AS-PATH, and NEXT-HOP.

    AS-PATH prevents looping and determines path ``length.''

    NEXT-HOP is first hop router, used to configure routing tables if route is used.

    Use NEXT-HOP and hot potato routing to determine route to subnet x:

    \includegraphics[width=5in]{Figures/fig04_42.eps}

  4. Import policies are used to filter routes.

    \includegraphics[width=5in]{Figures/fig04_43.eps}

    Policy examples:

    1. Stub networks should only carry traffic to/from them.

    2. Multi-homed stub x should not carry traffic between B and C.

    3. B may not want to carry traffic between A and C.



Thomas P. Kelliher 2011-04-27
Tom Kelliher