Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 111 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
111
Dung lượng
1,73 MB
Nội dung
Chapter 11
OSPF
quangkien@gmail.com
2
For further information
This presentation is an
overview of what is
covered in the
curriculum/book.
For further explanation
and details, please read
the chapter/curriculum.
Book:
Routing Protocols
and Concepts
By Rick Graziani and
Allan Johnson
ISBN: 1-58713-206-0
ISBN-13: 978-58713-
206-3
3
Topics
Introduction to OSPF
Background of OSPF
OSPF Message
Encapsulation
OSPF Packet Types
Hello Protocol
OSPF LSUs
OSPF Algorithm
Administrative Distance
Authentication
Basic OSPF Configuration
Lab Topology
The router ospf command
The network command
OSPF Router ID
Verifying OSPF
Examining the Routing
Table
The OSPF Metric
OSPF Metric
Modifying the Cost of the
Link
OSPF and Multiaccess
Networks
Challenges in Multiaccess
Networks
DR/BDR Election Process
OSPF Interface Priority
More OSPF Configuration
Redistributing an OSPF
Default Route
Fine-tuning OSPF
Introduction to OSPF
Background of OSPF
OSPF Message Encapsulation
OSPF Packet Types
Hello Protocol
OSPF LSUs
OSPF Algorithm
Administrative Distance
Authentication
5
Introduction to OSPF
OSPF is:
Classless
Link-state routing protocol
Uses the concept of areas for scalability
RFC 2328 defines the OSPF metric as an arbitrary value called cost.
Cisco IOS software uses bandwidth to calculate the OSPF cost metric.
6
Background of OSPF
1987 - Initial development by IETF OSPF Working Group.
1989 - OSPFv1 was published in RFC 1131.
1991 - OSPFv2 was introduced in RFC 1247 by John Moy.
ISO was working IS-IS
IETF chose OSPF as its recommended IGP (interior gateway
protocol).
In 1998 - OSPFv2 specification was updated in RFC 2328 and is the
current RFC for OSPF.
7
OSPF Message
Encapsulation
This data field can include one of five OSPF packet types.
In the IP packet header:
Protocol field is set to 89 (OSPF)
Destination address is typically set to one of two multicast addresses:
224.0.0.5
224.0.0.6
If the OSPF packet is encapsulated in an Ethernet frame, the destination
MAC address is also a multicast address:
01-00-5E-00-00-05
01-00-5E-00-00-06
8
OSPF Packet
Types
Five types of OSPF LSPs (link-state packets).
Hello: Used to establish and maintain adjacency.
DBD (Database Description): Abbreviated list of the sending router’s link-
state database.
LSR (Link-State Request) : Used by routers to request more information
about any entry in the DBD.
LSU: (Link-State Update): Link-state information.
LSAck (LSA Acknowledgment): Router sends a link-state (LSAck) to
confirm receipt of the LSU.
Figure includes
CCNP information
9
Hello
Protocol
Discover neighbors (OSPF neighbors)
Establish adjacencies
Advertise parameters on which two routers must agree to become
neighbors
Hello Interval, Dead Interval, Network Type
Elect the Designated Router and Backup Designated Router on
multiaccess networks such as Ethernet and Frame Relay
Hello packets :
More in later
10
Hello
Protocol
Type: OSPF packet type: Hello (Type 1), DBD (Type 2), LS Request (Type
3), LS Update (Type 4), LS ACK (Type 5)
Router ID: ID of the originating router
Area ID: Area from which the packet originated
Network Mask: Subnet mask associated with the sending interface
Hello Interval: Number of seconds between the sending router’s Hellos
Router Priority: Used in DR/BDR election (discussed later)
Designated Router (DR): Router ID of the DR, if any
Backup Designated Router (BDR): Router ID of the BDR, if any
List of Neighbors: Lists the OSPF Router ID of the neighboring router(s)
These will be discussed
throughout this chapter.
[...]... when used with other IGP routing protocols) : Any interfaces on a router that match the network address in the network command will be enabled to send and receive OSPF packets This network (or subnet) will be included in OSPF routing updates Requires the wildcard mask Used to specify the interface or range of interfaces that will be enabled for OSPF 26 The network Command Router(config-router)#... routers will only accept routing information from other routers that have been configured with the same password or authentication information 19 Basic OSPF Configuration Lab Topology The router ospf command The network command OSPF Router ID Verifying OSPF Examining the Routing Table Topology Notice that the addressing scheme is discontiguous OSPF is a classless routing protocol There... physical interfaces 35 OSPF router-id Command Router(config)# router ospf process-id Router(config-router)# router-id ip-address The OSPF router-id command was introduced in Cisco IOS Software Release 12.0(T) and takes precedence over loopback and physical interface IP addresses for determining the router ID 1 Use the IP address configured with the OSPF router-id command 2 Highest IP address of any of its... seconds - Multiaccess and point-to-point segments 120 seconds - NBMA networks Dead interval expires OSPF removes that neighbor from its link-state database Floods the link-state information about the “down” neighbor out all OSPF-enabled interfaces Network types are discussed later in the chapter 14 Electing a DR and BDR More later Election of Designated Router (DR) and Backup Designated... or 192.168.10.6 32 Verifying the Router ID show ip ospf can also be used (later) R1# show ip protocols Routing Protocol is “ospf 1” Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 192.168.10.5 R2# show ip protocols Routing Protocol is “ospf 1” Outgoing update filter list for all interfaces is not set Incoming... Command R1(config)# router ospf 1 R1(config-router)# The process-id Between 1 and 65,535 Chosen by the network administrator Locally significant: Does not have to match other OSPF routers This differs from EIGRP We are using the same process ID simply for consistency 25 The network Command Router(config-router)# network network-address wildcard-mask area area-id The network command... responsible for updating all other OSPF routers BDR is the backup if the current DR fails R1, R2, and R3 are connected through point-to-point links No DR/BDR election occurs Much more later 15 OSPF LSUs Link-State Updates (LSU) are the packets used for OSPF routing updates Can contain 11 different types of LSAs (Link-State Advertisements) (CCNP) 16 At times, these terms are used interchangeably... received all the LSAs and built its local link-state database, OSPF uses Dijkstra’s shortest path first (SPF) algorithm to create an SPF tree The SPF tree is then used to populate the IP routing table with the best paths to each network 17 Administrative Distance Administrative distance (AD) is the trustworthiness (or preference) of the route source OSPF has a default AD of 110 18 Authentication... LSUs and have identical linkstate databases (CCNP) More later Before an OSPF router can flood its link states, must discover neighbors Includes the OSPF Router ID (later) Receipt confirms there is another OSPF router on this link Adjacency is now established Routers are not considered fully adjacent, at this point each router is aware of the other OSPF router on the link 11 OSPF Hello and. .. 192.168.10.1 255.255.255.252 clock rate 64000 ! interface Serial0/0/1 description Link to R3 ip address 192.168.10.5 255.255.255.252 The current configurations do not include the interface bandwidth command This means that the bandwidth value on the serial interfaces is set to the default value of 1544 Kbps 22 R2’s configuration hostname R2 ! interface FastEthernet0/0 description R2 LAN ip address 10.10.10.1 . further explanation
and details, please read
the chapter/ curriculum.
Book:
Routing Protocols
and Concepts
By Rick Graziani and
Allan Johnson
ISBN:. Configuration
Lab Topology
The router ospf command
The network command
OSPF Router ID
Verifying OSPF
Examining the Routing
Table
The OSPF Metric
OSPF