CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008.

Slides:



Advertisements
Similar presentations
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Advertisements

Courtesy: Nick McKeown, Stanford
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Routing So how does the network layer do its business?
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
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.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
MULTICASTING Network Security.
CSE 461: Link State Routing. Link State Routing  Same assumptions/goals, but different idea than DV:  Tell all routers the topology and have each compute.
CSE123A discussion session 2007/03/08 Ryo Sugihara.
CS 4700 / CS 5700 Network Fundamentals Lecture 9: Intra Domain Routing Revised 7/30/13.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
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.
CCNP Network Route OSPF Part -I OSPF: Open Shortest Path First Concept of OSPF: 1. It is a link state routing protocol. 2. There are basically only 2 ISIS.
Delivery, Forwarding and
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Routing and Routing Protocols Dynamic Routing Overview.
Interior Gateway Protocols: RIP & OSPF
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
Link State Routing Protocols Last Update Copyright Kenneth M. Chipps Ph.D.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing Part 5 Multicasting protocol.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
The Network Layer.
Overview of Internet Routing (I) Fall 2004 CS644 Advanced Topics in Networking Sue B. Moon Division of Computer Science Dept. of EECS KAIST.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networking and internetworking devices. Repeater.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
Dynamic Routing Protocols II OSPF
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Graph Algorithms Why graph algorithms ? It is not a “graph theory” course! Many problems in networks can be modeled as graph problems. Note that -The topology.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
CEN 5501C - Computer Networks - Spring UF/CISE - Newman1 Computer Networks Chapter 12 – Routing Algorithm Concepts.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
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.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
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.
+ Dynamic Routing Protocols 2 nd semester
Network Layer.
CS 5565 Network Architecture and Protocols
Dynamic Routing Protocols II OSPF
Instructor Materials Chapter 5: Dynamic Routing
COMP 3270 Computer Networks
Intra-Domain Routing Jacob Strauss September 14, 2006.
Chapter 5: Dynamic Routing
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 II OSPF
ECE 544 Protocol Design Project 2016
Intradomain Routing Outline Introduction to Routing
Viet Nguyen Jianqing Liu Yaqin Tang
CS4470 Computer Networking Protocols
Chapter 22. Network Layer: Routing
Network Layer.
OSPF Protocol.
Presentation transcript:

CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008

CS440 Computer Networks 2 Overview  Basic Idea  Flooding  Route Calculation  Distance Vector VS. Link State  OSPF

CS440 Computer Networks 3 Basic Idea  Each router gets information of its direct neighbors and the cost of the link to each of them by exchanging Hello messages periodically.  Each router disseminates the neighbor and link cost information to all other routers in the network such that each router will have a complete view of the network topology and the link costs.  Each router uses Dijkstra’s algorithm to calculate the shortest paths to all other routers.

CS440 Computer Networks 4 Link State Packet (LSP)  LSP is used to record the link state (cost) information. It will be flooded into the network by each router.  An LSP includes the following fields - The address of the router creating this packet - A list of directly connected neighbors, with the cost of the link to each one. - A sequence number - TTL

CS440 Computer Networks 5 Flooding  A router will generate an LSP and broadcast it to all its neighbors. Those neighbors will continue to broadcast it. Next time when the router generates a new LSP, the Sequence Number (SN) will be increased by one.  For a particular router, every other router only keeps the LSP with largest SN from it. When receiving the old (smaller SN) or duplicate (same SN) LSPs, the routers will simply drop them and will not re- broadcast it.

CS440 Computer Networks 6 Flooding

7 Flooding  Efficient: Each router must be aware of the change of network status as early as possible. LSPs will be flooded periodically and whenever the network status changes.  Low Overhead: Flooding is only conducted when really necessary. A relatively long timer can be set for periodical flooding.

CS440 Computer Networks 8 Route Calculation The Dijkstra’s Shortest Path Algorithm (Refer to pp.280 for formal presentation) 10 5       A BCDE

CS440 Computer Networks 9 Route Calculation Forward Search Algorithm (An implementation of the Dijkstra’s algorithm) StepConfirmedTentative 1(A,0,-)(B,10,B) (C,5,C) 2(A,0,-) (C,5,C) (B,8,C) (D,14,C) (E,7,C) 3(A,0,-) (C,5,C) (E,7,C) (B,8,C) (D,13,C) 4(A,0,-) (C,5,C) (E,7,C) (B,8,C) (D,9,C) 5(A,0,-) (C,5,C) (E,7,C) (B,8,C) (D,9,C) A B C D E

CS440 Computer Networks 10 Distance Vector (DV) VS. Link State (LS)  Difference: In DV, the distributed Bellman-Ford algorithm is used. Every node talks to only its neighbors but tells them everything it has learned; In LS, the centralized Dijkstra’s algorithm is used. Every node talks to all other nodes via flooding but tells them only its neighborhood information.  Strength: DV needs to store relatively small amount of routing information in each router. LS stabilizes very quickly.  Weakness: DV stabilizes slowly. LS needs to store a large amount of information in each router.

CS440 Computer Networks 11 Open Shortest Path First (OSPF) Routing  Authentication of routing messages: 8-byte password is used for authentication to prevent routing hole.  Load balancing: every router maintains multiple routes for a particular destination.

CS440 Computer Networks 12 Control Messages  Hello Message  Link State Advertisement (LSA) Message: It advertises the costs of all links incident to that router.