LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November 2010 1.

Slides:



Advertisements
Similar presentations
Introduction to OSPF.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Multiarea OSPF Scaling Networks.
Computer Networks with Internet Technology William Stallings
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CCNA 2 v3.1 Module 6.
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.
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
Routing and Routing Protocols
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
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.
ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
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.
Introduction to networking Dynamic routes. Objectives  Define dynamic routing and its properties  Describe the classes of routing protocols  Describe.
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
Routing and Routing Protocols Dynamic Routing Overview.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
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 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
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.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
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.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
Routing and Routing Protocols
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.
Open Shortest Path First (OSPF)
Dynamic Routing Protocols II OSPF
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
© 2002, Cisco Systems, Inc. All rights reserved..
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—3-1 Implementing a Scalable Multiarea Network OSPF-Based Solution Planning Routing Implementations.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
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.
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.
1 CMPT 471 Networking II OSPF © Janice Regan,
Network Layer Routing Networks: Routing.
Dynamic Routing Protocols II OSPF
Link State Routing protocol
CMPT 371 Data Communications and Networking Routing in the Internet
OSPF (Open Shortest Path First)
Dynamic Routing Protocols part2
13.3 OSPF: Open Shortest Path First.
Chapter 5: Dynamic Routing
Dynamic Routing Protocols II OSPF
Dynamic Routing and OSPF
Network Layer Routing Networks: Routing.
Presentation transcript:

LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November

Link state approach 2  In the DV approach, each router discovers the network topology through the distance vectors received from its neighbors.  In the LS approach, each router discovers the network topology through link state advertisements (LSAs).  Each router is responsible for discovering its neighbors and the states of the links between them, and informs other routers.  Upon receiving all the link states, a router can form a local view of the entire network.

An example [from [3]) 3  Routers connected by point-to-point links  Networks connected to the routers are omitted.  Link states are generally asymmetric.

After exchanging LSAs with neighbors (from [1]) 4  For router A

After receiving all LSAs (from [1]) 5  After the protocol converges, the routers’ link state databases are identical.

Link state routing protocols 6  Therefore, there are two main parts in a link state routing protocol.  (Topology dissemination) Construct and maintain a consistent link state database in all routers.  (Route computation) Each router computes minimum-cost paths to all destinations in the network.

Topology dissemination 7  Neighbor discovery  Use Hello protocols to discover neighbors and to elect a designated router on a shared medium.  Bringing up adjacencies in a point-to-point network  A set of protocols (database description, link state request/update) to synchronize the link state databases of the two routers  On a shared medium, a designated router  forms adjacency with other routers, and  responsible for advertising the link states.

Topology dissemination 8

Link state advertisements 9  A link-state router generates a link state advertisement (LSA) when discovering  a new neighbor router, or  the cost of the link to an existing neighbor changes (including link failure).  The LSA describes the latest changes in the network topology and must be transmitted to all other routers as soon as possible.  Dissemination cannot be based on the routing information. Why not?

An example 10  If B fails, A needs to update the link state for A->B.  But the spanning tree computed based on the original topology does not reach all nodes.

Reliable flooding protocol 11  The advertising router floods an LSA to all other interfaces.  Other routers forward the LSA to all interfaces except the one that the LSA is received.  To ensure reliability, all LSAs are positive- acknowledged.  A checksum is used to detect data corruption of an LSA, which covers the entire LSA except for some mutable fields.  The checksum is used both when the LSA is flooded and kept in the router’s database.

Packet storm prevention 12  To prevent packet storms from occurring, use some information to differentiate new LSAs from old LSAs.  Each router must keep the latest LSAs.  LSAs that are not newer are discarded.  Differentiating between new and old LSAs  Timestamps with local and global meanings (stamped by the advertising router).  A combination of sequence number (SN) and age.

LSAs’ sequence numbers and ages 13  A new LSA is indicated by a larger SN (the advertising router increments the SN for every LSA it sends).  The age and other information may also be used when the SNs are identical.  Design of the sequence numbering  Circular SN space (SN wraparounds)  Linear SN space (no SN wraparounds).

Linear sequence number space 14  The SN starts from some value, say 0 (this initial value may be negative).  The SN space should be large enough, say 32-bit SN space.  When attempting to increment the SN beyond the largest SN,  Prematurely age the LSA and reflooding it.  After receiving ACKs from all neighbor routers, send the LSA with the initial SN.

LSA messages 15  To recap, an LSA message must minimally include the following information  Some identification information of the advertising router  Link state type and its value  Age, sequence number, and checksum

Route computation 16  Given the network topology, each router computes minimum-cost paths from itself to other destinations (a spanning tree).  Use any efficient single-source, shortest-path algorithms, such as Dijskstra’s algorithm.  The link state can be based on any type of service (TOS), such as delay, reliability, etc.  Compute routes for different TOS, and equal-cost paths for load balancing.  The computed routes can be used in source routing or hop-by-hop routing.

An example 17

The optimality principle 18  If router E is on the optimal path from router A to router D, then  the optimal path from router E to router D also falls along the same path.  Given that the link state databases are identical in all routers, each local forwarding decision gives a globally optimal path.  If the link state databases are not identical, can the routers forward packets on an optimal path?

Area routing 19  To make the link state routing more scalable, some routers and their networks may be grouped into the same area.  Intra-area routing is essentially a separate copy of the link state routing protocol.  Inter-area routing relies on area border routers that have routing info in more than one area.  E.g., Router D “summarizes” the routing information in area 2 and floods it to the area 1, and vice versa.

Area routing example (from [1]) 20

Link and router failures 21  When a link fails, the routers on both side send updated LSAs for this link to age the LSAs in other routers.  To cater for router failures, each LSA is associated with an age (determined by the advertising router).  Each router periodically sends out its LSAs even though they are not changed, e.g., every half-an-hour.  An aged LSA will also be sent out to other routers to age the LSAs in other routers.

Initial sequence number 22  If a router boots up (after failure), it needs to know the latest SNs for its LSAs.  One solution is to use a distinct initial sequence number to start with. Let N O be the oldest SN (- 2** in OSPF).  When the router boots up, its sends LSAs with SN = N O.  When other routers received LSAs with SN = N O, they inform this router of the latest SNs.

Network partitions 23  Link/router failures could partition a network.  After the partition is healed, the link state databases in the two previously partitioned networks may not be consistent.  After the network partition, router B is unaware of the failure of link E-G.  After the link C-F is restored, router B may forward packets to router E via router G.  Whenever a failed link is restored, bringing up adjacency is performed.

Network partition example (from [1]) 24

Open shortest path first protocol 25  OSPF is an implementation of the link state approach.  OSPF calculates separate routes for each TOS.  When several equal-cost routes to a destination exist, traffic is distributed equally among them.  The cost of a route is described by a single dimensionless metric.  OSPF allows sets of networks to be grouped together, i.e., areas.  The topology of an area is hidden from outside.

Open shortest path first protocol 26  OSPF enables the flexible configuration of IP subnets.  Each route distributed by OSPF has a destination and mask.  Two different subnets of the same IP network number may have different sizes.  All OSPF protocol exchanges are authenticated.  Externally derived routing data is passed transparently throughout the OSPF network.

An OSPF network example 27  A cost is associated with the output side of each router interface.  Three kinds of nodes:  Router (transit)  Network (transit), e.g., N8 and N9  Stub network (nontransit), e.g., N1 and N2  N3, 6, 8, 9 are broadcast networks.  RT5 and RT7 are AS border routers.  N12-N14 are external networks, and the routes to N12 are advertised by both RT5 and RT7.

28

29

Link state representations: routers and LANs 30

Shortest-path tree rooted at RT6 31  Links without labels have costs of 0, e.g., N3 to R1, 2, 4.  RT6 has a link to address Ib (destination) and another link to RT10 (transit).  Numbered vs unnumbered point-to-point links  RT10 uses RT7 to reach external network N12.  RT6 to address Ia (destination)?  Only the next hop to the destination is used in the IP forwarding.

32

R6’s forwarding table for internal destinations 33

R6’s forwarding table for external destinations 34

OSPF areas 35  OSPF uses the concept of areas to define the routing environment.  An area is a logical collection of networks, identified by a 32-bit ID.  All routers belonging to the same area disclose complete information about all networks within that area.  There is a special area that must be defined for all OSPF domains---the backbone area ( ).  The backbone is responsible for distributing routing information between areas.

Inter-area routing 36  Internal, area border, backbone, AS boundary routers  Inter-area routing: from source to  an area border router to  a backbone path between the source and destination areas to  another intra-area path to the destination  The correct area border to use for exiting the source area is chosen exactly the same way as how external routers are chosen (e.g., N12).

37

Advertising link states into Area 1 38  Internal destinations: N1-N4  Area border routers RT3 and RT4 advertise into Area 1 the distances to all destinations external to the area.  RT3 and RT4 must also advertise into Area 1 the locations of the AS boundary routers RT5 and RT7.  Finally, external advertisements from RT5 and RT7 are flooded throughout the entire AS, including Area 1.

39

Summary 40  LS protocols have been deployed for intra-domain routing, such as IS-IS and OSPF.  LS protocols rely on reliable mechanisms to update link states of the network in all routers.  Compared with the DV approach, LS protocols are more complex to design and also more difficult to manage.  While the LS approach scales better than the DV approach, the LS still cannot be used in interdomain routing.

References M. Steenstrup, Routing in Communications Networks, Prentice Hall, R. Perlman, Interconnection, Second Edition, Addison Wesley, S. Keshav, An Engineering Approach to Computer Networking, Addison Wesley, C. Huitema, Routing in the Internet, Prentice Hall PTR, Second Edition, OSPF version 2 (RFC 1583)