Previous page Next page

Routing with Layer 2 and Layer 3 Modules

When a switch contains a combination of layer 2 and layer 3 modules, IP and IPX routing is performed by the layer 3 media modules or the supervisor module using special ASICs present on those modules. These ASICs contain an address cache (forwarding table) that can contain a maximum of 20,000 cache entries. The address cache entries consist of packet addressing information and next hop information that enable the switch to effectively route the packets to their destination.

The supervisor module also maintains a master routing table that is kept in the its memory. The master routing table can contain up to 28,000 entries. This routing table enables the supervisor module to keep track of which entries are in each address cache. As a result, each time a change occurs in the master routing table, the supervisor module updates the appropriate address caches. For example, if a unicast route is removed from the master routing table, all matching entries in address caches are also removed.

Consequently, when you connect a switch to the network, it begins to receive frames from the network and builds a master routing table (supervisor module) and forwarding tables (address caches of media modules) based on those frames.

This process creates three distinct results:

Figure�3 shows how traffic is routed in a switch.

Figure�3:�Layer 2 and Layer 3 Routing in a Switch



Previous page Next page