Vous êtes sur la page 1sur 3

it will take the highest IP address of interfaces or it

OSPF Open Shortest Path First can be manually configured.


2. Priority: it is the priority of the neighbor
router, the highest priority determines the
Summary designated router (DR) if the priorities are all the
same the designated router will be the one who
History has highest ID. By default routers have priority 1, a
OSPF Principles router with priority 0 never becomes a designated
router or Backup designated router (BDR).
OSPF Concepts & Structure. 3. State: The State field indicates the functional
Neighbor table state of the neighbor router defined in the
RFC2328 in 1998. Down: This is the first OSPF
Topology table neighbor state, it means that no information
Routing table (hellos) has been received from this neighbor, but
OSPF Areas hello packets can still be sent to the neighbor in
this state. Attempt this state is only valid on the
OSPF Packets NBMA environment ATM, Frame Relay and X25.
Area Border routers The router sends unicast hello packets every poll
interval to the neighbor, from which hellos have
Autonomous Boundary router
not been received within the dead interval. Init:
OSPF Operations the state specifies that the hello packet has been
Cisco OSPF Basic commands received from the neighbor but the neighbor
router ID was not included to be considered as a
History: valid Hello Packet. 2-Way: this state means that
Based on Djikstra Algorithm the Hello Message has been successfully passed in
Released in 1989 V1 RFC1131 the bi-directional ways; this state is attained just
Released in 1991 V2 RFC1247 when the router sees its own ID in the hello packet
V2 Updated on 1998 RFC2328 of its neighbor. Exstart: at this stage routers
Released in 1999 V3 RFC2740 establish a master and slave relationship to start
OSPF principles: exchange the link state information. The
OSPF is link state based protocol designated router DR and BDR are the only who
Aims to get the best route can increment the sequence number.
Get the sonnest possible the optimal routing Exchange: in this state the routers exchange (DBD)
table. database descriptors packets; the DBD Packets
Note: contains link-state advertisement headers (LSA).
1. Best & Optimal depend on the used metric Loading: in this state, the actual link state
2. Metric = Cost is calculated based on the information occurs based on the information
following rule : provided in the DBD; routers send link-state
Cost = (108 / Bandwidth bps) request packets. The neighbor then provides the
OSPF Concepts & Structure: requested link-state information in link-state
OSPF depends on the following concepts update packets, full: in this state router are fully
adjacent with each other and the entire routers
Neighbor table: Contains all discovered database are synchronized
OSPF neighbors with whom routing information
will be interchanged. NOTE: The DR and BDR that achieve FULL state
The neighbor table contains the following with every router on the segment will display
fileds: FULL/DROTHER when you enter the show ip ospf
1. Neighbor ID: This is the router ID of the neighbor command on either a DR or BDR. This
neighbor router. The ID will take the highest IP simply means that the neighbor is not a DR or
address among the loopback IP if configured else BDR, but since the router on which the command
was entered is either a DR or BDR, this shows the
neighbor as FULL/DROTHER.
1
2) The Database Description Packet DBD: packet
4. Dead Time: indicate the remaining time that contains all updated link-state information
the router waits to receive Hello Packet from its exchanged among the network, and all routers
neighbor before declaring it down. In the broadcast within the same area have identical LSDB, and
and point to point network the Dead Time is 40 when two routers form new neighbor
Seconds & in the non broadcast multiple access is adjacency, they sync their LSDB to be fully
120 seconds. adjacent.
It contains:
5. Address: The Address field indicates the IP I-bit: The Init bit. When set to 1, this packet is
address of the interface to which this neighbor is the first in the sequence of Database
directly connected. Description Packets.
M-bit: The More bit. When set to 1, it
6. Interface : The Interface field indicates the indicates that more Database Description
interface on which the OSPF neighbor has formed Packets are to follow.
adjacency MS-bit: The Master/Slave bit. When set to 1, it
indicates that the router is the master during
Topology Table: Contains the whole map of the Database Exchange process. Otherwise,
the network with all available OSPF routers. the router is the slave.
Routing Table: Contain the current working DD: sequence number Used to sequence the
best paths that will be used to forward data traffic collection of Database Description Packets.
between neighbors The initial value (indicated by the Init bit being
OSPF Areas: Routing Areas is distinguished set) should be unique. The DD sequence
notion in the OSPF, it means dividing routers into number then increments until the complete
autonomous system running OSPF process, each database description has been sent.
area represents a group of connected routers in
order to optimize resources and administration,
the first area is called Backbone. 3) The link state request Packet LSR:
Once neighbor adjacency is formed and LSDB
Advantages of Areas:
is exchanged, neighbor routers may locate
The Area boundaries will give the missing LSDB information, they then send a
opportunity of using summarization. request packet to claim the missing piece, and
Area boundaries will also help preventing neighbors receive this packet and respond
fault containment by suppressing updates that with LSU.
take place when a change occurs in the network 4) The Link state update Packet LSU: A response
causing a flood of updates between routers. packet sends a specific piece of LSDB
information requested by an OSPF neighbor
OSPF Packets: via LSR packet.
5) Link State Acknowledgment LSA Ack: The
1) Hello Packet: These packets are sent router that sends the LSR packet confirms
periodically (10 sec) on all interfaces (including receiving the LSU from neighbor by sending a
virtual links) in order to establish and maintain confirmation packet acknowledging receiving
neighbor relationships. Hello Packets are the requested LSUs.
multicast.
Multicast address for OSPF Area Boarder Routers (ABR):
Routers located on the borders of
224.0.0.5 DR to others
each Area connect to more than one OSPF area,
224.0.0.6 other send to DR
are called ABR Routers. ABR Routers are
Hello packet contains: Network mask,
responsible for summarizing IP addresses of each
Options, Hello Interval, Router Priority, Router
area and suppressing updates among areas to
Dead Interval, Designated Router ID, Backup
prevent fault containment.
Designated Router ID and Neighbor IDs from
whom hello packets have been received.

2
Autonomous System Boundary Router Execute the SPF algorithm: Routers then
(ASBR): execute the SPF algorithm. The SPF algorithm
An ASBR is a router that has interfaces connected creates the SPF tree.
to one or more OSPF areas, similarly as the ABR,
however the difference with an ASBR is that it also Build the routing table: From the SPF tree, the
connects to other routing systems such best paths are inserted into the routing table
as BGP, EIGRP, Internet and others.
An ASBR router normally advertises routes from Cisco OSPF basic Commands :
other routing systems into the OSPF area to which 1) Enable OSPF process and name it 1
it belongs. Adding the network 192.168.12.0
with its wildcard mask 0.0.0.255
Designated Router (DR & BDR): area 0
A Designated Router is elected by the routers on (Config) #router ospf 1
multi-access segments based on its priority (Config) #network 192.168.12.0 0.0.0.255 area 0
(Router ID, priority). The DR router performs
special functions such as generating Link State 2) Giving a priority manually to a router
Advertisements (LSAs) and exchanging
information with all other routers in the R(config-if)# ip ospf priority <0-255>
same Area. Every router in the same Area will
create an adjacency with the DR and BDR. the BDR 3) Enable OSPF Authentification :
interface Serial0
will be active if DR fails.
ip address 192.16.64.2 255.255.255.0
ip ospf authentication-key c1$c0
OSPF Operations:
4) Display the OSPF database :
Router# show ip ospf database
Establish neighbor adjacencies: OSPF-enabled
5) Display the OSPF neighbors
routers must form adjacencies with their Router# show ip ospf neighbor
neighbor before they can share information 6) Display OSPF interface description
with that neighbor. An OSPF-enabled router show ip ospf interface ethernet 0
sends Hello packets out all OSPF-enabled 7) Display OSPF routes
interfaces to determine whether neighbors are Show ip route ospf
present on those links. If a neighbor is present,
the OSPF-enabled router attempts to establish
a neighbor adjacency with that neighbor.

Exchange link-state advertisements: After


References:
adjacencies are established, routers then www.cisco.com
exchange link-state advertisements (LSAs). LSAs www.networklessons.com
contain the state and cost of each directly
connected link. Routers flood their LSAs to
www.firewall.cx
adjacent neighbors. Adjacent neighbors www.freesoft.org
receiving the LSA immediately flood the LSA to
om
Build the topology table: After the LSAs are
All the best for all
received, OSPF-enabled routers build the
topology table (LSDB) based on the received Bonne chance tous
LSAs. This database eventually holds all the Prepared by Mechouma Toufik
information about the topology of the network. Email:toufikmechouma@gmail.com
It is important that all routers in the area have If you notice any mistakes please
the same information in their LSDBs. communicate them to above email.

Vous aimerez peut-être aussi