Top Banner
Routing Fundamental W.lilakiatsakun
76

Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Jan 02, 2016

Download

Documents

Anis Lewis
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Routing Fundamental

W.lilakiatsakun

Page 2: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Review Routing Fundamental

• VLSM • Static & Dynamic Routing • Routing algorithm concept

Page 3: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

VLSM

• Variable Length Subnet Mask• VLSM allows an organization to use more than

one subnet mask within the same network address space

• VLSM implementation maximizes address efficiency, and is often referred to as subnetting a subnet

• Main reason – addressing crisis

Page 4: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Short-term solution of addressing crisis

• Subnetting (1985)• VLSM (1987)• Classless interdomain routing (1993)• Private IP • NAT (Network Address Translation) /PAT (Port

Address Translation)

Page 5: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classful routing protocol

• RIP V1 (Routing Information Protocol) • IGRP (Interior Gateway Routing Protocol)• Routing table is considered by class of IP

address– 192.168.10.X 192.168.10.0 – 172.10.X.X 172.10.0.0– 10.X.X.X 10.0.0.0

Page 6: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Supporting protocols

• OSPF• Integrated IS-IS• EIGRP• RIP V2• Static Routing• Subnet information will be exchanged as well as

routing information– 172.16.10.0 /255.255.255.0 – 10.5.2.0 /255.255.255.0

Page 7: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

VLSM - example

Page 8: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM

Page 9: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Subnet Mask

• 255.255.255.252 - /30• 255.255.255.248 - /29• 255.255.255.240 - /28• 255.255.255.224 - /27• 255.255.255.192 - /26

• 255.255.255.128 - /25• 255.255.255.0 - /24• 255.255.254.0 - /23• 255.255.252.0 - /22• 255.255.248.0 - /21

Page 10: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Waste of Space (1/2)

• All one subnet and all zero subnet can be used to reduce the waste of space

Page 11: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Waste of space (2/2)

Page 12: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Sub-subnet (1/2)

Page 13: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Sub-subnet (2/2)

Page 14: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (1/6)

Page 15: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (2/6)

Page 16: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (3/6)

Page 17: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (4/6)

Page 18: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (5/6)

Page 19: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Calculating VLSM (6/6)

Page 20: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Problem 1- 192.168.10.0/24

Page 21: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Route Aggregation

• The use of classless interdomain routing (CIDR) and VLSM prevents address waste and promotes route aggregation, or summarization

• Aka. Route Summarization• Save routing table space

Page 22: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Route summarization (1/3)

Page 23: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Route summarization (2/3)

Page 24: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Route summarization (3/3)

Page 25: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Routing fundamental

• Routing is the process that a router uses to forward packets toward the destination network.

• A router makes decisions based upon the destination IP address of a packet.

• To make the correct decisions, routers must learn how to reach remote networks.

• When routers use dynamic routing, this information is learned from other routers.

• When static routing is used, a network administrator configures information about remote networks manually

Page 26: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static Routing (1/2)

• Since static routes are configured manually, network administrators must add and delete static routes to reflect any network topology changes.

• In a large network, the manual maintenance of routing tables could require a lot of administrative time.

Page 27: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static Routing (2/2)

• Static routing is not as scalable as dynamic routing because of the extra administrative requirements.

• In large networks, static routes that are intended to accomplish a specific purpose

• They are often configured in conjunction with a dynamic routing protocol.

Page 28: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static route operation

• Network administrator configures the route • Router installs the route in the routing table • The static route is used to route packets.

Page 29: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static route - Topology

Page 30: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static route – R1 configuration

Page 31: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static route – R1 configuration

Page 32: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Summary static routes (1/3)

• Route Summarization– Multiple static routes can be summarized into a

single static route if:• The destination networks can be summarized into a

single network address, and • The multiple static routes all use the same exit-

interface or next-hop IP address

Page 33: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Summary static routes (2/3)

R3(config)#ip route 172.16.0.0 255.255.252.0 serial0/0/1

Page 34: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Summary static routes (3/3)

Page 35: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Default route (1/5)

• Default routes are used to route packets with destinations that do not match any of the other routes in the routing table.

• Routers are typically configured with a default route for Internet-bound traffic, since it is often impractical and unnecessary to maintain routes to all networks in the Internet.

Page 36: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Default route (2/5)

• A default route is actually a special static route that uses this format: ip route 0.0.0.0 0.0.0.0 [next-hop-address | outgoing interface ]

• The 0.0.0.0 mask, when logically ANDed to the destination IP address of the packet to be routed, will always yield the network 0.0.0.0

• If the packet does not match a more specific route in the routing table, it will be routed to the 0.0.0.0 network.

Page 37: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Default route (3/5)

Page 38: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Default route (4/5)

Static Route Topology

Page 39: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Default route (5/5)Before using default route

After using default route

Page 40: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Dynamic Routing Protocol

• A routing protocol is a set of processes, algorithms, and messages that are used to exchange routing information and populate the routing table with the routing protocol's choice of best paths.

• The purpose of a routing protocol includes:– Discovery of remote networks– Maintaining up-to-date routing information– Choosing the best path to destination networks– Ability to find a new best path if the current path is no longer

available

Page 41: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Routing Protocol

Page 42: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Dynamic Routing Protocol Operation

• In general, the operations of a dynamic routing protocol can be described as follows: – The router sends and receives routing messages on its

interfaces.– The router shares routing messages and routing information

with other routers that are using the same routing protocol– Routers exchange routing information to learn about

remote networks. – When a router detects a topology change the routing

protocol can advertise this change to other routers.

Page 43: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Static Routing VS Dynamic Routing

Page 44: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

AS / IGP and EGP

• 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 for intra-autonomous system routing - routing inside an autonomous system.

• Exterior Gateway Protocols (EGP) are used for inter-autonomous system routing - routing between autonomous systems.

Page 45: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

AS /IGP and EGP

Page 46: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Class of routing protocol

• Most routing algorithms can be classified into one of two categories: – Distance vector – Link-state

• The distance vector routing approach determines the direction, or vector, and distance to any link in an internetwork.

• The link-state approach recreates the exact topology of an entire internetwork.

Page 47: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Distance Vector Routing

• The distance vector routing algorithm passes periodic copies of a routing table from router to router.

• These regular updates between routers communicate topology changes.

• The distance vector routing algorithm is also known as the Bellman-Ford algorithm.

Page 48: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Distance Vector Operation (1/2)

Page 49: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Distance Vector Operation (2/2)

• Each router receives a routing table from its directly connected neighbor routers.

• Router B receives information from Router A. Router B adds a distance vector number, such as a number of hops.

• This number increases the distance vector. • Then Router B passes this new routing table to its

other neighbor, Router C. • This same step-by-step process occurs in all

directions between neighbor routers

Page 50: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Distance Vector Network Discovery

Page 51: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Routing Metric Component

Page 52: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Work best situation for Distance Vector

• Distance vector protocols work best in situations where:– 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.– 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 53: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Link State Protocol

• The link-state algorithm is also known as Dijkstra's algorithm or as the shortest path first (SPF) algorithm.

• The link-state routing algorithm maintains a complex database of topology information

• It also maintain full knowledge of distant routers and how they interconnect

Page 54: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Link State Concept

Page 55: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Link State Concept

• Link-state advertisement (LSA) - a small packet of routing information that is sent between routers

• Topological database - a collection of information gathered from LSAs

• SPF algorithm - a calculation performed on the database that results in the SPF tree

• Routing table - a list of the known paths and interfaces

Page 56: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Link state Network discovery

Page 57: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Link State Concern

Page 58: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Work best situation for 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.– Fast convergence of the network is crucial.

Page 59: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classful routing protocols (1/3)

• Classful routing protocols do not send subnet mask information in routing updates.

• This was at a time when network addresses were allocated based on classes, class A, B, or C.

• A routing protocol 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.

Page 60: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classful routing protocols(2/3)

• Classful routing protocols cannot be used when a network is subnetted using more than one subnet mask,– do not support variable length subnet masks (VLSM).

• There are other limitations to classful routing protocols including their inability to support discontiguous networks.

• Classful routing protocols include RIPv1 and IGRP.

Page 61: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classful routing protocols(3/3)

Page 62: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classless Routing Protocols (1/3)

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

• 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 are required in most networks today because of their support for VLSM

Page 63: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classless Routing Protocols (2/3)

• In the figure, notice that the classless version of the network is using both /30 and /27 subnet masks in the same topology. – Also notice that this topology is using a discontiguous

design.

• Classless routing protocols are RIPv2, EIGRP, OSPF, IS-IS, BGP.

Page 64: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Classless Routing Protocols (3/3)

Page 65: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Convergence (1/3)

• 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 time is the time it takes routers to share information, calculate best paths, and update their routing tables.

• A network is not completely operable until the network has converged; therefore, most networks require short convergence times.

Page 66: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Convergence (2/3)

• Convergence is both collaborative and independent. – The routers share information with each other but

must independently calculate the impacts of the topology change on their own routes.

• Convergence properties include the speed of propagation of routing information and the calculation of optimal paths.

Page 67: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Convergence (3/3)

• 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 68: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Metrics (1/4)

• There are cases when a routing protocol learns of more than one route to the same destination.

• To select the best path, the routing protocol must be able to evaluate and differentiate between the available paths.

• 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.

Page 69: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Metrics (2/4)

Page 70: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Metrics (3/4)• 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– 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.

Page 71: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Metrics (4/4)

• The metric for each routing protocol is:– RIP: Hop count - Best path is chosen by the route

with the lowest hop count.– 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. .

Page 72: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Metric in routing table

Page 73: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Load Balancing

• When two or more routes to the same destination have identical metric values

• The router does not choose only one route. • Instead, the router "load balances" between these equal

cost paths. The packets are forwarded using all equal-cost paths.

• Note: Load balancing can be done either per packet or per destination.

Page 74: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Administrative Distance (AD)(1/3)

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

• Each routing source - including specific routing protocols, static routes, and even directly connected networks - is prioritized in order of most- to least-preferable using an administrative distance value.

• Administrative distance is an integer value from 0 to 255. The lower the value the more preferred the route source.

• An administrative distance of 0 is the most preferred. – Only a directly connected network has an administrative distance of 0,

which cannot be changed.

Page 75: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Administrative Distance (AD) (2/3)

Page 76: Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.

Administrative Distance (AD) (3/3)