Introduction to Routers and LAN Switches

Similar documents
Sections Describing Standard Software Features

Configuring QoS CHAPTER

Configuring QoS CHAPTER

Sections Describing Standard Software Features

The Network Layer and Routers

COMP211 Chapter 4 Network Layer: The Data Plane

How to Verify Cisco Express Forwarding Switching

Configuring QoS CHAPTER

Configuring QoS. Understanding QoS CHAPTER

IP Protocols. ALTTC/Oct

Lecture 3: Packet Forwarding

Chapter 5 Network Layer

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

CSCE 463/612 Networks and Distributed Processing Spring 2018

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

Cisco IOS Switching Paths Overview

TOC: Switching & Forwarding

Lecture 8. Network Layer (cont d) Network Layer 1-1

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Securizarea Calculatoarelor și a Rețelelor 32. Tehnologia MPLS VPN

Configuring Quality of Service

Understanding How Routing Updates and Layer 2 Control Packets Are Queued on an Interface with a QoS Service Policy

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

MPLS VPN. 5 ian 2010

Network Layer PREPARED BY AHMED ABDEL-RAOUF

GoCertify Advanced Cisco CCIE Lab Scenario # 1

Hands-On Network Security: Practical Tools & Methods

Cisco Cisco Certified Network Associate (CCNA)

A distributed architecture of IP routers

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

Configuring IP Unicast Layer 3 Switching on Supervisor Engine 1

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Chapter 4: Network Layer

Information about Network Security with ACLs

internet technologies and standards

Router Architecture Overview

Lecture 16: Router Design

TOC: Switching & Forwarding

Internetwork Expert s CCNP Bootcamp. Hierarchical Campus Network Design Overview

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Last time. BGP policy. Broadcast / multicast routing. Link virtualization. Spanning trees. Reverse path forwarding, pruning Tunneling

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

Cisco Series Internet Router Architecture: Packet Switching

Implementing Inter-VLAN Routing. 2003, Cisco Systems, Inc. All rights reserved. 2-1

Chapter 4 Network Layer: The Data Plane

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

internet technologies and standards

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Access Control List Enhancements on the Cisco Series Router

ECE4110 Internetwork Programming. Introduction and Overview

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

- Hubs vs. Switches vs. Routers -

Chapter 4 Network Layer

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSE 3214: Computer Network Protocols and Applications Network Layer

Vorlesung Kommunikationsnetze

Routing, Routers, Switching Fabrics

CMSC 332 Computer Networks Network Layer

Ethernet Hub. Campus Network Design. Hubs. Sending and receiving Ethernet frames via a hub

Chapter 4: network layer

Configuring MPLS and EoMPLS

Detecting and Analyzing Network Threats With NetFlow

Routing Overview. Information About Routing CHAPTER

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Question 7: What are Asynchronous links?

HP 5130 EI Switch Series

Overview. Information About Layer 3 Unicast Routing. Send document comments to CHAPTER

Section 1. General Networking Theory

Chapter 7: Routing Dynamically. Routing & Switching

Summary of MAC protocols

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Cisco CCNA (ICND1, ICND2) Bootcamp

Cisco Questions & Answers

Detecting and Analyzing Network Threats With NetFlow

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Switching & ARP Week 3

Cisco ME 3400 Ethernet Access Switch Show Platform Commands

Lecture 16: Network Layer Overview, Internet Protocol

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Medium Access Protocols

Contents. QoS overview 1

Configuring Bridge Domain Interfaces

Chapter 4 Software-Based IP Access Control Lists (ACLs)

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Introducing Campus Networks

Contents. Configuring EVI 1

Network layer: Overview. Network Layer Functions

Networking: Network layer

IPv4 IGP Troubleshooting. IPv4 Routing Workflow. IPv4 routing can be subdivided into three discrete steps

The Network Layer. Antonio Carzaniga. April 22, Faculty of Informatics University of Lugano Antonio Carzaniga

WCCPv2 and WCCP Enhancements

HP 5920 & 5900 Switch Series

Cisco Express Forwarding Overview

Configuring SPAN. Finding Feature Information. About SPAN. SPAN Sources

Chapter 4 Network Layer: The Data Plane

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Lecture 11: Networks & Networking

Transcription:

Introduction to Routers and LAN Switches Session 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 3

Prerequisites OSI Model Networking Fundamentals 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 4

Agenda Routers and LAN Switches Components of an Architecture Summary 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 5

Routers and LAN Switches 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 6

What Are Routers and Switches OSI Model Routers Care about L3 Addresses OSI Model Transport Transport Network (L3) Data Link (L2) Switching/Forwarding Decision Network (L3) Data Link (L2) Physical Physical Switches Care about L2 Addresses 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 7

Routers and Switches: Why Do We Need Them?? Networks need to be connected to other networks 10Mbps Ethernet 100Mbps Ethernet At L2 Same Media <> Media = L2 Switching (Bridging) (No Frame Changes, Speed Mismatches Accommodated) 10Mbps Ethernet 16Mbps Token Ring At L2 Different Media <> Media = L2 Translational Switching (Bridging) (Frame Format Changes, Including Addresses, Flags, etc.) 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 8

Routers and Switches: Why Do We Need Them?? However 10Mbps Ethernet 100Mbps Ethernet L2 Switching (Bridging) 10Mbps Ethernet 16Mbps Token Ring L2 Translational Switching (Bridging) In Both Examples, All Connected Devices Are Part of the Same Broadcast Domains, There Is No Layer 3 Segmentation!! This Becomes a Performance Issue Even in Medium Sized Networks 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 9

Routers and Switches: Why Do We Need Them?? Networks need to be connected to other networks (LANs <> WANs, LANs<>LANs etc.) Networks don t scale well at L2 and need to be segmented at L3 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 10

What Are Routers and Switches Routers and switches both make a decision as to how to handle packets or frames A frame is a L2 encapsulation A packet is a L3 encapsulation 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 11

Ethernet Frame and IP Packet Preamble 6 bytes SFD 1 byte DA 6 bytes SA 6 bytes Length 2 bytes Data/Payload Up to 1500 bytes FCS 4 bytes 32 bits Version Header Length Identifier TOS Total Length Flags Fragment Offset TTL Protocol Header Checksum Source Address Destination Address Options Padding 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 12

What Switches Really Do L2 classification Switching Table construction Other activities 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 13

Switches (Operationally) Maintain/manipulate Switching information Record updates in MAC Table Perform Layer 2 switching Compare Destination Address to Learned MAC Table Check frame for errors Management/billing (statistics) statistics Number of frames sent, error/collision counters, utilization 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 14

Switches (Layer 2 Frame Functionally) Switch frames Layer 2 switching based on Switching information Transmit frames Access outbound memory (buffers) and physical media Flood frames Flood any unknown multicast/broadcast frames out all ports of the switch Drop frames Drop any frames that contain errors 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 15

L2 Classification 2 Look at Destination Address to determine which interface the frame will be switched through. CPU 3 Frame stored in shared buffer if switch is busy processing other frames. Default behavior of a switch is to flood unknown multicast/broadcast frames. L2 Memory L3 L4 Data L2 L3 L4 Data L2 L3 L4 Data 1 L2 provides local link addressing and data integrity validation L2 L3 L4 Data 4 When switch is idle, the frame will be transmitted to the appropriate port based on the Switching Table contents. L2 L3 L4 Data 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 16

Switching Table Construction Frames enter the switch at ingress, and are stored in the shared memory buffer. The Destination MAC Address is mapped to the appropriate port number in the Switching Table. CPU Memory Switching Table MAC Address Port Number 00-10-A4-A6-FC-17 FastEthernet 0/14 00-10-B2-B4-FA-15 GigabitEthernet 0/1 L2 L3 L4 Data L2 L3 L4 Data L2 L3 L4 Data L2 L3 L4 Data 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 17

What Routers Really Do L3 classification Forwarding Table construction Forwarding decision making Other activities 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 18

Routers (Operationally) Maintain/manipulate Forwarding information Listen for updates/update neighbors Classify packets for manipulation/queuing/permit-deny, etc. Compare packets to classification lists and perform control Perform Layer 3 switching Create outbound Layer 2 encapsulation Layer 3 checksum (IPv4 Only) TTL/hop count update Management/billing (statistics) statistics NetFlow export Telnet, SNMP, ping, trace route, HTTP 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 19

Routers (Layer 3 Packet Functionally) (Attempt to) switch packets Layer 3 switching based on Forwarding information (Attempt to) transmit packets Access outbound memory (buffers) and media Manipulate packets Change contents of packet (CAR/NAT/compression/encryption) Consume packets Routing protocol updates etc /services advertisements(sap)/icmp/snmp Generate packets Routing protocol packets/saps/icmp/snmp Tunnels GRE, IPSec, DLSw etc 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 20

L3 Classification 2 Look at L3 header to determine Flow Characteristics: - L3 Protocol (IP, IPX, AT etc..) Check to see if packet is destined for router Check for any options/features (inbound) CPU Memory 3 Decide outbound controls, based on flow characteristics L2 L3 L4 Data L2 L3 L4 Data L2 L3 L4 Data 1 L2 provides local link addressing and data integrity validation 4 L2 provided local link addressing and data integrity validation L2 L3 L4 Data L2 L3 L4 Data 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 21

Forwarding Table Construction Update packets are queued for the CPU And dealt with by a appropriate software routine to build a Forwarding Table. The router also looks at connected networks, state and configured routes to complete the picture CPU Memory Forwarding Table 172.16.2.0/24 via 172.16.1.2 10.1.1.0/24 via 172.16.1.2 Updates are generated by the router and queued for transmission on interfaces configured for the given protocol L2 L3 L4 Update (in) L2 L3 L4 Update (out) L2 L3 L4 Update (in) L2 L3 L4 Update (out) 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 22

Forwarding Table Construction CPU ARP Table 172.16.1.2: 50000603E AAAA03000800 172.16.1.3: 10134567A...ECE030178654 Memory Local ARP queries build ARP table L2 ARP Request L2 ARP Reply Requesting station IP/MAC address used to add to ARP table L2 ARP Reply L2 ARP Request 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 23

L3 Forward to Next Hop Look at L3 header to determine Flow Characteristics: - L3 Protocol (IP, IPX, AT etc..) Check to see if packet is destined for router Check for any options/features (inbound) CPU Memory L2 L3 L4 Data Forwarding Routing Table Table 1.1.0.0/16 via 172.16.2.1 172.16.1.1 10.1.1.0/24 via 172.16.1.1 172.16.1.2 ARP Table 172.16.2.1: 172.16.1.1: 0F000800 172.16.1.1: 172.16.1.3: 10134567A...ECE030178654 L2 L3 L4 Data 0F000800 1.1.1.2 Data L2 is just used for local link addressing and data integrity validation L2 is just used for local link addressing and data integrity validation L2 L3 L4 Data 0F000800 1.1.1.2 Data Destination 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 24

Other Activities Check IP header Checksum (IPv4) Check TTL Check for ability to Fragment Check packet against various feature lists (I/P ACL s, NAT, CAR, RFP etc) CPU Memory Decrement TTL Re-write IP header Checksum (IPv4) Fragment Check packet against various feature lists (O/P ACL s, NAT, Queuing) L2 L3 L4 Data L2 L3 L4 Data L2 L3 L4 Data L2 is just used for local link addressing and data integrity validation L2 is just used for local link addressing and data integrity validation L2 L3 L4 Data L2 L3 L4 Data 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 25

How Do I Find PC 2? PC 1 Network PC 2 Where is PC 2? 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 26

Broadcast? Broadcast Frame PC 1 Layer 2 Layer 3 fffff f 255.255.255.255 Network MAC DA Protocol DA Send Broadcast to Everyone Send Broadcast to Everyone on This Subnet PC 1 Sends a Broadcast to See If PC 2 Is Locally Connected 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 27

Broadcast Propagation L2 Switch Broadcast Switch Sees ffffff As the Destination and Sends This Frame to Everyone PC 1 fffff f 255.255.255.255 Switch sends the broadcast frame out all the ports within the broadcast domain 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 28

Broadcast L2 Example Server Request for PC 2 Request for PC 2 Request for PC 2 Request for PC 2 PC 1 Request for PC 2 PC 2 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 29

Broadcast Propagation L3 Routing PC 1 Broadcast fffff f 1.1.1.255 R1 Sees 1.1.1.255 As the Destination Address, So It Only Sends It Out the That Knows That Network R1 1.1.2.1 1.1.1.1 Router terminates the broadcasts, does not propagate them everywhere 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 30

Broadcast L3 Example Server Request for PC 2 PC 1 PC 2 Request for PC 2 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 31

Components of an Architecture 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 32

Components of an Architecture Switching fabric Memory/buffers Queuing Distributed vs. centralized Forwarding architectures 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 33

Switching Fabric Connection Between the Slots/Ports in a Switch Slot 1 Slot 0 Slot 2 Slot 3 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 34

Shared Memory CPU General Purpose CPU (CISC older or RISC newer) Packet Memory Buffers Queues Pointers Headers Forwarding Tables IOS Image/Files System Buffers Processor Queues CPU Memory Physical Media s (Fixed or Modular) Data/Address/ Control Bus s 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 35

Shared Memory (Distributed Processors/Memory) CPU Memory (DRAM) CPU (C) Forwarding Table Each Line card has Packet Memory, Forwarding Table Memory and a discrete CPU. A Copy of the central forwarding table is propagated from the Central Route Processor to the Line Cards for Local switching of packets Shared Packet Memory (SRAM) I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer Packet Memory (D) FT (D) FT (D) FT (D) FT CPU Packet Memory CPU Packet Memory CPU Packet Memory CPU Card Card Card Card 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 36

Cross Bar Data Path CPU Memory (DRAM) CPU (C) Forwarding Table Multiple conflict free paths Typically higher bandwidth capacity Tx Rx Packet Memory (D) FT CPU Card Signaling and Scheduling more complex Tx Rx Packet Memory (D) FT CPU Card Tx Packet Memory (D) FT CPU Card Rx Packet Memory (D) FT CPU Card ASIC X-Bar Fabric 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 37

Non-Blocking Switching Fabric 10 Gbps Ports 10 Gbps Ports 10 Gbps Ports 60 Gbps Fabric 10 Gbps Ports Speed of Fabric > Ingress + Egress 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 38

Blocking Switching Fabric 10 Gbps Ports 10 Gbps Ports 10 Gbps Ports 10 Gbps Fabric 10 Gbps Ports Speed of Fabric < Ingress + Egress 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 39

Components of an Architecture Switching fabric Memory/buffers Queuing Distributed vs. centralized Forwarding architectures 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 40

Contiguous Buffer Allocation One 64 Byte Frame Uses One 1500 Byte Buffer Wasted Memory One 256 Byte Frame Uses One 1500 Byte Buffer Buffer length fixed in size (often to MTU) Less expensive than particle buffering architectures Inefficient use of buffers 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 41

Particle Buffer Allocation Three 64 Byte Frames Use 192 Bytes of Memory Unused Memory One 256 Byte Frame Uses 256 Bytes of Memory Each buffer fixed in small increments (for example, 64 bytes each) Allows for efficient use of buffers 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 42

Shared Memory CPU CPU Memory Forwarding Table Shared Memory Shared memory divided into Pools of buffers and Buffer Queues. Shared Bus 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 43

Shared Memory CPU CPU Memory Forwarding Table I/P Buffer I/P Buffer I/P Buffer I/P Buffer DMA When packets arrive on interfaces they are DMA d into appropriate buffer without interrupting CPU Incoming Frame 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 44

Shared Memory Registers CPU I/P Buffer I/P Buffer I/P Buffer I/P Buffer CPU Memory Forwarding Table CPU reads packet header information into registers and compares with forwarding table 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 45

Shared Memory Registers CPU I/P Buffer I/P Buffer I/P Buffer 0/P Buffer CPU Memory Forwarding Table CPU derives next hop MAC address and loads a new header into register. New header over-writes existing header.. Buffer ownership transferred to output interface Outgoing Frame 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 46

Components of an Architecture Switching fabric Memory/buffers Queuing Distributed vs. centralized Forwarding architectures 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 47

Input Queuing Input Port Output Port Data in Buffer Switching Fabric Packets buffered at the inbound port Can result in head of line blocking if you have a single input queue per port Can reduce throughput 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 48

Output Queuing Input Port Output Port Data in Switching Fabric Buffers at the output port Buffer Allows for individual prioritization of traffic flows 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 49

Output Queuing/Shared Buffer Data in Data Out to Port 1 Data Out to Port 3 Data Out to Port 9 Data Out to Port 2 Central pool of buffers shared between all ports Maximum throughput with fewest buffers No head of line blocking with intelligent congestion management 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 50

Multiple Queues Per Port Critical Data, High Priority Data in Non-Critical Data, Low Priority Can be implemented in either output queuing or shared memory models Scheduling and/or congestion avoidance algorithm required Note: Number of queues affect overall number of buffers per queue 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 51

How Does Traffic Run in a Real Network? 100Mbps Port 100Mbps Port WAN Port 6 Gbps Fabric 100Mbps Port 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 52

Head of Line Blocking (HOL) Blocked (grrrrr!!) 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 53

Single Input FIFO Queue CPU Single Ingress FIFO Queue X- Bar (Same problem exists with Shared Memory Routers) C C C B A B Delayed/ Dropped Congested C 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 54

Lane Control B You can only ever sit in a lane that is designated for the corresponding lane you are trying to exist the junction from A D C A B C B A C D D A B C D 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 55

All Destinations Have a Lane B A D C A B C B A C D D A B C No congested interface (Outbound) Can affect another D 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 56

Virtual Output Queuing CPU C C C B A FIFO FIFO B Congested C 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 57

Virtual Output Queue CPU C C C A FIFO FIFO Queue Scheduler B B Congested C 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 58

Components of an Architecture Switching fabric Memory/buffers Queuing Centralized vs. Distributed Forwarding architectures 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 59

Centralized Switching Central CPU/Switch ASIC Central forwarding table utilized Provides centralized control for switching and learning Lookup can be done in ASICs for faster processing Can perform a Layer 2 or Layer 3 lookup Si Forwarding Table 172.20.45.0 2/3 Switching Fabric 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 60

Distributed Switching CPU Memory (DRAM) CPU (C) Forwarding Table Each Line card has Packet Memory, Forwarding Table Memory and a discrete CPU. A Copy of the central forwarding table is propagated from the Central Route Processor to the Line Cards for Local switching of packets Shared Packet Memory (SRAM) I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer I/O Buffer Packet Memory (D) FT (D) FT (D) FT (D) FT CPU Packet Memory CPU Packet Memory CPU Packet Memory CPU Card Card Card Card 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 61

Components of an Architecture Switching fabric Memory/buffers Queuing Distributed vs. centralized Forwarding architectures 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 62

Serial vs. Hashed Lookup Sequentially look up entries in table Simplistic implementation Hash values together to obtain a value in memory Benefit: Faster lookup in larger tables VLSM causes more overhead and maintenance 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 63

Demand Generated Cache Based Switching CPU Memory CPU Forwarding Table 1.1.0.0/16 via 172.16.2.1 10.1.1.0/24 via 172.16.1.1 ARP Table 172.16.1.1: 0F000800 172.16.2.1: 10134567A...ECE030178654 Fast Cache Prefix/Length Age Next Hop 1.1.0.0/16 00:00:15 Ethernet0 172.16.2.1 14 00000C7EF7CF00E0B06423F60800 10.1.1.0/24 00:00:15 Serial1 172.16.1.1 4 0F000800 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 64

Topology-Based Switching OSPF, IGRP EIGRP, RIP, BGP, IS-IS Routing Protocols Inject Routes into the Routing Table Route Processor Forwarding Table 172.20 Fast Ethernet 3/1 10.1.2 Gigabit Ethernet 1/1 96.23. VLAN 100 Forwarding Information Base DA Adjacency 10.1.2 A0-B8-FE FF 2/0 Forwarding Information Base (FIB) Cisco Express Forwarding (CEF) Switching Fabric Distributed FIB Distributed FIB 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 65

Topology-Based Switching FIB calculated based on routing table entries, not traffic flows FIB can be kept central or distributed Longest match lookup on prefix/mask More scalable for large enterprises and service providers Route Processor Forwarding Information Base Forwarding Table 172.20 Fast Ethernet 3/1 10.1.2 Gigabit Ethernet 1/1 96.23. VLAN 100 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 66 DA 10.1.2 Adjacency A0-B8-FE FF 2/0 Switching Fabric Distributed FIB Distributed FIB

Topology-Based Switching Packet enters switch No process switching necessary Decision made locally or centrally irregardless of switching fabric Route Processor Forwarding Information Base DA 10.1.2 Routing Table Adjacency A0-B8-FE FF 2/0 Switching Fabric Distributed FIB 172.20 Fast Ethernet 3/1 10.1.2 Gigabit Ethernet 1/1 96.23. VLAN 100 Distributed FIB 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 67

Summary 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 68

Summary LAN switches and routers use the same architectural features LAN switches give scalability at L2 Routers give scalability at L3 Deployment of LAN switches and routers in a hierarchical network model offers scalability, reliability and mobility 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 69

Network Implementation MDF Call Manager Centralized Server Farm WAN Aggregation Si Cache Engine (Optional) Building A Local Workgroup Servers Routed Uplinks to Core Building B Local Workgroup Servers Si Si Workstations Workstations 3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 70

3048_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 74