Packet Forwarding
on this page
L3 ForwardingForwarding ArchitecturesProcess SwitchingDefault ValuesCommandsKnown IssuesKey Topics in the BookL3 Forwarding
There are two main methods for layer 3 forwarding:
- Forwarding to devices in the same subnet
- Forwarding to devices on a different subnet
Packet Routing
The device checks it’s local routing table to identify it’s nexthop, which can be learned in a few ways:
- Stating routing entry
- Default gateway entry, essentially a static route
- Routing Protocol like OSPV or similar
Forwarding Architectures
When a rote processor is equipped with a forwarding engine so that it can make all the packet switching decisions, this is known as centralised forwarding architecture. If line cards are equipped with forwarding engines without intervention of the route processor this is known as distributed forwarding architecture
Process Switching
Process Switching, also referred to as Software Switching or slow path, is a switching mechanism in which the CPU on a router is in charge of packet switching
The following type of packets are process switched:
- Packets sources or destined to the router
- Packets that are too complex for hardware to hande, Example: IP packets with IP options
- Packets that require extra information that is not currently know Example ARP
Packets that can’t be CEF switched are called punted
Ternary Content Addressable Memory (TCAM)
TCAM provides more flexibility in searching than a CAM, which is solely in binary.
A TCAM search provides three results:
- 0 for true
- 1 for false
- X for do not care, which is a ternary combination
SDM Templates
When a section of a hardware resource is full, all processing overflow is sent to the CPU, which can heavily impact the performance for the switch/router.
Those allocation rations can be modified with Switching Database Manager (SDM) templates
Default Values
Commands
Modify the SDM template
sdm prefer {vlan | advanced}
Known Issues
Key Topics in the Book
| Element | Description | E-Book Page |
| Paragraph | Collision domain | 5 |
| Paragraph | Virtual LANs (VLANs) | 7 |
| Section | Access ports | 11 |
| Section | Trunk ports | 12 |
| Paragraph | Content addressable memory | 16 |
| Paragraph | Address resolution protocol (ARP) | 19 |
| Paragraph | IP address assignment | 21 |
| Section | Process switching | 25 |
| Section | Cisco Express Forwarding (CEF) | 26 |
| Section | Ternary content addressable memory | 26 |
| Section | Software CEF | 28 |
| Section | SDM templates | 30 |