Delivery, Forwarding and

Slides:



Advertisements
Similar presentations
Delivery, Forwarding and
Advertisements

McGraw-Hill © The McGraw-Hill Companies, Inc., 2004 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies,
Chapter 11 Unicast Routing Protocols
Routing So how does the network layer do its business?
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
Unicast Routing Protocols: RIP, OSPF, and BGP
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Delivery, Forwarding, and Routing
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
Computer Networks22-1 Chapter 22. Network Layer: Delivery, Forwarding, and Routing 21.1 Delivery 21.2 Forwarding 21.3 Unicast Routing Protocols 21.4 Multicast.
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 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
資 管 Lee Lesson 10 RIP, OSPF, and BGP. 資 管 Lee Routing in Internet An internet is divided into autonomous systems. An autonomous system(AS) is a group.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
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.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
Routing and Routing Protocols
22.1 Chapter 22 Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networking and internetworking devices. Repeater.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
Interior Gateway Protocols (RIP, OSPF) continued….
1 Version 3.1 Module 6 Routed & Routing Protocols.
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)
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 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
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.
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.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
+ Dynamic Routing Protocols 2 nd semester
Instructor Materials Chapter 5: Dynamic Routing
Dynamic Routing Protocols part2
Chapter 14 Routing Protocols (RIP, OSPF, and BGP)
(How the routers’ tables are filled in)
9 Network Layer Part VI Computer Networks Tutun Juhana
Routing Information Protocol (RIP)
TODAY’S TENTATIVE AGENDA
Dynamic Routing Protocols part2
Net 323 D: Networks Protocols
Delivery, Forwarding, and Routing
Chapter 5: Dynamic Routing
(How the routers’ tables are filled in)
Link state routing In link state routing, if each node in the domain has the entire topology of the domain list of nodes and links, how they are connected.
Dynamic Routing Protocols part2
Delivery, Forwarding, and Routing
Will Review Exam 3 Dr. Clincy Lecture.
Routing Protocols (RIP, OSPF, BGP).
Chapter 11 Unicast Routing Protocols (RIP, OSPF, and BGP)
Chapter 22. Network Layer: Routing
Presentation transcript:

Delivery, Forwarding and Chapter 22 Network layer Delivery, Forwarding and Routing (part3)

Three-Node Instability

Routing Information Protocol (RIP) RIP is based on Distance vector routing: RIP implement Distance vector routing with some considerations: Destination in the routing table is a network (first column defines network address) Metric(distance) is Hop count : is the number of networks that a packet encounters to reach its final destination Infinity is defined as value of 16 . Therefore, the Max limited of hops is 15 suitable for small networks (local area environments) Router sends update message to neighbors every 30 sec. If router does not receive update message from neighbor X within this limit, it assumes the link to X has failed and sets the corresponding minimum cost to 16 (infinity).

immediate neighbors periodically and when there is a change. Note In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change.

Routing Information Protocol (RIP) Routing table Has one entry for each destination network of which the router is aware. Each entry has destination network address, the shortest distance to reach the destination in hop count, and next router to which the packet should be delivered to reach its final destination. Destination Hop Count Next Router Other information 163.5.0.0 7 172.6.23.4 197.5.13.0 5 176.3.6.17 189.45.0.0 4 200.5.1.6 115.0.0.0 6 131.4.7.19

Example Internetwork

Initial routing tables in a small autonomous system When a router is added to a network, it initializes a routing table for itself, using its configuration file. The table consists only the directly attached networks and the hop counts, which are initialized to 1. The next-hop field, which identifies the next router, is empty.

Updating Routing Table for Router A

Final routing tables Each routing table is updated upon receipt of RIP messages using the RIP updating algorithm.

Example of updating a routing table

Example of a domain using RIP

Link State Routing Each node in the domain has the entire topology of the domain. Analogous to a city map. Each node uses the same topology to create a routing table. but the routing table for each node is unique because the calculations are based on different interpretations of the topology.

Building Routing table Creation link state packet (LSP) LSP is a tabular representation of the topology of the internet Every router in the same area has the same LSP After a node has prepared an LSP , it must be disseminated to all other nodes . The process is called Flooding Formation of shortest path tree for each node (router) using Dijkstra algorithm Calculation of routing table.

Building Routing table Creation link state packet (LSP): LSP can carry a large amount of information such as : the node identity, list of links, sequence number,…etc. LSP are generated on two occasions: When there is a change in topology of the domain. Triggering of LSP dissemination to inform any node in the domain to update its topology On a periodic basis. The period in this case is much longer compared to distance vector routing . The timer set for periodically dissemination is in the range 1 or 2 h. It done to ensure that the old LSP is removed A longer period ensures that flooding doesn’t create much traffic on the network

Building Routing table Flooding The creating node sends a copy of the LSP out of each interface A node receives an LSP compares it with the copy it has. If the newly arrived is older than one it has , it discards If it is newer the node do the following : It discards the old LSP and keep the new one It sends a copy of it out of each interface except the one from which the packet arrived.

Dijkstra Algorithm Calculates the shortest path between two points on a network, using a graph made up of nodes and edges. Algorithm divides the nodes into two sets: tentative and permanent. It chooses nodes, makes them tentative, examines them, and if they pass the criteria, makes them permanent.

Examples of formation of shortest path tree usingDijkstra algorithm

Examples of formation of shortest path tree usingDijkstra algorithm Routing table for node A

Open Shortest Path First :OSPF OSPF Based on Link state Routing OSPF divides an autonomous system into areas. Special routers called autonomous system boundary routers are responsible for dissipating information about other autonomous systems into the current system

Areas in an Autonomous System Area is a collection of networks, hosts, and routers all contained within an autonomous system. Routers inside an area flood the area with routing information. Area border routers: Summarize the information about the area and send it to other routers. Backbone area [Primary area]: All the areas inside an autonomous system must be connected to the backbone. Routers in this area are called as backbone routers. This area identification number is 0. If, due to some problem, the connectivity between a backbone and an area is broken, a virtual link between routers must be created by the administration to allow continuity of the functions of the backbone as the primary area.

OSPF Each router should have the exact topology of the internet at every moment. From this topology, a router can calculate the shortest path between itself and each network using Dijkstra algorithm Types of Links

Types of Links 1. Point-to-point Connects two routers without any other router or host in between. Directly connected routers using serial line. Only one neighbour. No need to assign a network address to this type of link The metrics are the same at the two ends

Types of Links 4. Virtual 2. Transient link 3. Stub A network with several routers attached to it. Each router has many neighbours. 3. Stub A network that is connected to only one router. The data packets enter the network through this single router and leave the network through this same router. 4. Virtual When 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.

Example of an internet & Graphical representation Point to point : between A_D and B-E Stub: N5, N4 and N2 Transient : N1 and N3

Shortest-path calculation using Dijkstra Example 2:

Example 2: Shortest-path calculation using Dijkstra

Example 2: Shortest-path calculation using Dijkstra

Shortest-path calculation using Dijkstra Example 2: Shortest-path calculation using Dijkstra Routing Table for Router A 92 permanent 66 permanent

Shortest-path calculation using Dijkstra Example 3:

Shortest-path calculation

Shortest-path calculation Network Cost Next Router N1 5 ---- N2   7 C N3 10 D N4 11 B N5 15

OSPF Reaction to Failure If a link fails, Router sets link distance to infinity & floods the network with an update packet All routers immediately update their link database (LSP)& recalculate their shortest paths Recovery very quick NOTE: OSPF differs from RIP in that each router knows the exact topology of the network OSPF reduces routing bandwidth usage OSPF is faster than RIP.