ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network.

Slides:



Advertisements
Similar presentations
Introduction to OSPF.
Advertisements

Lonnie Decker Multiarea OSPF for CCNA Department Chair, Networking/Information Assurance Davenport University, Michigan August 2013 Elaine Horn Cisco Academy.
COMS/CSEE 4140 Networking Laboratory Lecture 05 Salman Abdul Baset Spring 2008.
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
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
W4140 Network Laboratory Lecture 6 Oct 16 - Fall 2006 Shlomo Hershkop Columbia University.
1 CCNA 3 v3.1 Module 2. 2 CCNA 3 Module 2 Single Area OSPF.
ROUTING PROTOCOLS Rizwan Rehman. Static routing  each router manually configured with a list of destinations and the next hop to reach those destinations.
CS 356: Computer Network Architectures Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang
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.
Delivery, Forwarding and
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Adjust and Troubleshoot Single- Area OSPF Scaling Networks.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
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.
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.
Lecture 4: Dynamic routing protocols
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Collected By: Mehdi Daneshvar Supervisor: E.M.Kosari.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Instructor & Todd Lammle
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
Instructor & Todd Lammle
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
CCNA 3 Week 2 Link State Protocols OSPF. Copyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector –Copies Routing Table to.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
1 of of 35 Single Area OSPF Concepts 3 of 35 OSPF Basics.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
Networks and Protocols CE Week 8b. Link state Routing.
Link State & OSPF Spring 2013CE Advanced Networks1.
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
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Single-Area OSPF Routing Protocols.
Interior Gateway Protocols (RIP, OSPF) continued….
Dynamic Routing Protocols II OSPF
Open Shortest Path First (OSPF)
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November
© 2002, Cisco Systems, Inc. All rights reserved..
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Single-Area OSPF Routing Protocols.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—3-1 Implementing a Scalable Multiarea Network OSPF-Based Solution Planning Routing Implementations.
CCNP Routing Semester 5 Chapter 4 OSPF.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Open Shortest Path First (OSPF) Uses Link State routing Each node acquires complete topology information using link state updates Link-state - what it.
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,
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Single-Area OSPF Routing & Switching.
Dynamic Routing Protocols II OSPF
Link State Routing protocol
Open Shortest Path First Chang-Keun Park
OSPF (Open Shortest Path First)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
13.3 OSPF: Open Shortest Path First.
Chapter 5: Dynamic Routing
Link State Algorithm Alternative to distance-vector
Dynamic Routing Protocols II OSPF
Dynamic Routing and OSPF
Chapter 8: Single-Area OSPF
Dynamic Routing Protocols part2
Dynamic Routing: Dynamic routing is where we use a routing protocol; routing protocols are cool because they take care of our work. Routing protocols will.
Dynamic Routing Protocols part3 B
Presentation transcript:

ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network

Open Shortest Path First (OSPF) 2

3  RFC 2328  OSPF is a link state protocol  OSPF provides a number of features not found in distance vector protocols.  Support for these features has made OSPF a widely-deployed routing protocol in large networking environments.  In fact, RFC 1812 – Requirements for IPv4 Routers, lists OSPF as the only required dynamic routing protocol.

Link State Routing  Based on Dijkstra’ s Shortest-Path-First algorithm.  Each router starts by knowing: Prefixes of its attached networks. Links to its neighbors.  Each router advertises to the entire network (flooding): Prefixes of its directly connected networks. Active links to its neighbors.  Each router learns: A complete topology of the network (routers, links).  Each router computes shortest path to each destination.  In a stable situation, all routers have the same graph, and compute the same paths.

Link state routing: graphical illustration a b cd a 3 6 b c a’s view: a b c 3 1 b’s view: cd 2 d’s view: Collecting all views yield a global & complete view of the network! Global view: a b cd 1 6 c’s view: 2

Operation of a Link State Routing protocol Received LSAs IP Routing Table Dijkstra’s Algorithm Link State Database LSAs are flooded to other interfaces

Link State Routing: Properties  Each node requires complete topology information  Link state information must be flooded to all nodes  Guaranteed to converge

Distance Vector vs. Link State Routing  With distance vector routing, each node has information only about the next hop:  Node A: to reach F go to B  Node B: to reach F go to D  Node D: to reach F go to E  Node E: go directly to F  Distance vector routing makes poor routing decisions if directions are not completely correct (e.g., because a node is down).  If parts of the directions incorrect, the routing may be incorrect until the routing algorithms has re-converged. A A B B C C D D E E F F

Distance Vector vs. Link State Routing  In link state routing, each node has a complete map of the topology  If a node fails, each node can calculate the new route  Difficulty: All nodes need to have a consistent view of the network A A B B C C D D E E F F ABC DE F ABC DE F ABC DE F ABC DE F ABC DE F ABC DE F

Topology information is flooded within the routing domain Best end-to-end paths are computed locally at each router. Best end-to-end paths determine next-hops. Based on minimizing some notion of distance Works only if policy is shared and uniform Examples: OSPF, IS-IS Distance Vector vs. Link State Routing Each router knows little about network topology Only best next-hops are chosen by each router for each destination network. Best end-to-end paths result from composition of all next- hop choices Does not require any notion of distance Does not require uniform policies at all routers Examples: RIP, BGP Link StateVectoring

Dynamic Routing Protocols Open Shortest Path First

OSPF terminology 12  OSPF areas  OSPF networks are divided into a collection of areas.  An area consists of a logical grouping of networks and routers.  The area can coincide with geographic or administrative boundaries.  Each area is assigned a 32-bit area ID.

13  Subdividing the network provides the following benefits:  Within an area, every router maintains an identical topology database describing the routing devices and links within the area. These routers have no knowledge of topologies outside the area. They are only aware of routes to these external destinations. This reduces the size of the topology database maintained by each router.  Areas limit the potentially explosive growth in the number of link state updates. Most LSAs are distributed only within an area.  Areas reduce the CPU processing required to maintain the topology database. The SPF algorithm is limited to managing changes within the area.

14  Backbone area and area 0  All OSPF networks contain at least one area, this area is known as area 0 or the backbone area  Additional areas can be created based on network topology or other design requirements.  In networks containing multiple areas, the backbone physically connects to all other areas.  OSPF expects all areas to announce routing information directly into the backbone.  The backbone then announces this information into other areas

15

16  Intra-area, area border, and AS boundary routers  Intra-area routers This class of router is logically located entirely within an OSPF area. Intra-area routers maintain a topology database for their local area.  Area border routers (ABR) This class of router is logically connected to two or more areas. One area must be the backbone area. An ABR is used to interconnect areas. They maintain a separate topology database for each attached area. ABRs also execute separate instances of the SPF algorithm for each area.  AS boundary routers (ASBR) It is located at the periphery of an OSPF internetwork. It functions as a gateway exchanging reachability between the OSPF network and other routing environments ASBRs are responsible for announcing AS external link advertisements through the AS.  Each router is assigned a 32-bit router ID (RID).  The RID uniquely identifies the device.  One popular implementation assigns the RID from the lowest-numbered IP address configured on the router.

17  Physical network types  Point-to-point: Point-to-point networks directly link two routers.  Multi-access: Multi-access networks support the attachment of more than two routers. Broadcast networks: have the capability of simultaneously directing a packet to all attached routers. This capability uses an address that is recognized by all devices. Ethernet and token-ring LANs are examples of OSPF broadcast multi-access networks. Non-broadcast networks: do not have broadcasting capabilities. Each packet must be specifically addressed to every router in the network. X.25 and frame relay networks are examples of OSPF non-broadcast multi- access networks.  Point-to-multipoint: Point-to-multipoint networks are a special case of multi-access, non-broadcast networks. In a point-to-multipoint network, a device is not required to have a direct connection to every other device. This is known as a partially meshed environment.

18  Neighbor routers and adjacencies  Routers that share a common network segment establish a neighbor relationship on the segment.  Routers must agree on the following information to become neighbors: Area ID: The routers must belong to the same OSPF area. Authentication: If authentication is defined, the routers must specify the same password. Hello and dead intervals: The routers must specify the same timer intervals used in the Hello protocol. Stub area flag: The routers must agree that the area is configured as a stub area.  After two routers have become neighbors, an adjacency relationship can be formed between the devices. Neighboring routers are considered adjacent when they have synchronized their topology databases. This occurs through the exchange of link state information.

19  Designated and backup designated router  The exchange of link state information between neighbors can create significant quantities of network traffic.  To reduce the total bandwidth required to synchronize databases and advertise link state information, a router does not necessarily develop adjacencies with every neighboring device: Multi-access networks: Adjacencies are formed between an individual router and the (backup) designated router. Point-to-point networks: An adjacency is formed between both devices.

20  Designated and backup designated router (cont.)  Each multi-access network elects a designated router (DR) and backup designated router (BDR).  The DR performs two key functions on the network segment: It forms adjacencies with all routers on the multi-access network. This causes the DR to become the focal point for forwarding LSAs. It generates network link advertisements listing each router connected to the multi-access network.  The BDR forms the same adjacencies as the designated router. It assumes DR functionality when the DR fails.  Each router is assigned an 8-bit priority, indicating its ability to be selected as the DR or BDR. A router priority of zero indicates that the router is not eligible to be selected. The priority is configured on each interface in the router.

21  The relationship between neighbors.  No adjacencies are formed between routers that are not selected to be the DR or BDR.

22  Link state database  The link state database is also called the topology database.  It contains the set of link state advertisements describing the OSPF network and any external connections.  Each router within the area maintains an identical copy of the link state database.

23  Link state advertisements and flooding  LSAs are exchanged between adjacent OSPF routers. This is done to synchronize the link state database on each device.  When a router generates or modifies an LSA, it must communicate this change throughout the network.  The router starts this process by forwarding the LSA to each adjacent device.  Upon receipt of the LSA, these neighbors store the information in their link state database and communicate the LSA to their neighbors.  This store and forward activity continues until all devices receive the update.  This process is called reliable flooding.

24  Two steps taken to ensure this flooding doesn’t overloading the network with excessive quantities of LSA traffic:  Each router stores the LSA for a period of time If, during that time, a new copy of the LSA arrives, the router replaces the stored version. However, if the new copy is outdated, it is discarded.  To ensure reliability, each link state advertisement must be acknowledged. Multiple acknowledgements can be grouped together into a single acknowledgement packet. If an acknowledgement is not received, the original link state update packet is retransmitted.

25  Five types of information contained in link state advertisements:  Router LSAs It describes the state of the router's interfaces (links) within the area. Generated by every OSPF router. The advertisements are flooded throughout the area.  Network LSAs It lists the routers connected to a multi-access network. Generated by the DR on a multi-access segment. The advertisements are flooded throughout the area.

26  Summary LSAs (Type-3 and Type-4) It generated by an ABR. Two types of summary link advertisements: Type-3 summary LSAs describe routes to destinations in other areas within the OSPF network (inter-area destinations). Type-4 summary LSAs describe routes to ASBRs. Summary LSAs are used to exchange reachability information between areas. Normally, information is announced into the backbone area. The backbone then injects this information into other areas.  AS external LSAs It describes routes to destinations external to the OSPF network. They are generated by an ASBR. The advertisements are flooded throughout all areas in the OSPF network.

27 OSPF link state advertisements

Example Network Router IDs can be selected independent of interface addresses, but usually chosen to be the smallest interface address Link costs are called Metric Metric is in the range [0, 2 16 ] Metric can be asymmetric / / / / / / / /

Link State Advertisement (LSA)  The LSA of router is as follows:  Link State ID: = Router ID  Advertising Router: = Router ID  Number of links: 3 = 2 links plus router itself  Description of Link 1: Link ID = , Metric = 4  Description of Link 2: Link ID = , Metric = 3  Description of Link 3: Link ID = , Metric = / / / / / / / /

Network and Link State Database Each router has a database which contains the LSAs from all other routers LS TypeLinkStateIDAdv. RouterChecksumLSSeqNoLS Age Router-LSA x9b470x Router-LSA x219e0x Router-LSA x6b530x Router-LSA xe39a0x a20 Router-LSA xd2a60x Router-LSA x05c30x / / / / / / / /

OSPF Packet Format Destination IP: neighbor’s IP address or (ALLSPFRouters) or (AllDRouters) TTL: set to 1 (in most cases) OSPF packets are not carried as UDP payload! OSPF has its own IP protocol number: 89

OSPF Packet Format 2: current version is OSPF V2 Message types: 1: Hello (tests reachability) 2: Database description 3: Link Status request 4: Link state update 5: Link state acknowledgement ID of the Area from which the packet originated Standard IP checksum taken over entire packet 0: no authentication 1: Cleartext password 2: MD5 checksum (added to end packet) Authentication passwd = 1: 64 cleartext password Authentication passwd = 2: 0x0000 (16 bits) KeyID (8 bits) Length of MD5 checksum (8 bits) Nondecreasing sequence number (32 bits) Prevents replay attacks

OSPF LSA Format LSA Header Link 1 Link 2

Discovery of Neighbors  Routers multicasts OSPF Hello packets on all OSPF- enabled interfaces.  If two routers share a link, they can become neighbors, and establish an adjacency  After becoming a neighbor, routers exchange their link state databases Scenario: Router restarts

Neighbor discovery and database synchronization Sends empty database description Scenario: Router restarts Discovery of adjacency Sends database description. (description only contains LSA headers) Database description of Acknowledges receipt of description After neighbors are discovered the nodes exchange their databases

Regular LSA exchanges explicitly requests each LSA from sends requested LSAs Link State Request packets, LSAs = Router-LSA, , Router-LSA, , Router-LSA, , Router-LSA, , Router-LSA, , Router-LSA, , Link State Update Packet, LSAs = Router-LSA, ,0x Router-LSA, , 0x Router-LSA, , 0x Router-LSA, , 0x a Router-LSA, , 0x Router-LSA, , 0x

Dissemination of LSA-Update  A router sends and refloods LSA-Updates, whenever the topology or link cost changes. (If a received LSA does not contain new information, the router will not flood the packet)  Exception: Infrequently (every 30 minutes), a router will flood LSAs even if there are not new changes.  Acknowledgements of LSA-updates:  explicit ACK, or  implicit via reception of an LSA-Update  Question: If a new node comes up, it could build the database from regular LSA-Updates (rather than exchange of database description). What role do the database description packets play?