TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.

Slides:



Advertisements
Similar presentations
Chapter 11 Unicast Routing Protocols
Advertisements

Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Unicast Routing Protocols: RIP, OSPF, and BGP
RIP – Routing Information Protocol Syeda Momina Tabish MIT - 7.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
Unicast Routing Protocols: RIP, OSPF, and BGP
Delivery, Forwarding, and Routing
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
Lab 4 Dynamic Routing CS144 Review Session 5 October 30, 2009 Samir Selman.
RIP. A PPROACHES TO S HORTEST P ATH R OUTING There are two basic routing algorithms found on the Internet. 1. Distance Vector Routing Each node knows.
INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is.
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
Delivery, Forwarding and
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
CS 4396 Computer Networks Lab
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 Chapter 22 Network layer Delivery, Forwarding and Routing (part2)
1 CMPT 471 Networking II RIP. © Janice Regan, Dynamic Routing  In very simple small and stable networks static routing may be adequate.  As networks.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 13 Routing Protocols (RIP, OSPF, BGP)
1 Chapter 14 Routing Protocols (RIP, OSPF, and BGP) Chapter 14 Routing Protocols (RIP, OSPF, and BGP) Mi-Jung Choi Dept. of Computer Science and Engineering.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
22.1 Chapter 22 Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
1 Kyung Hee University Chapter 11 Unicast Routing Protocols (RIP, OSPF, and BGP)
Chapter 20 Unicast Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
(How the routers’ tables are filled in)
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
Powerpoint Templates Computer Communication & Network Week # 14.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
22.1 Network Layer Delivery, Forwarding, and Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
Routing Protocols (RIP, OSPF, BGP)
Routing Protocols (RIP, OSPF, and BGP)
(How the routers’ tables are filled in)
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Rip Routing Protocol.
Net 323 D: Networks Protocols
Distance Vector and Link State RIP OSPF
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
Dynamic Routing Protocols part2
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
Delivery, Forwarding, and Routing
Chapter 13 Routing Protocols (RIP, OSPF, and BGP)
UNICAST ROUTING PROTOCOLS
Chapter 11 Unicast Routing Protocols (RIP, OSPF, and BGP)
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
STRUCTURE OF A ROUTER We represent a router as a black box that accepts incoming packets from one of the input ports (interfaces), uses a routing table.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols

TCP/IP Protocol Suite INTRODUCTION An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many routers until it reaches the router attached to the destination network.

TCP/IP Protocol Suite INTER- AND INTRA-DOMAIN ROUTING Today, an internet can be so large that one routing protocol cannot handle the task of updating the routing tables of all routers. For this reason, an internet is divided into autonomous systems. An autonomous system (AS) is a group of networks and routers under the authority of a single administration. Routing inside an autonomous system is called intra- domain routing. Routing between autonomous systems is called inter-domain routing

Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a 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 system is referred to as interdomain routing

Popular Routing Protocols In this chapter, we discuss two intradomain routing protocols: distance vector and link state For the interdomain routing protocol, we introduce path vector Routing Information Protocol (RIP) is the implementation of the distance vector protocol Open Shortest Path First (OSPF) is the implementation of the link state protocol Border Gateway Protocol (BGP) is the implementation of the path vector protocol

Distance Vector Routing In distance vector routing, the least cost route between any two nodes is the route with minimum distanceIn 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 nodeIn this protocol each node maintains a vector (table) of minimum distances to every node The table at each node also guides the packets to the desired node by showing the next stop in the route (next-hop routing)The table at each node also guides the packets to the desired node by showing the next stop in the route (next-hop routing)

Initialization At the beginning, each node can know only the distance between itself and its immediate neighbors, those directly connected to it

Sharing The whole idea of distance vector routing is the sharing of information between neighbors Although node A does not know about node E, node C does. So if node C shares its routing table with A, node A can also know how to reach node E In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change. Note:

TCP/IP Protocol Suite9 Figure 11.4 The fact behind Bellman-Ford algorithm

Updating When a node receives a 2-column table from a neighbor, it needs to update its routing table. Updating takes 3 steps: 1.The receiving node needs to add the cost between itself and the sending node to each value in the second column 2.The receiving node needs to add the name of the sending node to each row as the 3 rd column if the receiving node uses information from any row. The sending node is the next node in the route

Updating (cont.) 3.The receiving node needs to compare each row of its old table with the corresponding row of the modified version of the received table. a)If the next-node entry is different, the receiving node chooses the row with the smaller cost. If there is a tie, the old one is kept b)If the next-node entry is the same, the receiving node chooses the new row. For example, if node C has previously advertised a route to node X with distance 3. Suppose that now there is no path between C and X; node C now advertises this route with a distance of infinity. Node A must not ignore this value even though its old entry is smaller.

Updating (cont.)

When to Share The table is sent both periodically and when there is a change in the table Periodic Update. A node sends its routing table, normally every 30 seconds, in a periodic update. The period depends on the protocol that is using distance vector routing Triggered Update. A node sends its 2-column routing table to its neighbors any time there is a change in its routing table. This is called a triggered update. The change can result from the following. 1.A node receive a table from a neighbor resulting in changes in its own table after updating 2.A node detects some failure in the neighboring links which results in a distance change to infinity

TCP/IP Protocol Suite14 Now assume router A sends four records to its neighbors, routers B, D, and C. Figure 11.6 shows the changes in B ’ s routing table when it receives these records. We leave the changes in the routing tables of other neighbors as exercise. Example Example 11.2

TCP/IP Protocol Suite15 Figure 11.6 Example 11.2

Initial routing tables in a small autonomous system

Final routing tables for the previous figure

Two-Node Loop Instability A problem with distance vector routing is instability, which means that a network using this protocol can become unstable

Solutions to two-node instability Defining Infinity. Most implementation of the distance vector protocol define the distance between each node to be 1 and define 16 as infinity. Therefore, the distance vector cannot be used in large systems Split Horizon. In this strategy, instead of flooding the table through each interface, each node sends only part of its table through each interface. If node B thinks that the optimum route to reach X is via A, it does not need to advertise this piece of information to A.

Solutions to two-node instability (cont.)

Split Horizon and Poison Reverse. This strategy is a combination between split horizon and poison reverse where node B can still advertise the value of X, but if the source of information is A, it can replace the distance with infinity as a warning: “Don’t use this value; what I know about this route comes from you.”

Solutions to two-node instability (cont.)

Three-Node Instability

Routing Information Protocol (RIP) The Routing Information Protocol (RIP) is an intradomain routing protocol used inside an autonomous systemThe Routing Information Protocol (RIP) is an intradomain routing protocol used inside an autonomous system It is a very simple protocol based on distance vector routingIt is a very simple protocol based on distance vector routing RIP implements distance vector directly with some considerations:RIP implements distance vector directly with some considerations: 1.In an autonomous, we are dealing with routers and networks (links). The routers have routing tables, networks don’t 2.The destination in a routing table is a network, which means the first column defines a network address

Routing Information Protocol (RIP) (cont.) 3.The metric used by RIP is the number of links that have to be used to reach the destination which is called hop count 4.Infinity is defined as 16 5.The next node column defines the address of the router to which the packet is to be sent to reach its destination

RIP Message Format

RIP Message Format (cont.) Command. This 8-bit field specifies the type of message: request (1) or response (2) Version. This 8-bit defines the version. In the textbook, we use version 1 Family. This 16-bit field defines the family of the protocol used. For TCP/IP the value is 2. Network address. RIP has allocated 14 bytes for this field to be applicable to any protocol. Distance. This 32-bit field defines the hop count from the advertising router to the destination network

Request and Response Request. A request message is sent by a router that has just come up or by a router that has some time-out entries. A request can ask about specific entries or all entries Response. A solicited response is sent only in answer to a request. It contains information about the destination specified in the corresponding request. An unsolicited response is sent periodically, every 30 s or when there is a change in the routing table

Request Messages

Example 1 What is the periodic response sent by router R1? Assume R1 knows about the whole autonomous system.

R1 can advertise three networks , , and The periodic response (update packet) is shown below. Solution

Figure shows the update message sent from router R1 to router R2 in Figure The message is sent out of interface Example 2 See Next Slide

The message is prepared with the combination of split horizon and poison reverse strategy in mind. Router R1 has obtained information about networks , , and from router R2. When R1 sends an update message to R2, it replaces the actual value of the hop counts for these three networks with 16 (infinity) to prevent any confusion for R2. The figure also shows the table extracted from the message. Router R2 uses the source address of the IP datagram carrying the RIP message from R1 ( ) as the next hop address.

Timer in RIP RIP uses 3 timers. The periodic timer controls the sending of messages, the expiration timer governs the validity of a route, and the garbage collection timer advertises the failure of a route

Periodic Timer The periodic timer controls the advertising of regular update messages The working model uses a random number between 25 and 30 s This is to prevent any possible synchronization and therefore overload on an internet if routers update simultaneously

Expiration Timer The expiration timer governs the validity of a route When a router receives update information for a route, the expiration timer is set to 180 s for that particular route Every time a new update for the route is received, the timer is reset If the timer is expired, the hop count of the route is set to 16, which means the destination is unreachable

Garbage Collection Timer When the information about a route becomes invalid, the router does not immediately purge that route from its table Instead, it continues to advertise the route with a metric value of 16 At the same time, the garbage collection timer is set to 120 s for that route When the count reaches zero, the route is purged from the table

A routing table has 20 entries. It does not receive information about five routes for 200 s. How many timers are running at this time? Example 3 Solution The 21 timers are listed below: Periodic timer: 1 Expiration timer: 20 − 5 = 15 Garbage collection timer: 5

RIP Version 2 RIP version 2 was designed to overcome some of the shortcomings of version 1 The designers of version 2 have not augmented the length of the message for each entry They have only replaced those fields in version 1 that were filled with 0s for the TCP/IP protocol with some new fields

Message Format Updates Route tag. This field carries information such as the autonomous system number. It can be used to enable RIP to receive information from an interdomain routing protocol. Subnet mask. This is a 4-byte field that carries the subnet mask. This means that RIP2 supports classless addressing and CIDR. Next-hop address. If the sending router want to specify another router IP address to be the next hop router.

41 RIP Version 2 Enhancements Supports VLSM and CIDR RFC New RIPV2 Packet Format =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+==+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+==+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= =+=+=+=+=+==+=+=+=+=+=+=+=+=+ + Source Port = 0X0208 ( 520 ) Dest. Port = 0X0208 ( 520 ) Len. [ UDP + RIP = 0X0200 (512) ] UDP Checksum Command Version Unused Address Family Identifier Route Tag IP Address Subnet Mask Next Hop Metric Address Family Identifier Route Tag IP Address Subnet Mask Next Hop Metric =+=+=+=+=+==+=+=+=+=+=+=+=+=++ =+=+=+=+=+==+=+=+=+=  UDP RIP Dest. 01 Dest. 25 RIPv2 over UDP Packet format.