Documente Academic
Documente Profesional
Documente Cultură
LINK-STATE ROUTING
PROTOCOL
Uses the hello information and Link-state advertisements (LSAs) it receives from other routers to build a database about the network A topological database Uses the shortest path first (SPF) algorithm (Dijkstra algorithm) to calculate the shortest route to each network The resulting SPF tree Stores this route information in its routing table
OSPF
OSPF overview
Open Shortest Path First (OSPF) is a link-state routing protocol based on open standards.
The most recent description is RFC 2328. The Open in OSPF means that it is open to the public and is non-proprietary.
OSPF terminology
Area 1
Token Ring
Area 0
Neighbors
Token Ring
Adjacency database
Token Ring
Adjacency database
Topological Database
Token Ring
Adjacency Database
Topological Database
Routing Table
Number by which the router is known to OSPF Router ID is Highest IP address of any active loopback interface. If there is no looback interface then Router ID is The highest IP address on an active interface at the moment of OSPF process startup
DR
Token Ring
BDR
DR
BDR
Hello
P=1
P=1
P=0
The router with the highest priority value is the DR. The router with the second highest priority value is the BDR. The default for the interface OSPF priority is 1. In case of the same priority, Router has the highest router ID is DR. Router has the second highest router ID is BDR
C
4
2 D 1 E F G
Cost is calculated using the formula 108/bandwidth, where bandwidth is expressed in bps. Bandwidth dividend is user configurable:
The rules that govern the exchange of OSPF hello packets are called the Hello protocol. Hello packets use : 224.0.0.5 (all routers). Hello packets are sent at regular intervals (default):
The hello packet carries information that all neighbors must agree upon before an adjacency is formed, and link-state information is exchanged.
Hello
A
afadjfjorqpoeru 39547439070713
Hello
Router ID Hello/dead intervals Neighbors Area-ID Router priority DR IP address BDR IP address Authentication password Stub area flag
First step in OSPF operation is to establish router adjacencies RTB sends hello packets, advertising its own router ID highest IP address:10.6.0.1(no loopback)
Hello
A
afadjfjorqpoeru 39547439070713
Hello
Router ID Hello/dead intervals Neighbors Area-ID Router priority DR IP address BDR IP address Authentication password Stub area flag
DR
BDR
Hello
P=1
P=1
P=0
The router with the highest priority value is the DR. The router with the second highest priority value is the BDR. The default for the interface OSPF priority is 1. In case of a tie, the routers router ID is used.
On multi-access network, the exchange of routing information occurs between the DR or BDR and every other router on the network. Link partners on a point-to-point or point-to-multipoint network also engage in the exchange process.
Exchange Process
A
172.16.5.1/24 E0 172.16.5.2/24 E1
Down State
Hello I will start exchange because I have router ID 172.16.5.1. No, I will start exchange because I have a higher router ID. Hello Exchange State
afadjfjorqpoeru 39547439070713 afadjfjorqpoeru 39547439070713
DBD
DBD
E0 172.16.5.1
afadjfjorqpoeru 39547439070713
E0 172.16.5.3
afadjfjorqpoeru 39547439070713
LSAck
afadjfjorqpoeru 39547439070713
LSAck
LSR
LSU
Full State
10.2.2.0/24 B
FDDI
10.3.3.0/24 C
1 LSU
A B
2
DR
1 LSU
A B
Router A tells all OSPF DRs on 224.0.0.6 DR tells all others on 224.0.0.5
2
DR
1 LSU
A B
3
LSU
Router A tells all OSPF DRs on 224.0.0.6 DR tells all others on 224.0.0.5
2
DR
1 LSU
A B
3
LSU
Router A tells all OSPF DRs on 224.0.0.6 DR tells all others on 224.0.0.5
Configuration
Wildcard Mask
-Bit 1 : check
-Bit 0 : ignore
11111110 254 11111100
-Bit 1 : ignore
-Bit 0 : check
00000001 1 00000011
2 4 8 16
252
11111000 248 11110000 240
3
00000111 7 00001111 15
32
64 128 256
11100000
224 11000000 192 10000000 128 00000000 0
00011111
31 0011111 1 63 0111111 1 127 11111111 255
Subnet mask
192.168.1.2 255.255.255.254 192.168.1.8 255.255.255.252 192.168.1.16 255.255.255.248 192.168.1.16 255.255.255.240 192.168.1.0 255.255.255.224 192.168.1.128 255.255.255.192 192.168.1.0 255.255.255.128 192.168.1.0 255.255.255.0
Wildcard mask
192.168.1.2 0. 0 . 0 .1 192.168.1.8 0. 0 . 0 .3 192.168.1.16 0. 0 . 0 .7 192.168.1.16 0. 0 . 0 .15 192.168.1.0 0. 0 . 0 .31 192.168.1.128 0. 0 . 0 .63 192.168.1.0 0. 0 . 0 .127 192.168.1.0 0. 0 . 0 .255
Wildcard any
Wildcard host
Point-to-Point Network
S0 10. 2.1.1/24 S1
10.64.1.1/24
E0
10.2.1.2/24
<Output Omitted> interface Ethernet0 ip address 10.64.1.1 255.255.255.0 ! <Output Omitted> router ospf 1
<Output Omitted> interface Ethernet0 ip address 10.64.0.2 255.255.255.0 ! interface Serial0 ip address 10.2.1.2 255.255.255.0 <Output Omitted> router ospf 50
network 10.2.1.0 0.0.0.255 area 0 network 10.64.0.0 0.0.0.255 area 0
show ip protocols
show ip route
show ip ospf
Router#
clear ip route *
Displays router interaction during the hello, exchange, and flooding processes
show ip route
R2#sh ip ospf int e0 Ethernet0 is up, line protocol is up Internet Address 192.168.0.12/24, Area 0 Process ID 1, Router ID 192.168.0.12, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DROTHER, Priority 1 Designated Router (ID) 192.168.0.11, Interface address 192.168.0.11 Backup Designated router (ID) 192.168.0.13, Interface address 192.168.0.13 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:04 Neighbor Count is 3, Adjacent neighbor count is 2 Adjacent with neighbor 192.168.0.13 (Backup Designated Router) Adjacent with neighbor 192.168.0.11 (Designated Router) Suppress hello for 0 neighbor(s)
Pri 1 1 1 1
State Dead Time Address 2WAY/DROTHER 00:00:31 192.168.0.13 FULL/BDR 00:00:38 192.168.0.14 2WAY/DROTHER 00:00:36 192.168.0.11 FULL/DR 00:00:38 192.168.0.12
Neighbor ID 192.168.0.11
Pri 1
State FULL/
Address 10.1.1.2
Interface Serial1
EIGRP CONCEPTS
EIGRP Overview
Cisco released EIGRP in 1994 as a scalable, improved version of its proprietary distance vector routing protocol, IGRP. Unlike IGRP, which is a classful routing protocol, EIGRP supports CIDR and VLSM. Hybrid routing protocol
RTA
10.1.1.0/24
RTB RTD
172.16.1.0/24
RTC
EIGRP and IGRP automatically redistribute routes between autonomous systems with same autonomous system (AS) number. IGRP has a maximum hop count of 255. EIGRP has a maximum hop count limit of 224.
RTB RTA Network Z RTC RTX RTY I have a route to Z, with a metric of 6
(2)
(1)
E EIGRP (a) via D via C FD AD 3 3 2 4 3 Topology (fd) (Successor)
EIGRP technologies
Many new technologies are improvement in operating efficiency, speed of convergence, or functionality relative to others routing protocols.
Four categories:
Neighbor discovery and recovery Reliable Transport Protocol (RTP) DUAL finite-state machine algorithm
Dynamically learn of new router that join their network Identify routers that become either unreachable or inoperable Rediscover routers that had previously been unreachable
EIGRP uses RTP as its own proprietary transport-layer protocol, that can guarantee ordered delivery of routing information to all neighbors. EIGRP can call on RTP to provide reliable or unreliable service as the situation warrants. Reliable delivery of other routing information can actually speed convergence, because EIGRP routers are not waiting for a timer to expire before they retransmit.
With RTP, EIGRP can multicast and unicast to different peers simultaneously, which allows for maximum efficiency.
Update: Send routing updates Query: Ask neighbors about routing information Reply: Response to query about routing information
EIGRP unreliable packets are packets that do not require explicit acknowledgement:
Tracks all routes advertised by neighbors Select loop-free path using a successor and remember any feasible successors If successor lost, use feasible successor If no feasible successor, query neighbors and
Router B information
Router C information
C DUAL ?
Routing Table IP
CONFIGURING EIGRP
For IP networks
For IP networks
Show ip eigrp interfaces [int type] [asnumber][details] Show ip eigrp topology [asnumber][ [ip-add] mask ]
Display the EIGRP topology table, use the show ip eigrp topology EXEC command. Also used to determine DUAL states & debug possible DUAL problems.
Depending on keywork is used. Display all routes in the topology table that are either active, pending or without successor Display all routes not just FC in EIGRP topology Display the number of EIGRP packets send and received.
Show ip eigrp topology [active | pending | zerosuccessor] Show ip eigrp all-links Show ip eigrp traffic [asnumber]
Description
This command helps you observe EIGRP FS activuty and to determine whether route updates are being installed and deleted by the routing process
RTA#show ip eigrp neighbors IP-EIGRP neighbors for process 400 H Address Interface Hold Uptime (sec) 1 172.68.2.2 To0 13 02:15:30 13 0 172.68.16.2 Se1 10 02:38:29 10
SRTT (ms) 8 29