‚ < ‚ Free Open Study ‚ > ‚ |
Several types of LSAs exist. This section discusses the nine types of LSAs documented in Table 8-2. Table 8-2. Types of LSA
Each LSA has a 20-byte common LSA header, the format for which is illustrated in Figure 8-7. Figure 8-7. Common LSA Header Format
The list that follows describes the fields in the LSA header:
Router LSARouter LSAs are generated by each router for each area to which the router belongs. These packets describe the states of the router's link to the area and are flooded only within a particular area. All the router's links in an area must be described in a single LSA. The router LSA floods throughout the particular area; however, the flooding of this LSA is limited within an area. The router LSA of a router cannot exist outside the area; otherwise , every single router in OSPF would have to carry huge amounts of detailed information. Those details remain within an area. The router indicates whether it's an ABR, ASBR, or an endpoint of a virtual link. Figure 8-8 shows the packet format for the router LSA. Figure 8-8. Router LSA Packet Format
The list that follows describes the fields within the router LSA packet:
Table 8-4. Different Router Link Types
Router LSA ExampleExample 8-1 shows the output of a router LSA from a Cisco router. Example 8-1 Router LSA OutputRouterB# show ip ospf database router 141.108.1.21 LS age: 1362 Options: (No TOS-capability, DC) LS Type: Router Links Link State ID: 141.108.1.21 Advertising Router: 141.108.1.21 LS Seq Number: 80000085 Checksum: 0xE914 Length: 60 Area Border Router Number of Links: 3 Link connected to: another Router (point-to-point) (Link ID) Neighboring Router ID: 141.108.1.3 (Link Data) Router Interface address: 141.108.1.2 Number of TOS metrics: 0 TOS 0 Metrics: 64 Link connected to: another Router (point-to-point) (Link ID) Neighboring Router ID: 141.108.3.1 (Link Data) Router Interface address: 141.108.1.2 Number of TOS metrics: 0 TOS 0 Metrics: 64 Link connected to: a Stub Network (Link ID) Network/subnet number: 141.108.1.2 (Link Data) Network Mask: 255.255.255.255 Number of TOS metrics: 0 TOS 0 Metrics: 0 The output in Example 8-1 shows three links. A few important things to note in this output (as highlighted) are as follows:
With every point-to-point link, there is a stub link to provide the subnet mask of the link. In this example, two point-to-point links and one stub link are associated with these two point-to-point links because the network type is point-to-multipoint. So, if there are 300 point-to-point links, the router will generate 300 point-to-point links as well as 300 stub links to address the subnet associated with each point-to-point link. The point-to-multipoint network type is a better choice in this case, for two reasons:
If you drew a network topology out of this information, you would actually see a small part of OSPF network, as shown in Figure 8-9. Figure 8-9. Network Topology Drawn from the Information Contained in the Router LSA
Network LSAThe DR generates the network LSA. If no DR exist (for example, in point-to-point or point-to-multipoint networks), there will be no network LSA. The network LSA describes all the routers attached to the network. This LSA is flooded in the area that contains the network, just like the router LSA. Figure 8-10 shows the packet format for the network LSA. Figure 8-10. Network LSA Packet Format
The network LSA has two important components :
Network LSA ExampleExample 8-2 shows the output of a network LSA from a Cisco router. Example 8-2 Network LSA OutputRouterA# show ip ospf database network 141.108.1.1 Routing Bit Set on this LSA LS age: 1169 Options: (No TOS-capability, DC) LS Type: Network Links Link State ID: 141.108.1.1 (address of Designated Router) Advertising Router: 141.108.3.1 LS Seq Number: 80000002 Checksum: 0xC76E Length: 36 Network Mask: /29 Attached Router: 141.108.3.1 Attached Router: 141.108.1.21 Attached Router: 141.108.1.3 The last three lines of output in Example 8-2 show that three routers are attached to this transit link. Also, the network mask on this transit link is /29. There are two important things to remember here:
You can similarly draw a network topology from the information contained in the network LSA showing the number of attached routers and the network mask on the link. Figure 8-11 shows the network topology drawn from the information in the network LSA. Figure 8-11. Network Topology Drawn from the Information Contained in the Router LSA
Summary LSAThe summary LSA describes the destination outside the area, but still within the AS. Summary LSAs are generated when there is more than one area provided and Area 0 is configured. The purpose of the summary LSA is to send the reduced topological information outside the area. Without an area hierarchy, it will be difficult to scale the huge topological information in a single area. This LSA does not carry any topological information; it carries only an IP prefix. This LSA is originated by the ABR, as follows:
NOTE Only intra-area routes are advertised into the backbone to avoid loops . If there are any inter-area routes coming from nonbackbone area it means that the backbone is discontiguous. A discontiguous backbone is not allowed in OSPF networks.
Two types of summary LSAs exist:
Figure 8-12 shows the packet format for the summary LSA. Figure 8-12. Summary LSA Packet Format
The list that follows describes the fields within the summary LSA packet:
Both the Type 3 and Type 4 summary LSAs use the same packet format. The important things to remember about summary LSA Types 3 and 4 are as follows:
There is one special case of summary LSAs ‚ in cases when a stub-area ABR generates a summary default route. In this case, the Link-State ID field as well as the network mask must be 0.0.0.0. Summary LSA ExampleExample 8-3 shows the output of a summary LSA from a Cisco router. Example 8-3 Summary Network LSA OutputRouterB# show ip ospf database summary 9.9.9.0 LS age: 1261 Options: (No TOS-capability, DC) LS Type: Summary Links(Network) Link State ID: 9.9.9.0 (summary Network Number) Advertising Router: 141.108.1.21 LS Seq Number: 80000001 Checksum: 0xC542 Length: 28 Network Mask: /24 TOS: 0 Metric: 10 The Link-State ID field here is the network 9.9.9.0, and the network mask is /24. The Link-State ID field in summary LSAs Type 3 will always contain the network number that the summary LSA is generated for, along with the network mask. The summary LSA here is generated for 9.9.9.0/24, as shown in Figure 8-13. Figure 8-13. Network Diagram Where ABR Router Generates the Summary LSA
Example 8-4 shows summary ASBR LSA output. Example 8-4 Summary ASBR LSA OutputRouterB# show ip ospf database asbr-summary 141.108.1.21 LS age: 1183 Options: (No TOS-capability, No DC) LS Type: Summary Links(AS Boundary Router) Link State ID: 141.108.1.21 (AS Boundary Router address) Advertising Router: 141.108.1.1 LS Seq Number: 80000001 Checksum: 0x57E4 Length: 28 Network Mask: /0 TOS: 0 Metric: 14 The output from Example 8-4 shows that this is summary LSA Type 4. The network mask is 0, and the Link-State ID is the router ID of the ASBR. In case of Type 4, the Link-State ID is always the router ID of the ASBR. The Network Mask field must always be 0 because this is the information about a router (ASBR), not a network. Figure 8-14 shows the net-work diagram based on the output shown in Example 8-4. Figure 8-14. Network Diagram Where ABRs Generates the Type 4 Summary LSA
Example 8-5 shows the default summary ASBR LSA output. Example 8-5 Default Summary LSA Output RouterB# show ip ospf database summary 0.0.0.0 LS age: 6 Options: (No TOS-capability, DC) LS Type: Summary Links(Network) Link State ID: 0.0.0.0 (summary Network Number) Advertising Router: 141.108.1.21 LS Seq Number: 80000001 Checksum: 0xCE5F Length: 28 Network Mask: /0 TOS: 0 Metric: 1 The output in Example 8-5 shows that the Link-State ID and network mask are 0.0.0.0. Because this is the information about a default route, it must have 0.0.0.0 in the Link-State ID, and the network mask must be 0.0.0.0. These two pieces of information then represent the default route as 0.0.0.0/0. This summary default will be present in a stubby area situation, as shown in Figure 8-15. Figure 8-15. Network Diagram Where ABR Generates a Summary Default LSA
External LSAThe external LSA defines routes to destinations external to the autonomous system. Domain-wide, the default route can also be injected as an external route. External LSAs are flooded throughout the OSPF domain, except to stubby areas. To install an external LSA in the routing table, two essential things must take place:
Figure 8-16 shows the packet format for the external LSA. Figure 8-16. External LSA Packet Format
The list that follows describes the fields within the external LSA packet:
The ToS and ToS Metric fields normally are not used by any vendor. External LSA ExampleExample 8-6 shows the output of the external LSA from the Cisco router. Example 8-6 External LSA OutputRouterE# show ip ospf database external 10.10.10.0 LS age: 954 Options: (No TOS-capability, DC) LS Type: AS External Link Link State ID: 10.10.10.0 (External Network Number) Advertising Router: 141.108.1.21 LS Seq Number: 80000003 Checksum: 0x97D8 Length: 36 Network Mask: /24 Metric Type: 2 (Larger than any link state path) TOS: 0 Metric: 20 Forward Address: 0.0.0.0 External Route Tag: 0 The output in Example 8-6 shows an external LSA for network 10.10.10.0/24. This is a Type 2 external LSA. There are a few important things to remember here:
Figure 8-17 shows a network in which a Type 5 LSA is originated by Router E (ASBR). RIP is getting redistributed into Router E, so Router E originates a Type 5 LSA for every RIP subnet. Those Type 5 LSAs are propagated throughout the OSPF domain. Figure 8-17. Network Diagram Where ASBR Originates Type 5 LSAs for a RIP Learned Route
|
‚ < ‚ Free Open Study ‚ > ‚ |