Ccnp Lab Flashcards
Packet switching,Fast switching, CEF
Packet Switching: High CPU usage, as each packet requires a route lookup in the main routing table, increasing CPU load, especially in large networks.
Fast Forwarding: Moderate CPU usage, as the route cache reduces the need for repeated lookups, but still requires CPU for managing the cache and occasional lookups.
CEF (Cisco Express Forwarding): Minimal CPU usage, as forwarding is handled by hardware (using the FIB and Adjacency Table), greatly reducing CPU demand and enabling faster throughput.
Commands to use Process switching, fast switching and CEF:
Sh adjacency summary
Debug ip packet
Sh ip cache– Display fast switching table
Debug ip cef receive –Enable debugging for CEF receive packets
Ip multicast-routing Enable Multicasting on Router
Sh ip int interface-id Interface info include packet switching mode
Sh ip cef -Displays the contents of routers FIB
Sh adjacency-Display the adjacency table
Enable Cef
Ip cef- Globally enable CEF
Enables CEF on an interface
Int f0/0
Ip route-cache cef
Enable Fast switching on an interface
Int f0/0
Ip route-cache
Enable Process Switching on an interface(disable fast switching)
Int f0/0
no ip route-cache
u all - cancel debug
CAM table, TCAM
- CISCO Switches default aging time is 300 seconds or five mints, we can be modifying.
The CAM table, or content addressable memory table, is present in all switches for layer 2
switching. - TCAM (ternary content-addressable memory) is a specialized type of high-speed memory that
searches its entire contents in a single clock cycle.
CEF
- CEF Stand for CISCO Express forwarding.
- CEF is built around two main components Forwarding Information Base and AdjacencyTable.
- CEF put all this information into single Hardware table which allows very fast packet forwarding.
- CEF is a feature that allows a router to very quickly and efficiently make a router lookup.
- CEF is enabled by default in Cisco Multilayer switch and Routers.
- CEF also called Topology based switching
- CEF have two table FIB (Forwarding Information Base) and Adjacency Table.
CEF –FIB
FIB stand for Forwarding Information Base.
* FIB maintains layer 3 forwarding information.
* FIB maintains mirror image of forwarding information contained in the IP routing table.
* FIB maintains next-hop address information based on information in the IP routing table.
* FIB table contains destination reachability information as well as the next hop information.
* FIB contains interface identifier and next hops info for each reachable destination network.
* FIB contains necessary information from the routing table.
CEF -Adjancy Table
Adjacency Table:
* (AIB) table
* The Adjacency table maintains layer 2 information for next hops listed in the FIB table.
* To avoid need for an Address Resolution Protocol request for each table lookup.
* The Adjacency table is tasked with maintaining the layer 2 next-hop information for the FIB.
* The Adjacency table maintains switching information linked to a particular FIB entry.
RIB
The Routing Information Base (RIB) stores all IP routing information.
It is also known as the routing table.
The RIB is built from dynamic/static routing protocols or directly connected routes.
It acts as a repository for routes from all routing protocols.
The RIB is part of the control plane, where the routing table is constructed.
sh ip route
sh ip cef
Fast Switching
Fast Switching enhances process switching using a cache.
The first packet to a destination is process-switched.
Subsequent packets are forwarded using the cached information.
The CPU examines the first packet and stores the decision in the cache.
For subsequent packets to the same destination, the cache provides the next hop info.
This avoids repeated lookups and CPU involvement for the same destination.
New destinations are processed by the CPU and stored in the cache for future use
DTP Configuration:
- Switchport mode dynamic auto
- Switchport mode dynamic desirable
- Switchport no negotiate
In newer switches default we have auto.
DTP mode
Desirable-Desirable-OK
Desirable-Auto-ok
Trunk-Desirable-ok
Auto-Trunk-ok
Auto- Auto- NO
DTP config
Sh int f0/1 switchport
Int f0/1
Switchport mode dynamic auto /desirable
DTP - turn off
S1(config)#interface g0/0
S1(config-if)#switchport nonegotiate
STP
Spanning Tree Protocols use BPDU (bridge protocol data unit) in every 2 second for preventing layer2 loops.
Switch with lowest Bridge Priority (Switch Priority) Value will become the Root Switch.
STP root bridge
Switch with lowest Bridge Priority (Switch Priority) Value will become the Root Switch.
Bridge ID: Combination of priority and switch MAC address.
Default priority: 32769 (32768 + 1).
If priorities are equal, MAC address determines the lowest Bridge ID.
Switches exchange BPDU (Bridge Protocol Data Units) every 2 seconds.