29
Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

  • View
    221

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

Mod 10 – Routing Protocols

CIS151

Paul Morris

MHCC

Page 2: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

2

Router Operation

IGPs vs. EGPs

Page 3: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

3

Circuit Switched vs. Packet Switched

From Whatis.com• Circuit Switched: Circuit-switched is a type of network in

which a physical path is obtained for and dedicated to a single connection between two end-points in the network for the duration of the connection. – This type of communication between sender and

receiver is known as connectionless (rather than dedicated).

– Most traffic over the Internet uses packet switching and the Internet is basically a connectionless network.

• Packet Switched: Packet-switched describes the type of network in which relatively small units of data called packets are routed through a network based on the destination address contained within each packet.

Page 4: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

4

Switching

Switching

• Circuit Switched (connection-oriented)– Dial-up Circuits

• POTS• ISDN

– Leased Lines• T1, T3, OC3, OC48

• Packet Switched (connectionless)– Original Packet Switching

• X.25– Faster Packet Switching

• Frame Relay• ATM (Cell Relay)

Page 5: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

5

Connection Oriented

Connection-oriented networks mean that a connection must be established before data is sent and received (phone system).

Page 6: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

6

Connection Oriented

This diagram is not a good representation of connection oriented networks. Connections can happen using circuit switched networks such as ISDN or can happen logically between hosts at layer 4 using TCP.

TCP/IP traffic is sent over connectionless and/or connection-oriented networks. Two hosts can communicate in a logically connection-oriented manner using TCP.

Page 7: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

7

Connectionless Delivery

Routing occurs at Layer 3, which is connectionless delivery (IP). However, most often packets will follow the same path from source to destination unless the router is load balancing or there is a change in network topology during delivery.

If any packets are missing or out of sequence, the layer 4 protocol, TCP, is responsible for the resequencing the packets and notifiying the sender for any packets that are missing.

Page 8: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

8

Internet Protocol

• Internet is one huge connectionless network (IP).

• TCP (Transmission Control Protocol) Layer 4 add connection-oriented service on top of IP (Layer 3)

• TCP provides connection-oriented session services to reliably deliver data over a connectionless IP network.

• Derived from DoD concept of a network that could survive war where parts of the network were destroyed

• Each packet is treated independently, but relies on the transport layer for reliability

Page 9: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

9

Routed Protocols vs. Routing Protocols

Page 10: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

10

Routed Protocol

• IP is a routed protocol

• A routed protocol is a layer 3 protocol that contains network addressing information.

• This network addressing information is used by routers to determine the which interface, which next router, to forward this packet. IP Header

0 15 16 31

4-bit Version

4-bit Header Length

8-bit Type Of Service (TOS)

16-bit Total Length (in bytes)

16-bit Identification

3-bit Flags

13-bit Fragment Offset

8 bit Time To Live

TTL

8-bit Protocol

16-bit Header Checksum

32-bit Source IP Address

32-bit Destination IP Address

Options (if any)

Data

Page 11: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

11

Routing Protocols

• Protocols used by routers to build routing tables.

• Routing tables are used by routers to forward packets.– RIP – IGRP and EIGRP – OSPF – IS-IS – BGP

Page 12: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

12

Routing Types

Page 13: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

13

Static routes in the real-world• Soon we will learn about dynamic routing protocols (RIP, etc.), where routers can

learn automatically about networks, without the manual configuration of static routes.• Does this mean that static routes are never used in the real-world?• No! Static routes are used in conjunction with dynamic routing protocols.• It is common to use a static route where using a dynamic routing protocols would have

disadvantages or where it just not needed.

Common uses for Static Routes

Page 14: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

Dynamic Routing Protocols

Page 15: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

15

Routing Protocols

• RIP – A distance vector interior routing protocol

• IGRP – Cisco's distance vector interior routing protocol

• OSPF and IS-IS – A link-state interior routing protocol

• EIGRP – Cisco’s advanced distance vector interior routing protocol

• BGP – A distance vector exterior routing protocol

Page 16: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

16

Routing Protocols

Routing Information Protocol (RIP) was originally specified in RFC 1058. • It is a distance vector routing protocol. • Hop count is used as the metric for path selection. • If the hop count is greater than 15, the packet is discarded. • Routing updates are broadcast every 30 seconds, by default. Interior Gateway Routing Protocol (IGRP) is a proprietary protocol developed by

Cisco. • It is a distance vector routing protocol. • Bandwidth, load, delay and reliability are used to create a composite metric. • Routing updates are broadcast every 90 seconds, by default. EIGRP is a Cisco proprietary enhanced distance vector routing protocol. • It is an enhanced distance vector routing protocol. • Uses unequal-cost and equal-cost load balancing. • Uses a combination of distance vector and link-state features. • Uses Diffused Update Algorithm (DUAL) to calculate the shortest path.

Page 17: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

17

Routing Protocols

Open Shortest Path First (OSPF) is a nonproprietary link-state routing protocol.

• It is a link-state routing protocol.

• Open standard routing protocol described in RFC 2328.

• Uses the SPF algorithm to calculate the lowest cost to a destination.

• Routing updates are flooded as topology changes occur.

Intermediate System to Intermediate System (IS-IS)

• IS-IS is an Open System Interconnection (OSI) routing protocol originally specified by International Organization for Standardization (ISO) 10589.

• It is a link-state routing protocol.

Border Gateway Protocol (BGP) is an exterior routing protocol.

• It is a distance vector (or path vector) exterior routing protocol

• Used between ISPs or ISPs and clients.

• Used to route Internet traffic between autonomous systems.

Page 18: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

18

IGP vs EGP

• Interior routing protocols are designed for use in a network whose parts are under the control of a single organization.

• An exterior routing protocol is designed for use between two different networks that are under the control of two different organizations.

Page 19: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

19

Autonomous Systems

• An autonomous system (AS) is a collection of networks under a common administration sharing a common routing strategy.

• To the outside world, an AS is viewed as a single entity. The AS may be run by one or more operators while presenting a consistent view of routing to the external world.

• The American Registry of Internet Numbers (ARIN), a service provider, or an administrator assigns an identifying number to each AS.

Page 20: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

20

Routing Protocols

• The goal of a routing protocol is to build and maintain the routing table.

• This table contains the learned networks and associated ports for those networks.

• Routers use routing protocols to manage information received from other routers, information learned from the configuration of its own interfaces, along with manually configured routes.

Page 21: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

21

Types of Routing Protocols

• Distance Vector: RIP, IGRP, EIGRP

• Link State: OSPF, IS-IS

• Path Vector: BGP

• Note: IGRP and EIGRP are Cisco Proprietary

Page 22: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

22

Routing Protocol Metrics (costs)

• RIP – Hop Count

• IGRP and EIGRP – Bandwidth, Delay, Reliability, Load

• Cisco’s OSPF – Bandwidth

• IS-IS – Cost

• BGP – Number of AS or policy

Page 23: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

23

Distance Vector Routing Protocols

• “Routing by rumor”

• 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), which 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 24: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

24

Distance Vector Routing Protocols

• Routing table updates occur when the topology changes. As with the network discovery process, topology change updates proceed step-by-step from router to router.

• With some routing protocols routing tables updates happen on a periodic basis.

Page 25: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

25

Link State Routing Protocol Operations

• We will discuss this in more detail in CIS152 (CCNA 2) when it will make much more sense.

Page 26: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

26

Path Determination

A router determines the path of a packet from one data link to another, using two basic functions:

• A path determination function

• A switching function

Page 27: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

27

Path Determination

• The switching function is the internal process used by a router to accept a packet on one interface and forward it to a second interface on the same router.

• A key responsibility of the switching function of the router is to encapsulate packets in the appropriate frame type for the next data link.

Page 28: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

28

End-to-End Routing

Page 29: Mod 10 – Routing Protocols CIS151 Paul Morris MHCC

29

Multiprotocol Routing