chapter 3- intro to dynamic routing protocols

22
Chapter 3- Introduction to Dynamic Routing Protocols Exploration 2 KC Khor 1 KC KHOR Multimedia University

Upload: mukayev-darkhan

Post on 08-Apr-2015

279 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 3- Intro to Dynamic Routing Protocols

Chapter 3- Introduction to Dynamic

Routing Protocols

Exploration 2

KC Khor

1 KC KHOR Multimedia University

Page 2: Chapter 3- Intro to Dynamic Routing Protocols

Perspective & Background

KC KHOR Multimedia University2

Ways of Classifying routing Protocols (Later)

IPv4

Page 3: Chapter 3- Intro to Dynamic Routing Protocols

Dynamic Routing Protocols

� Routing protocols allow routers to dynamically share information about remote networks and automatically add this information to their own routing tables.

� Routing protocols determine the best path to each network which is then added to the routing table.

� Routing protocols are useful when there is a change in

KC KHOR Multimedia University3

� Routing protocols are useful when there is a change in network topology or when a particular path is failed.

� Less administrative overhead compared to Static routes

� But it requires resources of a router for protocol operations including CPU time and network link bandwidth

� *** Administrators use both static routes and routing protocols for their networks. But it depends on situation.

Page 4: Chapter 3- Intro to Dynamic Routing Protocols

Compare Static Routes & Routing Protocols

KC KHOR Multimedia University4

Page 5: Chapter 3- Intro to Dynamic Routing Protocols

Classifying Dynamic Routing Protocols

To understand Interior / Exterior Gateway Routing protocol, you need to understand AS

KC KHOR Multimedia University5

Page 6: Chapter 3- Intro to Dynamic Routing Protocols

Autonomous System (AS)

� To understand Interior / Exterior Gateway Routing protocol, you need to understand AS.

� An autonomous system (AS) - otherwise known as a routing domain - is a collection of routers under a common administration.

Interior Gateway Protocols (IGP) are used routing inside

KC KHOR Multimedia University6

� Interior Gateway Protocols (IGP) are used routing insidean autonomous system

� Exterior Gateway Protocols (EGP) are used for routing between autonomous systems.

Page 7: Chapter 3- Intro to Dynamic Routing Protocols

Autonomous System (AS) An AS comprised of many individual networksthat are normally under an ISP

KC KHOR Multimedia University7

Page 8: Chapter 3- Intro to Dynamic Routing Protocols

Classifying IGP

� Interior Gateway Protocols (IGPs) can be classified as two types:

- Distance vector routing protocols

- Link-state routing protocols

� Distance vector means that routes are advertised as vectors of distance and direction

KC KHOR Multimedia University8

distance and direction

- Ex: RIP, IGRP

- periodic updates are sent

- Ex of metric: hop count

- Best path: uses Bellman-Ford algorithm

- Information is exchanged via neighbors (thus don’t have complete view of a network)

Page 9: Chapter 3- Intro to Dynamic Routing Protocols

Classifying IGP (Distance Vector)

� When to use Distance Vector routing protocols?

- The network is simple and flat and does not require a special hierarchical design.

- The administrators do not have enough knowledge to configure and troubleshoot link-state protocols.

KC KHOR Multimedia University9

- Specific types of networks, such as hub-and-spoke networks, are being implemented.

-Worst-case convergence times in a network are not a concern.

Page 10: Chapter 3- Intro to Dynamic Routing Protocols

Classifying IGP (Link State)

� Link State routing protocols are able to create a complete view on a network by gathering information from all the other routers.

� All routers share the same topology map.

� Best path to all the destinations is selected based on the created topology map.

KC KHOR Multimedia University10

the created topology map.

� Link-state routing protocols do not use periodic updates. After the network has converged, a link-state update only sent when there is a change in the topology.

Page 11: Chapter 3- Intro to Dynamic Routing Protocols

Classifying IGP (Link State)

� Link-state protocols work best in situations where:

- The network design is hierarchical, usually occurring in large networks.

- The administrators have a good knowledge of the implemented link-state routing protocol.

KC KHOR Multimedia University11

- Fast convergence of the network is crucial.

Page 12: Chapter 3- Intro to Dynamic Routing Protocols

Classful Routing Protocols

� Network addresses were allocated based on classes, class A, B, or C

� In this case, the classful routing protocols did not need to include the subnet mask in the routing update because the network mask could be determined based on the first octet of the network address

KC KHOR Multimedia University12

octet of the network address

� Therefore, classful routing protocols:

- cannot be used when a network is subnetted using more than one subnet mask (VLSM)

- are unable to support discontiguous networks

� Ex: RIPv1, IGRP

Page 13: Chapter 3- Intro to Dynamic Routing Protocols

Classless Routing Protocols

� Today's networks are no longer allocated based on classes and the subnet mask cannot be determined by the value of the first octet.

� Classless routing protocols include the subnet mask with the network address in routing updates.

Therefore, they are able to support VLSM and

KC KHOR Multimedia University13

� Therefore, they are able to support VLSM and discontiguos networks

� Ex: RIPv2, EIGRP, OSPF, IS-IS, BGP

Page 14: Chapter 3- Intro to Dynamic Routing Protocols

Classful vs Classless

KC KHOR Multimedia University14

Page 15: Chapter 3- Intro to Dynamic Routing Protocols

Convergence

� Convergence is when all routers' routing tables are at a state of consistency.

� The network has converged when all routers have complete and accurate information about the network.

� Convergence properties include the speed of propagation of routing information and the calculation of optimal

KC KHOR Multimedia University15

of routing information and the calculation of optimal paths.

� Routing protocols can be rated based on the speed to convergence; the faster the convergence, the better the routing protocol.

� Generally, RIP and IGRP are slow to converge, whereas EIGRP and OSPF are faster to converge

Page 16: Chapter 3- Intro to Dynamic Routing Protocols

Metrics

� A metric is a value used by routing protocols to assign costs to reach remote networks.

� The metric is used to determine which path is most preferable when there are multiple paths to the same remote network.

RIP - hop count

KC KHOR Multimedia University16

IGRP and EIGRP:- Bandwidth, Delay, Reliability, and Load - Best path is chosen by the route with the smallest composite metric value calculated from these multiple parameters. By default, only bandwidth and delay are used.

IS-IS and OSPF- Cost - Best path is chosen by the route with the lowest cost. Cisco's implementation of OSPF uses bandwidth.

Page 17: Chapter 3- Intro to Dynamic Routing Protocols

Metrics

� Metrics used in IP routing protocols include:

Hop count - A simple metric that counts the number of routers a packet must traverse

Bandwidth - Influences path selection by preferring the path with the highest bandwidth

Load - Considers the traffic utilization of a certain link

KC KHOR Multimedia University17

Load - Considers the traffic utilization of a certain link

Delay - Considers the time a packet takes to traverse a path

Reliability - Assesses the probability of a link failure, calculated from the interface error count or previous link failures

Cost - A value determined either by the IOS or by the network administrator to indicate preference for a route. Cost can represent a metric, a combination of metrics or a policy.

Page 18: Chapter 3- Intro to Dynamic Routing Protocols

RIP and its Metric

KC KHOR Multimedia University18

RIP 2 hop counts from R2 to 192.168.8.0

Page 19: Chapter 3- Intro to Dynamic Routing Protocols

Administrative Distance (AD)� How does a router determine which route to install in the routing table when

it has learned about the same network from more than one routing source?

� In this case, you need AD.

KC KHOR Multimedia Univ. , Cyberjaya19

� Administrative distance (AD) defines the preference of a routing source.

� Which route will R2 choose to send packets to the destination network 192.168.6.0?

Page 20: Chapter 3- Intro to Dynamic Routing Protocols

Administrative Distance (AD)

KC KHOR Multimedia University20

AD / Metric Value

Page 21: Chapter 3- Intro to Dynamic Routing Protocols

AD (Directly Connected Networks & Static

Routes)

� AD for directly connected networks – 0

� The AD value is not listed in show ip route for directly connected networks

� AD for static routes (next hop IP or exit interface) – 1

� The AD value is not listed in show ip route when you

KC KHOR Multimedia University21

� The AD value is not listed in show ip route when you configure a static route with the exit interface specified

Page 22: Chapter 3- Intro to Dynamic Routing Protocols

The End

http://fit.mmu.edu.my/cisco

KC KHOR Multimedia University22