unicast routing protocols a routing protocol is a combination of rules and procedures that lets...

67
Unicast Routing Protocols A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes. It allows routers to share whatever they know about the internet or their neighborhood

Upload: britney-preston

Post on 27-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Unicast Routing Protocols A routing protocol is a combination of

rules and procedures that lets routers in the internet inform each other of changes.

It allows routers to share whatever they know about the internet or their neighborhood

Page 2: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Autonomous System(AS) An autonomous system is group of networks and

routers under the authority of a single administration.

Routing inside an autonomous system is referred to

as intradomain routing. Routing between autonomous systems is referred to as interdomain routing.

Page 3: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Autonomous systems

Page 4: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Popular routing protocols

Page 5: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Popular protocols

Intradomain Routing Information Protocol(RIP) Open Shortest Path First(OSPF)

Interdomain Border Gateway Protocol(BGP)

Page 6: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Distance vector routing In distance vector routing, the least cost route

between any two nodes is the route with minimum distance. In this protocol each node maintains a vector (table) of minimum distances to every node

Page 7: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Distance vector routing tables

Page 8: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Initialization of tables in distance vector routing

Page 9: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Process Initializing Sharing

Periodically Triggered update

Updating

Page 10: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Issues Two node loop Instability

Define infinity Split horizon Split horizon and poison reverse

Three node instability

Page 11: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Routing Information Protocol The Routing Information Protocol (RIP) is

an intradomain routing protocol used inside an autonomous system. It is a very simple protocol based on distance vector routing.

Encapsulated in UDP user datagram

Page 12: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Example of a domain using RIP

Page 13: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

RIP message format

Page 14: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Command Request—1 Response—2

Page 15: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Request messages

Page 16: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes
Page 17: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Timers in RIP

Page 18: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Periodic Timer Each router has periodic timer that is

randomly set a number between 25 and 35. It counts down ;when zero is reached, the update message is sent, and the timer is randomly set once again.

Page 19: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Expiration Timer Expiration timer governs the validity of a route. Every route has its own expiration timer When a router receives update information for a

route , the expiration timer is set to 180s If timer goes off , the route is considered

expired and the hop count of the route is set to 16

Page 20: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Garbage collection timer When a route becomes invalid, the

garbage collection timer is set to 120s Set the hop count value to 16 When the timer goes off , the route is

purged from the table

Page 21: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

RIP version 2 format

Page 22: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link State Routing In link state routing, if each node in the

domain has the entire topology of the domain, the node can use Dijkstra’s algorithm to build a routing table.

Page 23: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Building routing tables1) Creation of the states of the links by each

node called Link state Packet(LSP)2) Dissemination of LSP to every other router

called flooding3) Formation of a shortest path tree for each

node4) Calculation of a routing table based on the

shortest path tree

Page 24: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link state packet Node identity The list of links A sequence number Age

Page 25: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Open shortest path first(OSPF) The Open Shortest Path First (OSPF) protocol

is an intradomain routing protocol based on link state routing. Its domain is also an autonomous system.

Page 26: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

OSPF Divides an autonomous system into

areas An area is a collection of networks ,

hosts, and routers all connected within in an autonomous system.

Routers inside an area flood the area with routing information.

Page 27: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Area Border routers At the border of an area, special routers

called area border routers summarize the information about the area and send it to other area.

BackboneIs a special area in an autonomous

system. All other areas must be connected to backbone.

Page 28: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Areas in an autonomous system

Page 29: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Metric The metric can be based on a type of

service- Minimum delay Maximum throughput Hop count

A router can have multiple routing tables each based on a different type of service.

Page 30: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Types of Links In OSPF a connection is called a link

Page 31: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Point to point Connects two routers without any other host or router in between

Transient Linkis a network with several routers attached to it. The data can enter

through any of the routers and leave through any router

Sub linkIs a network that is connected to only one router

Virtual linkWhen the link between two routers is broken , the administration

may create a virtual link between them using a longer path that probably goes through several routers

Page 32: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Types of OSPF packets

Page 33: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

OSPF common header

Page 34: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Version: 8 bit field current version 2 Type: 8 bit field: 5 types Message length: 16 bit: length of total message including

header Source router IP addess: 32 bit: IP address of router that

sends the packet Area identification: 32 bit: defines the area within which

routing taking place Checksum: used for error detection: excluding

authentication type and data field Authentication type: 16 bit: 0 or none and 1 for password Authentication: 64 bit: value of authentication data

Page 35: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link sate packet update

Page 36: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link state update packet

Page 37: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

LSA general header

Page 38: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link Stage age E flag: set to 1 means stub area. Means only

one router between backbone area T flag: set 1 means router can handle

multiple service Type : any of the five Advertising router: IP of router of LSA Link state sequence number Link state checksum: it is calculated using

fletchers algorithm except for age Length: length of the whole packet

Page 39: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Hello Message

OSPF Common Header 24 bytes type 1

Network Mask

Hello interval All 0s E T Priority

Dead Interval

Designated router IP address

Backup Designated router IP address

Neighbor IP Address(repeated)

Page 40: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Hello Message Network Mask: 32 bit defines network

mask Hello interval: 16 bit: defines no of

seconds between the messages E flag: if set – means stub area T flag: if set – router supports multiple

service Priority: defines the priority of the router

Page 41: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Dead Interval: 32 bit: the number of seconds that must pass before a router assumes that a neighbor is dead

Designated IP address: 32 bit: Backup Designated IP address: 32 bit: Neighbor IP address

Page 42: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Database description message When hello message is received for the

first time from a router, the receiver router sends database description message.

Only outline

Page 43: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Database description packet

OSPF Common Header 24 bytes type 2

All 0s All 0s E B All 0s I M M/S

Message Sequence Number

LSA Header(20 Bytes) [repeated]

Page 44: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

E flag: advertising router is an autonomous boundary router

B flag: advertising router is area boundary router

M flag: more flag, not the last message M/S: master/Slave : origin of the packet LSA Header:

Page 45: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link state request packet Sent by a router that needs information

about a specific route or routes Answered with a link state update packet

Page 46: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

OSPF Common Header 24 bytes type 3

Link state type

Link state ID

Advertising router

Page 47: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Link state Acknowledgement Packet

Every router must acknowledge the receipt of every link state update packet.

OSPF Common Header 24 bytes type 5

LSA General Header

Page 48: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Path vector routing Path vector routing is similar to distance

vector routing. There is at least one node, called the speaker node, in each AS that creates a routing table and advertises it to speaker nodes in the neighboring ASs..

Page 49: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Initial routing tables in path vector routing

Page 50: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Stabilized tables for four autonomous systems

Page 51: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Border Gateway Protocol(BGP) Border Gateway Protocol (BGP) is an

interdomain routing protocol using path vector routing. It first appeared in 1989 and has gone through four versions.

Page 52: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Types of AS Three types Stub AS Multihomed AS Transient AS

Page 53: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

BGP Sessions A session is a connection that is

established between two BGP. Uses services of TCP

Page 54: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Types sessions External BGP Internal BGP

E-BGP session is used to exchange information between two speaker nodes

I-BGP session is used to exchange routing information between two routers inside an autonomous system

Page 55: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Internal and external BGP sessions

Page 56: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Types of BGP messages

Page 57: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

BGP packet header

Marker is for authentication

Page 58: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Open message

Page 59: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Keepalive Routers running BGP protocol exchange

keepalive message regularly to tell each other that they are alive.

Consist only the common header

Page 60: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Keepalive message

Page 61: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Notification Message A notification message is sent by a

router whenever an error is detected or a route wants to close the connection

Page 62: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Notification message

Page 63: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Error codes

Page 64: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Update message

Page 65: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Update Message Is used by a router to withdraw

destination that have been advertised previously.

Announce a route to a new destination

Page 66: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes

Encapsulation BGP messages are encapsulated in TCP

segments using the port number 179.

Page 67: Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes