route summarization (route summarization)

route summarization (route summarization)

 There are two methods of assigning IP addresses: classful addressing and classless addressing. Classless addressing is now mainstream.

Subnet masks allow you to divide your network into subnets and perform route summarization.

*When performing route aggregation, it is necessary to use a static route or a routing protocol that supports classless routing.

 I explained that subnetting makes the network more efficient and easier to operate because it allows you to properly size and operate the network.

 However, there is also a drawback that the number of entries in the routing table handled by the router increases as the number of subnets increases. Considering the vast network of the Internet, it is easy to imagine that the number of entries that routers must handle will be enormous.

 As the number of network entries increases, the load on routers also increases. In some cases, routing may not be processed in time.

*A routing table is a table that a router refers to when forwarding received packets. The correspondence between the destination network and the forwarding source interface or the IP address of the neighboring router's interface is described.

See network configuration below.

The network "" connected to Router B is divided into subnets "" and "".

 What if Router B reports routes "" and "" to Router A without summarizing routes? It's going to be. If this were done at the Internet level, the size of the router's routing table would be enormous.

What if Router B reports a route with "" to its superior router, Router A?

 Router A's routing table size is reduced. If this were done at the Internet level, the size of the router's routing table would be considerably smaller.

 As for the routing of "", "", Router B only needs to do it. Other routers don't need to know the routes "" and "".

 In this way, for a divided network, the number of entries in the routing table handled by the router can be reduced by entrusting it to the nearest router.

Discontinuous subnet problem

 He explained that route aggregation reduces the amount of route information handled by routers, reduces the size of routing tables, and enables efficient routing.

But look at the network configuration in the diagram below.

Router B is reporting subnet "" to Router A with "".
Router C is reporting subnet "" to Router A on "".

 As a result, when router A receives a packet destined for the "" network, it does not know whether to forward it to router B or router C.

Why did it stop working?

The reason why routing stopped working is that Router B and Router C reported route information for "".

 This means that the same network address exists multiple times. It violates the one IP address principle. As a result, Router A could no longer decide which way to send the packet.

When subdividing in this way, routing can get messy.

 If you use a routing protocol to do the routing, it may work fine in networks with subnets, but the routing protocol itself may automatically summarize routes and report incorrect routes.

 In that case, turn off the automatic summarization function in the routing protocol settings or manually set the route to be reported to avoid this problem.