Route summarization results in routing designs that are more scalable, regardless of the routing protocol used (e.g., RIPv2, EIGRP, or OSPF), as it places network addresses into usable blocks, which can be used for multiple purposes; for example:
- NAT blocks
- Blocks used in redistribution
- Blocks for management VLANs
- Blocks for content services
Route summarization can be used in medium-sized to large networks for faster convergence and to better support sensitive traffic and services, such as VoIP and storage. Convergence time is measured based on the time the SPF recalculations take place in OSPF or the diffusing algorithm runs in EIGRP. An example of route summarization is aggregating a number of Access Layer addresses (172.30.16.0/24 through 172.30.23.0/24) into a single prefix (172.30.16.0/21).
Default Routing
A special form of route summarization can be implemented in the form of default routing. Every modern network usually uses some type of default routing. A best practice is to dynamically advertise the default route 0.0.0.0/0 in an organization from the edge routers, as they connect to the ISPs, as opposed to performing a static route configuration on every router in the organization. This way, all of the external traffic can be routed to the ISP.
When configuring a static default route on every router in the organization to the ISP router, the next hop is the ISP-connected router instead of the directly connected peer router. This could be a problem as it can cause black holes in the network if the path to the ISP router is not available. In addition, this creates a great deal of configuration overhead, as every router must be reconfigured as the exit point changes or another ISP connection is added for redundancy or high availability. Since this implies using manual configuration, this process will involve much more overhead.
A more efficient scenario would be to configure a static route on the organization’s edge devices, and then redistribute that route into the dynamic routing protocol. The egress traffic will leverage whatever metric the routing protocol uses and will find the best path to the ISP.
With any interior routing protocol (except for EIGRP), the “default-information originate” command can be used to generate a default route. However, with EIGRP, the “ip default-network <prefix>” command must be used to configure the last-resort gateway or the default route. This network must be in the route, either as a static route or as an IGRP route, before the EIGRP router will announce the network as a candidate default route to other EIGRP routers.
With a site-to-site VPN connection, it might be a good idea to advertise the corporate summary route or a default route to the company’s headquarters. For example, if the goal is to advertise the 10.0.0.0/8 route to remote sites using Easy VPN Server and Easy VPN Remote, Reverse Route Injection (RRI) can be used to make that possible.
Default Routes and OSPF Stub Areas
OSPF can define different types of stub areas. This method allows for automatic route filtering between areas on the Area Border Routers (ABRs). OSPF supports the following area types:
- Normal area
- Stub area
- Totally stubby area
- Not so stubby area (NSSA)
- Totally not so stubby area (totally NSSA)
Whatever information is filtered or suppressed will be replaced by a default route (0.0.0.0/0). OSPF filters routes between areas only on ABRs; it does not filter prefixes within a single area (intra-area).
Figure 5.5 – Default Route in a Hub-and-Spoke Scenario
In Figure 5.5 above, R1 is the hub (headquarters) in the hub-and-spoke topology and the default route to R1 is advertised to the spokes (branches). The branches are defined as stub areas and they cover different networks: 192.168.2.0/24, 192.168.3.0/24, and 192.168.4.0/24. When the spoke routers (R2, R3, or R4) need to communicate with another spoke router, they send traffic to the hub because of the default route and the default route forwards it to the specific spoke. This way, spokes do not have knowledge of the entire network topology and they learn to send all external traffic to the hub router. Something similar can be achieved with EIGRP by originating the default route to a remote location and filtering other prefixes to the stub routers.
Route Filtering
Route filtering allows the control of network traffic flow and it prevents unwanted transit traffic, especially in situations that feature redundancy or multiple paths. Route filtering protects against erroneous routing updates and there are several techniques that can be used in this regard. For example, if OSPF Core Layer connectivity is lost, traffic should not be rerouted through a remote site.
OSPF inter-area transit traffic is achieved only by transiting Area 0 or by creating a virtual link as a temporary workaround for possible design issues that prevent having a continuous backbone area. With EIGRP, stub routers can be configured or routes other than the default route can be filtered. With BGP, route filtering can be used to stop a router from becoming a transit between two ISPs to prevent a large amount of traffic from going through the network.
“Defensive filtering,” in which route filtering protects against illegal or unwanted routing traffic, can also be implemented. It is very common for organizations to have extranets, partner networks, or connections to other business or strategic partners. Defensive filtering offers protection in situations where unauthorized routing information is received from an external partner network (e.g., the network is advertising back to the campus prefix).
Without defensive route filtering, erroneous partner advertisements can cause many problems. For example, a strategic partner might have a static route to the Microsoft SharePoint server farm because they are using those services on port 80. If these routes start leaking into the EIGRP or OSPF routing process, then part of the original network might think the SharePoint server farm has actually been moved to an area behind the partner router. Defensive filtering will help prevent this type of scenario, as it prevents leakage and network disruption and enhances security. Defensive filtering is also known as route hiding or route starvation and it can be accomplished using a variety of techniques, for example, with route filters and prefix-lists.
Route redistribution is a very effective route manipulation and management tool, and some of the most important reasons for redistributing routes include the following:
- It is an excellent way to control, manipulate, and manage the routing updates.
- It is an essential mechanism when deploying two or more routing protocols.
- It is a beneficial tool after a merger/acquisition has been achieved.
Route redistribution should be carefully implemented because it can cause suboptimal routing and create black holes in the network. Cisco recommends having distinct regions of routing protocols and to carefully redistribute routing information, as opposed to following an ad-hoc approach to implementing routing protocols.
In addition, if there is more than one link between two network regions using different routing protocols (e.g., EIGRP and OSPF), mutual redistribution might be a consideration, with the redistribution of OSPF into EIGRP and EIGRP into OSPF. When implementing mutual redistribution, it is important to prevent the re-advertisement of information back into the routing area from which it originally came.
Figure 5.6 – EIGRP to/from OSPF Route Redistribution
Analyzing Figure 5.6 above, filters are used to prevent the OSPF information that was redistributed into EIGRP information from being re-advertised back into the OSPF part of the organization. This is often referred to as “manual split horizon.” If filtering is not used and there is an outage, routing loops or a strange convergence behavior can appear and this leads to instability in the network design. Both OSPF and EIGRP support route tagging, which facilitates this process. Route maps can be used to add numeric tag-specific prefixes. The tag information is passed along in routing updates and other routers can filter routes that match or do not match specific tags. This can be accomplished using route maps in distribution lists.
| Note: The tag values of 110 and 90 used in Figure 5.6 above reflect the ADs of OSPF and EIGRP. While this is not mandatory, it is a recommended best practice when carrying out complex redistribution because this technique helps to easily identify the original protocol that generated each route. |

