routing and routing protocols pjc ccna semester 2 ver. 3.0 by william kelly

21
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Upload: elwin-horton

Post on 08-Jan-2018

218 views

Category:

Documents


0 download

DESCRIPTION

How Routers Route Packets Consistent end-to-end Network addressing is the key to routing Broadcasts are minimized and bandwidth is conserved

TRANSCRIPT

Page 1: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Routing and Routing Protocols

PJC CCNA Semester 2 Ver. 3.0byWilliam Kelly

Page 2: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Routing Basics Routing is the process of forwarding packets

from a source to a destination based on the destination IP address of the packet

Routing occurs at layer 3 of the OSI model (network layer)

Routes can be entered by the administrator (static) or learned from other routers (dynamic)

The network layer provides a “best-effort” delivery system

The router uses a routing table to send packets from a source to a destination

Page 3: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

How Routers Route Packets Consistent end-to-end Network

addressing is the key to routing Broadcasts are minimized and

bandwidth is conserved

Page 4: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

The 2 Functions of a Router Best Path Determination – The router

determines the best path to a destination by examining the Network portion of an address and consulting it’s routing tables (a map of the network contained in each router)

Switching – A router accepts a packet on one interface and forwards it to another interface

Page 5: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Routed vs. Routing Protocols Routed protocols are network

protocols that provide enough information for a packet to be forwarded from one host to another

Routing protocols allow routers to communicate information about network paths and to maintain tables

Page 6: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Routed vs. Routing Protocols Routed protocols are network

protocols that provide enough information for a packet to be forwarded from one host to another

Routed protocols allow routers to communicate information about network paths and to maintain tables

Page 7: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Common Routed and Routing Protocols

Routed Protocols IP IPX Appletalk

Routing Protocols RIP IGRP OSPF EIGRP BGP

Page 8: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Static Routing Routing instructions manually entered

by an administrator Routes must be changed manually

when the network topology changes Static routing is labor intensive Static routes are used to enhance

security and to set up routes accessible by only one path

Page 9: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Network Layer Protocols

Application

Presentation

Session

Transport

Network

Data Link

Physical1

2

3

4

5

6

7

Network

Data Link

Physical1

2

3 Network

Data Link

Physical1

2

3

Application

Presentation

Session

Transport

Network

Data Link

Physical1

2

3

4

5

6

7

Host X Host Y

RouterA

RouterB

Page 10: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Configuring a Static RouteSyntax for entering a static route using the

interface:Router(config)# ip route 192.168.2.0 255.255.255.0 S1

Syntax for entering a static route using the next hop address:Router(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.2

Syntax for entering a default route (sometimes called a quad route):Router(config)# ip route 0.0.0.0 0.0.0.0 S1

Syntax for entering a quad route with an administrative distance

Router(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 4

Page 11: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Syntax for entering a static route using the interface:

Router(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.2

Examining Static Route SyntaxSyntax for entering a static route using the interface:

Router(config)# ip route 192.168.2.0 255.255.255.0 S1

destination network address

next hop interface

next hop addressdestination network address

Page 12: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Common Administrative Distances

Page 13: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Application of Administrative distances in Static Routes

When using a next hop address the default administrative distance is 1

When using an outgoing interface the default administrative distance is 0

Page 14: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Dynamic Routing Dynamic routing allows routers to

automatically share routing (topology) information with other routers

Page 15: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Routing Protocols RIP – distance vector protocol, metric is hop

count, max hop count is 15, updates every 30 seconds

IGRP – distance vector protocol, metric is bandwidth, delay, load, and reliability, highly scalable for large networks, updates every 90 seconds

OSPF – link state protocol, uses triggered updates, VLSM compliant

EIGRP – Cisco proprietary hybrid protocol, VLSM compliant

BGP – exterior routing protocol that was designed to work between ISP’s

Page 16: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Commonly Used Metrics Bandwidth – data capacity of a link Delay – length of time for a packet to

travel through links Load – amount of network activity Reliability – error rate Hop Count – number of routers a

packet must traverse Ticks – each tick is 1/18 of a second Cost

Page 17: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Link State Basics Link State Protocols use the Link State

Algorithm (also called the Dijkstras algorithm)1. Link State Advertisements (LSA’s) are

transferred between routers to provide topology information

2. Each router maintains a topology database of LSA information

3. The Dijkstras algorithm computes the shortest paths to different networks

4. The routing table is then populated with the best paths

Page 18: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Link State Concerns Processor Overhead Memory requirements Bandwidth consumption – The initial

discovery process is bandwidth intensive; thereafter, minimal bandwidth is required

Page 19: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Hybrid Routing Protocols Similar to distance vector protocols in

that metrics are used but the metrics are more accurate.

Similar to Link State protocols in that triggered updates are used instead of period updates

Examples are IS-IS and EIGRP

Page 20: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Configuring a Router to Use Routing ProtocolsStarting routing

Router(config)# router protocol {options}ex: Router(config)# router rip

Entering Networks

Router(config)# network network-number ex: Router(config)# network 192.168.1.0

Note: A separate network line must be used to enter every network whose interface will participate in the sending and receiving of routing updates

Page 21: Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly

Autonomous Systems Interior Gateway Protocols (IGP) were

designed to be used in a network designed to be administered by a single organization

Exterior Gateway Protocols (EGP) were designed to be used between networks that are controlled by two organizations. EGP’s such as BGP are used between ISP’s

Every autonomous system is assigned a 16 bit identifying number by the American Registry of Internet Numbers (ARIN)