Download Router architectures

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Low Pin Count wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Multiprotocol Label Switching wikipedia , lookup

Industry Standard Architecture wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Wake-on-LAN wikipedia , lookup

Serial digital interface wikipedia , lookup

Bus (computing) wikipedia , lookup

Routing in delay-tolerant networking wikipedia , lookup

Routing wikipedia , lookup

Transcript
Router Architectures
An overview of router architectures.
Cisco CRS
2
The first Cisco router (1987)
3
Introduction
What is a Packet Switch?
• Basic Architectural Components
• Some Example Packet Switches
• The Evolution of IP Routers
4
Router Components
•
•
Hardware components of a router:
– Network interfaces
– Interconnection network
– Processor with a memory and
CPU
PC router:
– interconnection network is the (PCI)
bus and interface cards are NICs
– All forwarding and routing is done on
central processor
Processor
Memory
Interconnection Network
Interface Card
•
CPU
Interface Card
Interface Card
Commercial routers:
– Interconnection network and interface
cards are sophisticated
– Processor is only responsible for
control functions (route processor)
– Almost all forwarding is done on
interface cards
5
Functional Components
routing
protocol
Routing
functions
routing
protocol
routing table
updates
Control
routing
table
Datapath:
routing table
lookup
incoming IP
datagrams
IP
Forwarding
per-packet
processing
outgoing IP
datagrams
6
Routing and Forwarding
Routing functions include:
– route calculation
– maintenance of the routing table
– execution of routing protocols
• On commercial routers handled by a single general purpose
processor, called route processor
IP forwarding is per-packet processing
• On high-end commercial routers, IP forwarding is distributed
• Most work is done on the interface cards
7
Basic Architectural Components
Per-packet processing
Routing
Table
Output
Scheduling
Switch Fabric
Forwarding
Decision
Routing
Table
Forwarding
Decision
Routing
Table
Forwarding
Decision
8
Router Components
•
•
Processor
On a PC router:
– interconnection network is the
(PCI) bus
– Interface cards are NICs (e.g.,
Ethernet cards)
– All forwarding and routing is done
on central processor
On Commercial routers:
– Interconnection network and
interface cards can be
sophisticated
– Central processor is the route
processor (only responsible for
control functions)
Memory
CPU
Interconnection Network
Interface Card
Interface Card
Interface Card
9
Slotted Chassis
R
Pr o u t
oc e
(C esso
PU r
)
e cards
Interfac
• Large routers are built as a slotted chassis
– Interface cards are inserted in the slots
– Route processor is also inserted as a slot
• This simplifies repairs and upgrades of components
10
Evolution of Router Architectures
• Early routers were essentially general purpose computers
• Today, high-performance routers resemble supercomputers
• Exploit parallelism
• Special hardware components
•
•
•
•
Until 1980s (1st generation): standard computer
Early 1990s (2nd generation): delegate to interfaces
Late 1990s (3rd generation): Distributed architecture
Today: Distributed over multiple racks
11
1st Generation Routers
•
•
•
•
•
•
This architecture is still used in low
end routers
Route Processor
CPU
Arriving packets are copied to main
memory via direct memory access (DMA)
Interconnection network is a backplane
(shared bus)
All IP forwarding functions are performed
in the central processor.
Routing cache at processor can accelerate
the routing table lookup.
Cache
Memory
Shared Bus
DMA
DMA
DMA
Interface
Card
Interface
Card
Interface
Card
MAC
MAC
MAC
Drawbacks:
– Forwarding Performance is
limited by CPU
– Capacity of shared bus limits the
number of interface cards that
can be connected
12
2nd Generation Routers
Route Processor
• Keeps shared bus architecture,
but offloads most IP forwarding to
interface cards
•
Interface cards have local route
cache and processing elements
Fast path: If routing entry is found in
local cache, forward packet directly to
outgoing interface
Slow path: If routing table entry is not in
cache, packet must be handled by
central CPU
•
CPU
Cache
Memory
Shared
Bus
slow path
fast path
DMA
DMA
DMA
Route Cache
Route Cache
Route Cache
Memory
Memory
Memory
MAC
MAC
MAC
Interface
Cards
Drawbacks: Shared bus is still bottleneck
13
Another 2nd Generation Architecture
•
IP forwarding is done by
separate components
(Forwarding Engines)
Forwarding operations:
1. Packet received on interface:
Store the packet in local
memory. Extracts IP header
and sent to one forwarding
engine
2. Forwarding engine does
lookup, updates IP header,
and sends it back to
incoming interface
3. Packet is reconstructed and
sent to outgoing interface.
Control Bus
Forwarding Bus
(IP headers only)
Data Bus
Interface
Cards
Forwarding
Engine
Forwarding
Engine
Route Processor
CPU
CPU
CPU
Cache
Cache
Memory
Memory
Memory
IP header
IP datagram
Memory
Memory
Memory
MAC
MAC
MAC
14
3rd Generation Architecture
•
•
•
Interconnection network is a switch fabric
(e.g., a crossbar switch)
Distributed architecture:
– Interface cards operate independent
of each other
– No centralized processing for IP
forwarding
These routers can be scaled to many
hundred interface cards and to aggregate
capacity of > 1 Terabit per second
Switch
Fabric
Switch
Fabric
Interface
Switch
Fabric
Interface
Route
Processor
Route
Processing
Route
Processing
CPU
Memory
Memory
Memory
MAC
MAC
15
Input queueing causes head-of-line blocking
Crossbar switch with
Virtual Output Queueing
17
Parallel Iterated Matching