Professional Documents
Culture Documents
Ex 10 OSPF
Ex 10 OSPF
Routing Protocols
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.
All routers have the same information All routers calculate the best path to every destination Any link state changes are flooded across the network
Each router computes its best path to every destination On network failure
New LSAs are flooded All routers recompute routing table Only changes are propagated
LSA
X
LSA
R1
Hello
Hello
Hello
the change to all OSPF neighbours All routers run the SPF algorithm on the revised database Install any change in the forwarding table
OSPF
Areas is a collection of networks, hosts, and routers in AS AS can be divided into many different areas. Routers inside an area flood the area with routing information. Area Border Router summarizing the information about the area and send it to other areas Backbone All of the areas inside an AS must be connected to the backbone serving as a primary area consisting of backbone routers
OSPF
Areas in an AS
OSPF Cost
Cost is the OSPF metric used in path selection Cost is based on bandwidth Default bandwidth is 1.544Mbps cost is 64 Cost can be 1 (100Mbps) to 65535 Cost is 108 bandwidth
OSPF
Advantages
Changes in an OSPF network are propagated quickly. OSPF is hierarchical, using area 0 as the top as the hierarchy. OSPF is a Link State Algorithm. OSPF supports Variable Length Subnet Masks (VLSM). OSPF uses multicasting within areas. After initialization, OSPF only sends updates on routing table sections which have changed; it does not send the entire routing table. Using areas, OSPF networks can be logically segmented to decrease the size of routing tables. Table size can be further reduced by using route summarization. OSPF is an open standard, not related to any particular vendor.
Disadvantages
OSPF is very processor intensive. OSPF maintains multiple copies of routing information, increasing the amount of memory needed. OSPF is not as easy to learn as some other protocols. In the case where an entire network is running OSPF, and one link within it is "bouncing" every few seconds, OSPF updates would dominate the network by informing every other router every time the link changed state
Commands
R1(config)# Router OSPF 1 R1(config-router)#network net-add R1(config-router)#network 10.0.0.0 wildcard mask area area-id 0.255.255.255 area 0
Wildcard Mask
A wildcard mask is a mask of bits that indicates which parts of an IP address can assume any value. In the Cisco IOS, they are used in several places, for example:
To indicate the size of a network for some routing protocols, such as OSPF. To indicate what IP addresses should be permitted or denied in access control lists (ACLs).
A wildcard mask can be thought of as a subnet mask, with ones and zeros inverted For example, a wildcard mask of 0.0.0.255 corresponds to a subnet mask of 255.255.255.0.