Top Banner
70

Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

Feb 01, 2018

Download

Documents

buidien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15
Page 2: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

3RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.

Introduction to Routers and LAN Switches

Session RST-101

Page 3: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 444

Prerequisites

• OSI Model

• Networking Fundamentals

Page 4: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 555

Agenda

• Routers and LAN Switches

• Components of an Architecture

• Summary

Page 5: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

6RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.

Routers and LAN Switches

Page 6: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 777

What Are Routers and Switches

OSI Model

Physical

Data Link (L2)

Network (L3)

Transport

OSI Model

Physical

Data Link (L2)

Network (L3)

Transport

Routers Care about L3 Addresses

Switches Care about L2 Addresses

Switching/ForwardingDecision

Switching/ForwardingDecision

Page 7: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 888

Routers and Switches:Why Do We Need Them??

• Networks need to be connected to other networks

At L2 Same Media <> Media = L2 Switching (Bridging)(No Frame Changes, Speed Mismatches Accommodated)

10Mbps Ethernet 100Mbps Ethernet

10Mbps Ethernet 16Mbps Token Ring

At L2 Different Media <> Media = L2 Translational Switching (Bridging)(Frame Format Changes, Including Addresses, Flags, etc.)

Page 8: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 999

Routers and Switches: Why Do We Need Them??

• However…

L2 Switching (Bridging)

10Mbps Ethernet 100Mbps Ethernet

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

Page 9: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 101010

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

Page 10: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 111111

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

Page 11: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 121212

Ethernet Frame and IP Packet

DA6 bytes

DA6 bytes

SA6 bytes

SA6 bytes

Preamble6 bytes

Preamble6 bytes

SFD1 byte

SFD1 byte

Length2 bytesLength2 bytes

Data/PayloadUp to 1500 bytesData/PayloadUp to 1500 bytes

FCS4 bytes

FCS4 bytes

VersionVersion Header LengthHeader Length TOSTOS Total LengthTotal Length

IdentifierIdentifier FlagsFlags Fragment OffsetFragment Offset

TTLTTL ProtocolProtocol Header ChecksumHeader Checksum

Source AddressSource Address

Destination AddressDestination Address

OptionsOptions PaddingPadding

32 bits32 bits

Page 12: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 131313

What Switches Really Do

• L2 classification

• Switching Table construction

• Other activities

Page 13: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 141414

Switches (Operationally)

• Maintain/manipulate Switching informationRecord updates in MAC Table

• Perform Layer 2 switchingCompare Destination Address to “Learned” MAC Table

Check frame for errors

• Management/billing (statistics)Interface statistics—Number of frames sent, error/collision counters, utilization

Page 14: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 151515

Switches (Layer 2 Frame Functionally)

• Switch framesLayer 2 switching based on “Switching” information

• Transmit framesAccess outbound memory (buffers) and physical media

• Flood framesFlood any unknown multicast/broadcast frames out all ports of the switch

• Drop framesDrop any frames that contain errors

Page 15: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 161616

L2 L3 L4 Data

L2 L3 L4 Data

MemoryMemory

CPU

L2 L3 L4 Data

Look at Destination Address to determine which interface the frame will be switched through.

Default behavior of a switch is to flood unknown multicast/broadcast frames.

L2 provides local link addressing and data integrity validation

Frame stored in shared buffer if switch is busy processing other frames.

When switch is idle, the frame will be transmitted to the appropriate port based on the Switching Tablecontents.

L2 L3 L4 Data

1

2

3

4

L3 L4L2 Data

L2 Classification

Page 16: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 171717

L2 L3 L4 Data

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.

L2 L3 L4 Data

Switching Table

MAC Address Port Number

00-10-A4-A6-FC-17 FastEthernet 0/14

00-10-B2-B4-FA-15 GigabitEthernet 0/1MemoryMemory

CPU

Switching Table Construction

L2 L3 L4 Data

L2 L3 L4 Data

Page 17: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 181818

What Routers Really Do

• L3 classification

• Forwarding Table construction

• Forwarding decision making

• Other activities

Page 18: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 191919

Routers (Operationally)

• Maintain/manipulate Forwarding informationListen for updates/update neighbors

• Classify packets for manipulation/queuing/permit-deny, etc.Compare packets to classification lists and perform control

• Perform Layer 3 switchingCreate outbound Layer 2 encapsulation

Layer 3 checksum (IPv4 Only)

TTL/hop count update

• Management/billing (statistics)Interface statistics—NetFlow export

Telnet, SNMP, ping, trace route, HTTP

Page 19: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 202020

Routers (Layer 3 Packet Functionally)

• (Attempt to) switch packetsLayer 3 switching based on “Forwarding” information

• (Attempt to) transmit packetsAccess outbound memory (buffers) and media

• Manipulate packetsChange contents of packet (CAR/NAT/compression/encryption)

• Consume packetsRouting protocol updates etc…/services advertisements(SAP)/ICMP/SNMP

• Generate packetsRouting protocol packets/SAPs/ICMP/SNMP

Tunnels—GRE, IPSec, DLSw etc…

Page 20: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 212121

L2 L3 L4 Data

L2 L3 L4 Data

MemoryMemory

CPU

L2 L3 L4 Data

Look at L3 header to determineFlow Characteristics: -L3 Protocol (IP, IPX, AT etc..)Check to see if packet is destined for routerCheck for any options/features (inbound)

L2 provides local link addressing and data integrity validation

Decide outbound controls, based on flow characteristics

L2 provided local link addressing and data integrity validation

L2 L3 L4 Data

1

2

3

4

L3 L4L2 Data

L3 Classification

Page 21: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 222222

L2 L3 L4 Update (in)

Update packets are queued for the CPUAnd dealt with by a appropriate software routine to build a Forwarding Table.

The router also looks at connected networks, Interface state and configured routes to complete the picture

L2 L3 L4 Update (in)

Forwarding Table

172.16.2.0/24 via 172.16.1.2

10.1.1.0/24 via 172.16.1.2

MemoryMemory

CPU

Forwarding Table Construction

Updates are generated by the router and queued for transmission on interfaces configured for the given protocol

L2 L3 L4 Update (out)Update (out)

L2 L3 L4 Update (out)Update (out)

Page 22: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 232323

L2 ARP Request

Local ARP queries build ARP table

ARP Table

172.16.1.2: 50000603E…AAAA03000800

172.16.1.3: 10134567A...ECE030178654

L2 ARP Reply L2 ARP Request

L2 ARP ReplyRequesting station IP/MAC address used to add to ARP table

MemoryMemory

CPU

Forwarding Table Construction

Page 23: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 242424

MemoryMemory

CPU

L2 L3 L4 Data

L2 L3 L4 Data

Look at L3 header to determineFlow Characteristics: -L3 Protocol (IP, IPX, AT etc..)Check to see if packet is destined for routerCheck for any options/features (inbound)

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

Routing Table

1.1.0.0/16 via 172.16.1.1

10.1.1.0/24 via 172.16.1.2

ARP Table

172.16.1.1: 0F000800

172.16.1.3: 10134567A...ECE030178654

0F000800 1.1.1.2 Data

Destination

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.2.1: 0F000800

172.16.1.1: 10134567A...ECE030178654

L3 Forward to Next Hop

0F000800 1.1.1.2 Data

Page 24: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 252525

MemoryMemory

L2 L3 L4 Data L2 L3 L4 Data

L2 L3 L4 Data

Check IP header Checksum (IPv4)Check TTLCheck for ability to FragmentCheck packet against various feature lists(I/P ACL’s, NAT, CAR, RFP etc)

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

Decrement TTLRe-write IP header Checksum (IPv4)FragmentCheck packet against various feature lists(O/P ACL’s, NAT, Queuing)

L2 L3 L4 Data

CPU

Other Activities

Page 25: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 262626

How Do I Find PC 2?

“Where is PC 2?”“Where is PC 2?”

PC 2PC 1 Network

Page 26: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 272727

Broadcast?

fffff…ffffff…f 255.255.255.255255.255.255.255

MAC DA Protocol DA

Layer 2 Layer 3

Broadcast Frame

Network

Send Broadcast to Everyone

Send Broadcast to Everyone on

This Subnet

PC 1 Sends a Broadcast to See If PC 2 Is Locally ConnectedPC 1 Sends a Broadcast to See If PC 2 Is Locally Connected

PC 1

Page 27: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 282828

Broadcast Propagation—L2 Switch

• Switch sends the broadcast frame out all the ports within the broadcast domain

fffff…ffffff…f 255.255.255.255255.255.255.255

Broadcast

Switch Sees ffffff As the Destination and Sends This Frame

to Everyone

Switch Sees ffffff As the Destination and Sends This Frame

to Everyone

PC 1

Page 28: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 292929

Broadcast L2 Example

Server

Request for PC 2

Request for PC 2

Request for PC 2

Request for PC 2

Request for PC 2PC 1 PC 2

Page 29: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 303030

Broadcast Propagation—L3 Routing

• Router terminates the broadcasts,does not propagate them everywhere

fffff…ffffff…f 1.1.1.2551.1.1.255

Broadcast

1.1.2.1 1.1.1.1

R1 Sees 1.1.1.255 As the Destination Address, So It Only Sends It Out the Interface That Knows

That Network

R1 Sees 1.1.1.255 As the Destination Address, So It Only Sends It Out the Interface That Knows

That Network

PC 1

R1

Page 30: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 313131

Broadcast L3 Example

Server

PC 1 PC 2Request for PC 2

Request for PC 2

Page 31: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

32RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.

Components of an Architecture

Page 32: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 333333

Components of an Architecture

• Switching fabric

• Memory/buffers

• Queuing

• Distributed vs. centralized

• Forwarding architectures

Page 33: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 343434

Switching Fabric

Slot 0

Slot 3

Slot 2

Slot 1

Connection Between the Slots/Ports in a Switch

Page 34: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 353535

CPU Memory

Data/Address/Control Bus’s

Shared MemoryShared Memory

Packet Memory

BuffersQueuesPointersHeaders

IOS Image/Files

System Buffers

Forwarding Tables

Processor Queues

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

CPU

General Purpose CPU (CISC older or RISC newer)

Physical Media Interfaces

(Fixed or Modular)

Page 35: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 363636

Sh

ared

Pac

ket

Mem

ory

(SR

AM

)

Sh

ared

Pac

ket

Mem

ory

(SR

AM

)

Shared Memory (Distributed Processors/Memory)Shared Memory (Distributed Processors/Memory)Shared Memory (Distributed Processors/Memory)

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

CPU Memory(DRAM)

CPU Memory(DRAM)

(C) ForwardingTable

I/O Buffer

I/O Buffer

I/O BufferI/O Buffer

CPU

InterfaceCard

(D) FT

CPU

InterfaceCard(D) FT

CPU

InterfaceCard(D) FT

Packet MemoryI/O Buffer

I/O Buffer

I/O BufferI/O Buffer

Packet Memory

Packet Memory

CPU

InterfaceCard(D) FT

Packet Memory

CPU

Page 36: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 373737

Cross Bar Data PathCross Bar Data PathCross Bar Data Path

TxTx

RxRx

Tx

Rx

Tx

Rx

CPU Memory(DRAM)

CPU Memory(DRAM)

(C) ForwardingTable

CPU

CPU

InterfaceCard(D) FT

Packet Memory

CPU

InterfaceCard(D) FT

Packet Memory

CPU

InterfaceCard(D) FT

Packet Memory

CPU

InterfaceCard(D) FT

Packet Memory

ASIC X-Bar Fabric

• Multiple conflict free paths

• Typically higher bandwidth capacity

• Signaling and Scheduling more complex

Page 37: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 383838

Non-Blocking Switching Fabric

10 Gbps Ports

10 Gbps Ports

10 Gbps Ports

10 Gbps Ports

60 Gbps Fabric

Speed of Fabric > Ingress + Egress

Page 38: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 393939

Blocking Switching Fabric

10 Gbps Ports

10 Gbps Ports

10 Gbps Ports

10 Gbps Ports

10 Gbps Fabric

Speed of Fabric < Ingress + Egress

Page 39: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 404040

Components of an Architecture

• Switching fabric

• Memory/buffers

• Queuing

• Distributed vs. centralized

• Forwarding architectures

Page 40: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 414141

Contiguous Buffer Allocation

• Buffer length fixed in size (often to MTU)

• Less expensive than particle buffering architectures

• Inefficient use of buffers

One 64–Byte Frame Uses One

1500–Byte Buffer

One 256–Byte Frame Uses One

1500–Byte Buffer

Wasted Memory

Page 41: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 424242

Particle Buffer Allocation

• Each buffer fixed in small increments(for example, 64 bytes each)

• Allows for efficient use of buffers

Three 64–Byte Frames Use 192

Bytes of Memory

One 256–Byte Frame Uses 256 Bytes of Memory

Unused Memory

Page 42: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 434343

Shared Memory

CPU MemoryCPU Memory

Shared MemoryShared Memory

Shared Bus

Shared memory divided into ‘Pools” of buffers and Buffer

Queues.

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Forwarding TableForwarding Table

CPU

Page 43: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 444444

Shared Memory

CPU MemoryCPU Memory

When packets arrive on interfaces they are DMA’d into appropriate buffer without interrupting CPU

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

I/P Buffer

DMA

Forwarding TableForwarding Table

Incoming Frame

CPU

I/P BufferI/P BufferI/P Buffer

Page 44: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 454545

Shared Memory

CPU MemoryCPU Memory

Forwarding TableForwarding TableIn

terf

ace

Inte

rfac

e

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Registers CPU

I/P Buffer

I/P Buffer

I/P BufferI/P Buffer

CPU reads packet header information into registers and

compares with forwarding table

Page 45: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 464646

Shared Memory

CPU MemoryCPU Memory

Forwarding TableForwarding TableIn

terf

ace

Inte

rfac

e

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Inte

rfac

eIn

terf

ace

Outgoing FrameOutgoing Frame

CPU

0/P Buffer

I/P Buffer

I/P BufferI/P Buffer

Registers

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

Page 46: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 474747

Components of an Architecture

• Switching fabric

• Memory/buffers

• Queuing

• Distributed vs. centralized

• Forwarding architectures

Page 47: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 484848

Input Queuing

• 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

Output PortOutput Port

Switching Fabric

Switching Fabric

Input PortInput Port

Data inData in

Buffer

Page 48: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 494949

Output Queuing

• Buffers at the output port

• Allows for individual prioritization of traffic flows

Buffer

Switching Fabric

Switching Fabric

Data inData in

Output PortOutput PortInput PortInput Port

Page 49: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 505050

Output Queuing/Shared Buffer

• Central pool of buffers shared between all ports

• Maximum throughput with fewest buffers

• No head of line blocking with intelligent congestion management

Data Out to Port 1Data Out to Port 1

Data Out to Port 3Data Out to Port 3

Data Out to Port 9Data Out to Port 9

Data Out to Port 2Data Out to Port 2

Data inData in

Page 50: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 515151

Multiple Queues Per Port

• Can be implemented in either output queuing or shared memory models

• Scheduling and/or congestion avoidancealgorithm required

• Note: Number of queues affect overall number of buffers per queue

Critical Data, High PriorityCritical Data, High Priority

Non-Critical Data, Low PriorityNon-Critical Data, Low Priority

Data inData in

Page 51: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 525252

How Does Traffic Run in a Real Network?

100Mbps Port

100Mbps Port

WAN Port

100Mbps Port

6 Gbps Fabric

Page 52: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 535353

Blocked (grrrrr!!)

Head of Line Blocking (HOL)

Page 53: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 545454

CPU

X- Bar (Same problem

exists with Shared Memory Routers)

InterfaceInterface

InterfaceInterface

InterfaceInterface

A

B

C

CC CC BBCC

CongestedCongested

Delayed/Dropped

Single Ingress FIFO Queue

Single Input FIFO Queue

Page 54: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 555555

A

B

C

D

B B

B

D D

D

C

C

C

A

A

A

You can only ever sit in a lane that is designated for the corresponding lane you are trying to exist the junction from

“Lane Control”

Page 55: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 565656

A CB B

B

D D

D

C

C

C

A

A

A

No congested interface (Outbound) Can affect another Interface

B

D

All Destinations Have a Lane

Page 56: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 575757

CPU

InterfaceInterface

InterfaceInterface

InterfaceInterface

A

B

CCongestedCongested

BB

CC CC CC

FIFO

FIFO

Virtual Output Queuing

Page 57: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 585858

CPU

InterfaceInterface

InterfaceInterface

InterfaceInterface

A

B

CCongestedCongested

Queue Scheduler

BB

CC CC CC

FIFO

FIFO

Virtual Output Queue

Page 58: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 595959

Components of an Architecture

• Switching fabric

• Memory/buffers

• Queuing

• Centralized vs. Distributed

• Forwarding architectures

Page 59: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 606060

Centralized Switching

• 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

Central CPU/Switch ASIC

Switching FabricSwitching Fabric

Forwarding TableForwarding Table172.20.45.0 2/3

SiSi

Page 60: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 616161

Sh

ared

Pac

ket

Mem

ory

(SR

AM

)

Sh

ared

Pac

ket

Mem

ory

(SR

AM

)

Distributed SwitchingDistributed SwitchingDistributed Switching

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

CPU Memory(DRAM)

CPU Memory(DRAM)

(C) ForwardingTable

I/O Buffer

I/O Buffer

I/O BufferI/O Buffer

CPU

InterfaceCard

(D) FT

CPU

InterfaceCard(D) FT

CPU

InterfaceCard(D) FT

Packet MemoryI/O Buffer

I/O Buffer

I/O BufferI/O Buffer

Packet Memory

Packet Memory

CPU

InterfaceCard(D) FT

Packet Memory

CPU

Page 61: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 626262

Components of an Architecture

• Switching fabric

• Memory/buffers

• Queuing

• Distributed vs. centralized

• Forwarding architectures

Page 62: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 636363

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

Page 63: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 646464

CPU

CPU Memory

Fast CachePrefix/Length Age Interface 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

ARP Table

172.16.1.1: 0F000800

172.16.2.1: 10134567A...ECE030178654

Forwarding Table

1.1.0.0/16 via 172.16.2.1

10.1.1.0/24 via 172.16.1.1

Demand Generated Cache Based Switching

Page 64: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 656565

Forwarding TableForwarding TableRouteProcessorRouteProcessor

••

••

••

Switching Fabric

DA Interface

172.2010.1.296.23.

Fast Ethernet 3/1Gigabit Ethernet 1/1VLAN 100

10.1.2 A0-B8-FE FF 2/0

ForwardingInformationBase

ForwardingInformationBase

Topology-Based Switching

• Forwarding Information Base (FIB)

• Cisco Express Forwarding (CEF)

OSPF, IGRPEIGRP, RIP, BGP, IS-IS

Routing Protocols

Inject Routes into the

Routing Table

Adjacency

DistributedFIB

DistributedFIB

DistributedFIB

DistributedFIB

Page 65: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 666666

Forwarding TableForwarding TableRouteProcessorRouteProcessor

••

••

••

Switching Fabric

Adjacency

172.2010.1.296.23.

Fast Ethernet 3/1Gigabit Ethernet 1/1VLAN 100

A0-B8-FE FF 2/0

ForwardingInformationBase

ForwardingInformationBase

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

DA10.1.2

Interface

DistributedFIB

DistributedFIB

DistributedFIB

DistributedFIB

Page 66: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 676767

Topology-Based Switching

• Packet enters switch

• No process switching necessary

• Decision made locally or centrally irregardless of switching fabric

Routing TableRouting TableRouteProcessorRouteProcessor

••

••

••

Switching Fabric

Adjacency

DistributedFIB

DistributedFIB

DistributedFIB

DistributedFIB

172.2010.1.296.23.

Fast Ethernet 3/1Gigabit Ethernet 1/1VLAN 100

A0-B8-FE FF 2/0

ForwardingInformationBase

ForwardingInformationBase DA

10.1.2Interface

Page 67: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

68RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.© 2001, Cisco Systems, Inc. All rights reserved.

Summary

Page 68: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 696969

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

Page 69: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

RST-1013048_05_2001_c1 © 2001, Cisco Systems, Inc. All rights reserved. 707070

Network Implementation

Workstations

Building ABuilding A

Workstations

LocalWorkgroup

Servers

Building BBuilding B

WAN Aggregation

Cache Engine (Optional)

Call Manager

Centralized Server Farm

RoutedUplinksto Core

RoutedUplinksto Core

MDFMDF

SiSiSiSi

LocalWorkgroup

Servers

SiSi

Page 70: Introduction to Routers - d Billingsdbillings.com/networking/switchesandrouters.pdf · Introduction to Routers and LAN Switches Session RST-101. ... MemoryMemory 00-10-B2-B4-FA-15

74© 2001, Cisco Systems, Inc. All rights reserved.

RST-1013048_05_2001_c1