router architecture eecs 569 sanjeev kayath. classification of routers zaccess network router yneed...

20
Router Architecture EECS 569 Sanjeev Kayath

Upload: william-foster

Post on 23-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Router Architecture

EECS 569Sanjeev Kayath

Page 2: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Classification of Routers

Access Network Router Need to support heterogeneous high-

speed ports and variety of protocolsEnterprise Network Router

Needs to support a large number of ports at a lower cost

Backbone Network Router Needs to support few, but high speed

links.

Page 3: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Design Issues

Enterprise Routers Primary goal to provide connectivity to

large number of endpoints as cheaply as possible.

Support for QoS classes. Support for mulitcast and broadcast traffic. Support multiple network protocols. Support features such as firewall,

administrative and security policies.

Page 4: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Design Issues

Backbone Routers Cost: secondary issue Reliability and speed are the primary issue. Reliability : hot spares, duplicate datapaths. Speed: Forwarding decision

Table lookupAmong the matching entry, find the longest

match. Stability and reliability of routing protocol

implementation.

Page 5: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Components of Router

Input Port Entry point for incoming packet.

Output Port Exit point of the packet.

Switching Fabric Switch the packet from I/P port to O/P port.

Routing Processor Participate in routing protocol to make

forwarding table.

Page 6: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Evolution of Router Architecture

Earliest router were based on general purpose computer: shared central bus, central CPU, memory and line cards. Each incoming packet sent to CPU. Forwarding decision made in CPU. Packet forwarded to output port. Packet traversed the bus twice and all

decision made by a single CPU.

Page 7: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Evolution of Router Architecture

Multiple CPUs introduced to handle portions of incoming traffic. Processing power put in the line cards.

So packet needed to traverse the bus once.

ASICs were used in line cards.Shared bus replaced by crossbar

switch.

Page 8: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Input Port

Line Card: supports 4-16 ports.Read packet header and do Route lookup.Classify the packet in to QoS traffic classes.Perform data link layer related functionality.Arbitrate the access to switching fabric.Custom hardware/ Processor is used to

handle these functionalities.

Page 9: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Switching Fabric

Bus Limit due to Arbitration overheard and

capacitance.Crossbar

A scheduler turns on and off the cross-points.

Shared Memory Only pointers to packets are switched.

Limited by the memory access time.

Page 10: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Output Port

Packets heading for same output link need to be stored in a buffer; so as to avoid packet loss.

Supports sophisticated scheduling algorithms to support priorities and guarantees.

Support data link layer functionality.

Page 11: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Routing Processor

Computes the forwarding table based on the updates received from other routers according to routing protocol.

Runs the software to configure and manage the router.

Page 12: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Datapath / Control functions

Router functions can also be divided as Datapath functions

Functions applied to every packet.E.g. header lookup, forwarding, scheduling.Handled by input, output port and switching fabric.

Control functionsFunctions not applied to every packet.E.g. system configuration, management, table update.Handled by routing processor

Goal for high speed requires increase in the rate at which datapath functions are performed.

Page 13: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Route Lookup

Speed of algorithm determined by: Number of memory accesses to match one address. Speed of memory. Rule of thumb: 1000 pps for 1Mbps. (Avg. packet size: 125

bytes) E.g. OC 192 - 10 Gbps implies: 10 million pps.

Traditional algorithm is to store routes in a tree; every path in the tree from root to leaf corresponds to an entry in forwarding table.

Worst time proportional to the length of the destination address for longest prefix match.

Page 14: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Route Lookup

Techniques to improve the speed Hardware oriented techniques.

CAM: Content Addressable memory.Increase memory to store entries. (stanford)Intelligent memory. (harvard)

Table compaction technique. Use better data structure for forwarding table. (sweden)

Hashing Binary search on hash table. (wustl)

Page 15: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Switching Fabric

Blocking vs Non-blocking packets contend for the same internal link -

blocking. Banyan switch -blocking, Batcher-Banyan

switch - nonblocking: ATM switches.Multi-stage interconnection networks.Use of ATM switch cores in IP routers.

Page 16: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Output Port

Speed up output queue increase the speed at which the queue

can be accessed. Use very wide memory.Integrate port controller with queue on a

single chip.

Queuing FCFS - cannot offer different QoS. Fair Queuing - “weighted” service.

Page 17: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Cost of port

Cost of port depends upon Amount and kind of memory

Backbone routers uses SRAMsEnterprise routers use DRAMs

Processing powerBackbone routers use Processors (general/network

processor). Extensible functionality.Enterprise routers use ASICs. Lack of flexibility.

Communication between routing processor and the port.

Page 18: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Avoid Route lookup

Edge router translates the destination address to a tag/label/VCI.

Core routers do not need to do longest prefix matching. Forwarding done in one memory access.

Labels/tags/VCI - Address mapping needs to be distributed.

MPLS - A very popular protocol.

Page 19: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Trends: Router OS

Value Added Services Security, Accounting, Caching and

resource management. Research

Purdue, Princeton etc.

Router API standardization to open up the router architecture.

Page 20: Router Architecture EECS 569 Sanjeev Kayath. Classification of Routers zAccess Network Router yNeed to support heterogeneous high-speed ports and variety

Products

Single Box Architecture High capacity switching fabrics. Blocking LAN interconnect to link multiple boxes

to increase overall capacity. Max. Line capacity: 25 Gbps -160 Gbps.

Multi-chasis Integrated Architecture Expandable switching fabric to provide non-

blocking interconnection between multiple expansion chasis.

Max. Line capacity: 160 Gbps - 19.2 Tbps.