+ All Categories
Home > Documents > 3.1 Routing Fundamental

3.1 Routing Fundamental

Date post: 04-Apr-2018
Category:
Upload: isaac-williams
View: 215 times
Download: 0 times
Share this document with a friend

of 57

Transcript
  • 7/29/2019 3.1 Routing Fundamental

    1/57

    Routing Fundamentals

  • 7/29/2019 3.1 Routing Fundamental

    2/57

    IP Routing Table

    The layer 3 uses the IP routing table to send

    packets from the source to destination. If not match Default Gateway

  • 7/29/2019 3.1 Routing Fundamental

    3/57

    Rout ers rout e packet s

    A network must consistently represent the paths availablebetween routers

    In this dynamic environment, the paths represented by somekind of addressing scheme - must be kept current

    Layer 3 addresses across the entire internetwork alsoimproves the use of bandwidth by preventing unnecessary

    broadcasts.

  • 7/29/2019 3.1 Routing Fundamental

    4/57

    Net w ork and host addressing

    Router Determine Full Network address = Host And SubnetMask Lookup Destination Host Add. match which out going interface on Router

  • 7/29/2019 3.1 Routing Fundamental

    5/57

    Router Functions

    Routing = building maps andgiving directions

    Switching = moving packetsbetween interfaces

    Routers are packet switches

  • 7/29/2019 3.1 Routing Fundamental

    6/57

    Routed Protocol

    Routed protocolused between

    routers to directuser traffic

    Examples: IP, IPX

    NetworkProtocol

    DestinationNetwork

    Protocol

    Name

    1.0

    2.03.0

    1.1

    2.13.1

  • 7/29/2019 3.1 Routing Fundamental

    7/57

    Routing Protocol

    Routing protocol

    used only betweenrouters to maintainrouting tables

    Examples: RIP, IGRP, EIGRP, etc

    NetworkProtocol

    DestinationNetwork

    Protocol Name 1.02.03.0

    Exit Portto Use

    1.12.13.1

  • 7/29/2019 3.1 Routing Fundamental

    8/57

    St at ic versus dynamic rout es

    Static Route Uses a programmed route that a network

    administrator enters into the router

    Dynamic Route

    Uses a route that network routing protocol

    adjusts automatically for topology or trafficchanges

  • 7/29/2019 3.1 Routing Fundamental

    9/57

    Defines a path to an IP destination

    network or subnet

    ip route network [ mask] { address | interface } [ distance][ permanent ]

    Router (config)#

    Static Routing

  • 7/29/2019 3.1 Routing Fundamental

    10/57

    Cisco A

    S0

    S1

    S2

    172.16.2.2

    St at ic Rout e Ex am pleSt a t ic Rout e Ex am ple

    Where

    you reach

    Network

    want toroute

    172.16.2.0

    172.16.1.0/24

    172.16.2.1

    Cisco BE0

    S1

    ip route 172.16.1.0 255.255.255.0 172.16.2.1

  • 7/29/2019 3.1 Routing Fundamental

    11/57

    Cisco A

    S0

    S1

    S2

    172.16.2.2

    St at ic Rout e Ex am ple (c ont )St a t i c Rout e Ex am ple (c ont )

    Where

    you reach

    Network

    want toroute

    172.16.2.0

    172.16.1.0/24

    172.16.2.1

    Cisco BE0

    S1

    ip route 172.16.1.0 255.255.255.0 S0

  • 7/29/2019 3.1 Routing Fundamental

    12/57

    Why dynamic routing is necessary

    More flexibility Automatically updating path to reach destination network. Direct traffic from the same session over different paths in a network

    for better performance. This is known as load-sharing.

  • 7/29/2019 3.1 Routing Fundamental

    13/57

    Dynamic routing operations

    How-to How to send updates What knowledge is contained in these updates When to send this knowledge How to locate recipients of the update

    Function

    9Maintenance of

    a routing table

    9Timelydistribution ofknowledge, in theform of routingupdates, to other

    routers

  • 7/29/2019 3.1 Routing Fundamental

    14/57

    Routing metrics are used by routing algorithms to determine

    the desirability of a given route to a destination network.

    Different routing protocols implement different routing

    metrics.

    Routing metrics represent network characteristics.

    Metric information is stored in routing tables. Routing metrics include:

    - Path Length- Reliability

    - Delay- Bandwidth- Load- Cost

    Routing Protocol Metrics

  • 7/29/2019 3.1 Routing Fundamental

    15/57

    Path Length

    The path length metric is based on either path cost or hop count:

    Path cost- Path cost is an arbitrary value assigned to each network link

    by the network administrator. The path length is the sum of allcosts associated with all the links traversed.

    Hop count

    - Hop count is a value that counts the number of intermediatesystems (such as routers) through which a packet must passto travel from the source to the destination. The path length isthe sum of all hops in the path.

    Routing Protocol Metrics (cont)

  • 7/29/2019 3.1 Routing Fundamental

    16/57

    ReliabilityBased on a number of network characteristics. Include:-

    - Bit-Error Rate (the ratio of received bits that contain errors)

    - How often each network link fails- Once down, how quickly each network link can be repaired

    DelayBased on the length of time required to move a packet from the source to

    a destination. Conglomeration of several variables:- Bandwidth of network links

    - Queue lengths at intermediate routers

    - Network congestion on network links

    - Physical distance to be travelled from the source to the destination

    BandwidthBased on the available traffic capacity of each network link.

    - Routes through links with greater bandwidth do not necessarily

    provide better routes than routes through slower links.

    Routing Protocol Metrics (cont)

  • 7/29/2019 3.1 Routing Fundamental

    17/57

    Load

    Based on the degree to which a network resource(such as a router) is busy. Load is calculatedaccording to factors such as:

    9 CPU utilization

    9 Packets processed per second.

    Cost

    Based on the monetary cost of using each networklink. For example, a slower company-owned link canbe configured as preferable over faster public links

    that cost money for usage time.

    Routing Protocol Metrics (cont)

  • 7/29/2019 3.1 Routing Fundamental

    18/57

    Three classes of rout ing protocols

    shortest path first

  • 7/29/2019 3.1 Routing Fundamental

    19/57

    Time to convergence

    Convergence:The knowledge needs to reflect an

    accurate, consistent view of the new topologyafter network fail or restructure.

    Convergence occurs when all routers use a

    consistent perspective of network topology After topology changes, Routers must re-compute

    routes, which disrupts routing

    The process and time required for router re-convergence varies with routing protocols

  • 7/29/2019 3.1 Routing Fundamental

    20/57

    An autonomous system is a collection of networksunder a common administrative domain.

    IGPs operate within an autonomous system.

    EGPs connect different autonomous systems.

    Autonomous Systems: Interior orExterior Routing Protocols

  • 7/29/2019 3.1 Routing Fundamental

    21/57

    Administrative Distance:Ranking Routes

  • 7/29/2019 3.1 Routing Fundamental

    22/57

    Administrative Distance

  • 7/29/2019 3.1 Routing Fundamental

    23/57

    Routers pass periodic copies of routing table to neighborrouters and accumulate distance vectors.

    Distance Vector Routing Protocols

  • 7/29/2019 3.1 Routing Fundamental

    24/57

    Routers discover the best path todestinations from each neighbor.

    Sources of Information andDiscovering Routes

  • 7/29/2019 3.1 Routing Fundamental

    25/57

    Selecting theBest Route with Metrics

  • 7/29/2019 3.1 Routing Fundamental

    26/57

    Updates proceed step-by-stepfrom router to router.

    Maintaining Routing Information

  • 7/29/2019 3.1 Routing Fundamental

    27/57

    Each node maintains the distance from itself to eachpossible destination network.

    Inconsistent Routing Entries

  • 7/29/2019 3.1 Routing Fundamental

    28/57

    Slow convergence produces inconsistent routing.

    Inconsistent Routing Entries (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    29/57

    Router C concludes that the best path to network10.4.0.0 is through router B.

    Inconsistent Routing Entries (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    30/57

    Router A updates its table to reflect the new buterroneous hop count.

    Inconsistent Routing Entries (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    31/57

    Hop count for network 10.4.0.0 counts to infinity.

    Count to Infinity

  • 7/29/2019 3.1 Routing Fundamental

    32/57

    Define a limit on the number of hops to preventinfinite loops.

    Defining a Maximum

  • 7/29/2019 3.1 Routing Fundamental

    33/57

    Packets for network 10.4.0.0 bounce (loop) betweenrouters B and C.

    Routing Loops

  • 7/29/2019 3.1 Routing Fundamental

    34/57

    It is never useful to send information about a routeback in the direction from which the original informationcame.

    Split Horizon

  • 7/29/2019 3.1 Routing Fundamental

    35/57

    Routers advertise the distance of routes that have gonedown to infinity.

    Route Poisoning

  • 7/29/2019 3.1 Routing Fundamental

    36/57

    Poison reverse overrides split horizon.

    Poison Reverse

  • 7/29/2019 3.1 Routing Fundamental

    37/57

    The router keeps an entry for the networks possibledown state, allowing time for other routers to recomputefor this topology change.

    Holddown Timers

  • 7/29/2019 3.1 Routing Fundamental

    38/57

    The router sends updates when a change in its routingtable occurs.

    Triggered Updates

  • 7/29/2019 3.1 Routing Fundamental

    39/57

    Distance Vector Operation

  • 7/29/2019 3.1 Routing Fundamental

    40/57

    Distance Vector Operation (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    41/57

    Distance Vector Operation (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    42/57

    Distance Vector Operation (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    43/57

    Distance Vector Operation (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    44/57

    Distance Vector Operation (Cont.)

  • 7/29/2019 3.1 Routing Fundamental

    45/57

    After initial flood, pass small event-triggered link-state

    updates to all other routers

    Link-State Routing Protocols

  • 7/29/2019 3.1 Routing Fundamental

    46/57

    Link-State Routing Features

    Li k St t N t k Hi h E l

  • 7/29/2019 3.1 Routing Fundamental

    47/57

    Minimizes routing table entries

    Localizes impact of a topology change within

    an area

    Link-State Network Hierarchy Example

  • 7/29/2019 3.1 Routing Fundamental

    48/57

    Link-State Routing Protocol Algorithms

  • 7/29/2019 3.1 Routing Fundamental

    49/57

    Benefits of Link-State Routing

    Fast convergence: changes are reportedimmediately by the source affected.

    Robustness against routing loops: Routers know the topology. Link-state packets are sequenced and acknowledged.

    By careful (hierarchical) network design, you canutilize resources optimally.

    C t f Li k St t R ti

  • 7/29/2019 3.1 Routing Fundamental

    50/57

    Caveats of Link-State Routing

    Significant demands for resources:

    Memory (three tables: adjacency, topology, forwarding) CPU (Dijkstras algorithm can be intensive, especially when a lot

    of instabilities are present.)

    Requires very strict network design (when more areas

    area routing) Problems with partitioning of areas

    Configuration generally simple but can be complex

    when tuning various parameters and when the design iscomplex

    Troubleshooting easier than in distance vector routing

  • 7/29/2019 3.1 Routing Fundamental

    51/57

    Drawbacks to Link-State Routing Protocols

    Initial discovery may cause flooding.

    Memory- and processor-intensive.

    Distance-vector versus link-state

  • 7/29/2019 3.1 Routing Fundamental

    52/57

    rout ing protocols

    Distance-Vector View network technology

    from neighbors perspective

    Adds distance vectors from

    router to router Frequent, periodics updates:

    Slow convergence

    Passes copies of routing

    tables to neighbors router

    Link-state Gets common view of entire

    network topology

    Calculates the shortest path

    to other routers Event-triggered updates:

    Faster convergence

    Passes link-state routing

    updates to other routers

    Hybrid rout ing protocols

  • 7/29/2019 3.1 Routing Fundamental

    53/57

    Hybrid rout ing protocols

    Cisco's EIGRP (Enhanced Interior GatewayRouting Protocol)

    LAN t o LAN rout ing

  • 7/29/2019 3.1 Routing Fundamental

    54/57

    LAN-t o-LAN rout ing

    LAN to WAN Routing

  • 7/29/2019 3.1 Routing Fundamental

    55/57

    LAN to WAN Routing

    Path select ion and sw it ching ofl i l l d di

  • 7/29/2019 3.1 Routing Fundamental

    56/57

    mult iple prot ocols and media

  • 7/29/2019 3.1 Routing Fundamental

    57/57

    57


Recommended