routing protocols - polito.itnetgroup.polito.it/.../cnts-tsr_slide/routing_protocols.pdfrouting - 25...

30
© see page 2 Routing - 1 ROUTING PROTOCOLS Mario Baldi www.baldi.info

Upload: others

Post on 21-Apr-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 1

ROUTING PROTOCOLS

Mario Baldiwww.baldi.info

Page 2: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 2

Copyright NoticeThis set of transparencies, hereinafter referred to as slides, is protected by copyright lawsand provisions of International Treaties. The title and copyright regarding the slides(including, but not limited to, each and every image, photography, animation, video, audio,music and text) are property of the authors specified on page 1.

The slides may be reproduced and used freely by research institutes, schools andUniversities for non-profit, institutional purposes. In such cases, no authorization isrequested.

Any total or partial use or reproduction (including, but not limited to, reproduction on magneticmedia, computer networks, and printed reproduction) is forbidden, unless explicitlyauthorized by the authors by means of written license.

Information included in these slides is deemed as accurate at the date of publication. Suchinformation is supplied for merely educational purposes and may not be used in designingsystems, products, networks, etc. In any case, these slides are subject to changes withoutany previous notice. The authors do not assume any responsibility for the contents of theseslides (including, but not limited to, accuracy, completeness, enforceability, updated-ness ofinformation hereinafter provided).

In any case, accordance with information hereinafter included must not be declared.

In any case, this copyright notice must never be removed and must be reported even inpartial uses.

Page 3: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 3

TWO PROTOCOL FAMILIES

Page 4: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 4

Two Kinds of Protocols

Interior Gateway Protocol (IGP)

Intra-domain routing

Exterior Gateway Protocol (EGP)

Inter-domain routing

Page 5: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 5

Different objectives

Different design criteria

Page 6: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 6

IGP Features

Distribute topological information

Choose routes based on topological information

Find “best” route

Page 7: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 7

Distribute Autonomous System information

Distribute administrative costs

Decide based on policies

Find “preferred” route

EGP Features

Page 8: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 8

IGP – Distance Vector

RIP: Routing Information Protocol

IGRP: Interior Gateway Routing Protocol

E-IGRP: Enhanced IGRP

Page 9: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 9

IGP – Link State

OSPF: Open Shortest Path First

Integrated IS-IS

Page 10: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 10

EGP

BGP: Border Gateway Protocol

IDRP: Inter Domain Routing Protocol

Static routing also a viable option

Page 11: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 11

INTERIOR GATEWAY PROTOCOLS

Page 12: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 12

RIP

Originally developed for another architecture

RFC 1O58 (1988) and RFC 1388 (1993)

Implemented also by Unix/Linux hosts

Page 13: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 13

Features

Hop count

At most 15 hops

Periodic update messages

Distance vectors

Every 3O s

Time-out based operation

Convergence: 3 min

Page 14: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 14

IGRP

Cisco Systems proprietary

It overcomes some of the shortcomings of RIP

For a while, the only alternative to RIP

Page 15: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 15

Features

Articulated metrics

Delay

Bandwidth

Reliability

Load

Maximum packet length

Multipath routing

Page 16: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 16

OSPF

RFC 1247 (1991) and RFC 1583 (1994)

Hierarchical routing

Routing domain divided in areas

Aggregation of information among areas

Page 17: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 17

Hierarchical RoutingRouters know all details of their

domain/zone/area

Routers have limited or no knowledge about the outside

Can be iterated

A2 B3

B2

Domain/

Zone/Area A

Domain/Zone

/Area B

A1

B1

Page 18: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 18

Strictly Hierarchical RoutingNo knowledge/visibility outside own area/domain/zone

When the destination of a packet is not in the area, it is forwarded towards an edge router

Maximum scale

Limited routing capability A2

Domain/

Zone/Area A

A1

Page 19: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 19

Strictly Hierarchical RoutingHigher layer routers have area/domain/zone level view

A2 B3

B2

Domain/Zone

/Area A

Domain/Zone

/Area B

A1

B1

A B

Page 20: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 20

Strictly Hierarchical RoutingSub-optimal paths

Loss of connectivity due to faults

B1 B2

A4 Domain A

Domain B

A1 A3A2

Edge router

Page 21: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 21

A2 B3

B2

Domain/Zone

/Area A

Domain/Zone

/Area B

A1

B1

Loosely Hierarchical RoutingRouters have high level knowledge of the outside

A2 B3

B2

A1 B1

Page 22: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 22

Loosely Hierarchical RoutingLess scalability

Routers have to store and exchange more information

Does not require strictly hierarchical addressing

All host in domain B do not need a common identifier

Prefix

Possible in IPv4

Page 23: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 23

Area 2

Area 1

Backbone routerBackbone area

AS boundary router

Areaborder router

Internal router

R2 R7

R4R8

R9

R3

R6

R1

R5

D1

OSPF Architecture

Page 24: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 24

Broadcast NetworksN routers = N2 adjacencies

N2 links

Dijkstra complexity is linear with number of links

H1

H2

R1 R2 R3 R4

Net1R1

R2 R3

R4

Net1

Link State Database

R1 R2/1 R3/1 R4/1 Net1/1

R2 R1/1 R3/1 R4/1 Net1/1

R3 R1/1 R2/1 R4/1 Net1/1

R4 R1/1 R2/1 R3/1 Net1/1

Page 25: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 25

Link State Database

R1 PN/1

R2 PN/1

R3 PN/1

R4 PN/1

PN R1/1 R2/1 R3/1

R4/1 Net1/1

Broadcast NetworksPseudo-node

Virtual node to transform full mesh into star

Role played by one of the routers (election)

Only for (proactive) routing

Packets delivered directly

R1

R2

R3

Net1

R4

R1

R2 R3

R4

Net1PN

Page 26: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 26

Integrated IS-IS

Extension of an OSI protocol

Hierarchical routing

Different level routers

Page 27: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 27

Widely deployed before OSPF was available

Large networks

ISPs

Still in use

Do not change what works

Page 28: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 28

EXTERIOR GATEWAY PROTOCOLS

Page 29: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 29

BGP

Currently Version 4

RFC 1654 (1994)

Path vector

AS sequence to destination

Rich set of attributes

Configurable route computation policy

Page 30: ROUTING PROTOCOLS - polito.itnetgroup.polito.it/.../CNTS-TSR_slide/Routing_protocols.pdfRouting - 25 © see page 2 Link State Database R1 PN/1 R2 PN/1 R3 PN/1 R4 PN/1 PN R1/1 R2/1

© see page 2Routing - 30

InterDomain Routing Protocol (IDRP)

Evolution of BGP for OSI

Ported back to TCP/IP

Supposed to be “the” choice for IPv6

Not used a lot