Understanding the Switching Process
Steps involved in layer 2 forwarding are as follows:
- Input
2. Verify frame integrity.
3. Apply inbound VLAN ACL (Virtual Local Area Network
Access List).
4. Look up destination MAC (Media Address Code).
- Output
2. Apply outbound QoS ACL.
3. Select output port.
4. Queue on port.
Steps involved in layer 3 forwarding are as follows:
- Input
2. Verify frame integrity.
3. Apply inbound VLAN ACL.
4. Look up destination MAC.
- Routing
2. Switch if entry cached.
3. Identify exit interface and next-hop address using routing table.
4. Output ACL.
- Output
2. Apply outbound QoS ACL.
3. Select output port.
4. Queue on port.
5. Rewrite source and destination MAC, IP checksum and frame check sequence, and decrement TTL (Time to Live field in the IP header).
6. Forward.
Understanding the Switching Table
Content Addressable Memory (CAM) is used for MAC tables for layer two switching.
- Used for Catalyst 4500 layer 2 forwarding tables
- Used for Catalyst 6500 layer 2 and Netflow forwarding tables
- Contains binary values (0 or 1)
- Match must be exact
In comparison, MLS uses Ternary Content Addressable Memory (TCAM).
- Used for Catalyst 3500/3700, 4500, and 6500 layer 3 switching
- Ternary (3) values (0, 1, or wildcard)
- Entries are in VMR form
—Mask—Masking bits associated with pattern.
—Result—Consequences of a match (permit/deny or more complex information).
Understanding Switch Forwarding Architectures
In a Centralized Forwarding model, the CPU controls forwarding decisions:
- Decision made by single table
- Used by 4500 and 6500
With Distributed Forwarding, the forwarding decisions are spread throughout the interface ASICs:
- Decision made at port or module
- Used by 3500/3700 and 6500 with distributed forwarding card
- NetFlow switching
- Decision made cooperatively by Route Processor and MLS
- First packet switched in software, result cached
- Subsequent packets switched in hardware
Cisco Express Forwarding (CEF) uses a different kind of memory to facilitate forwarding:
- Uses TCAM
- Topology-based switching (via Forwarding Information Base [FIB])
- Can be centralized or distributed
No comments:
Post a Comment