Docsity

Understanding Forwarding in Computer Networks: Router Architecture and Switching Fabrics, Slides of Computer Networks

Partial preview of the text

Download Understanding Forwarding in Computer Networks: Router Architecture and Switching Fabrics and more Slides Computer Networks in PDF only on Docsity!

Network Layer

Computer Networks

Lect-

NETWORK LAYER

Forwarding 4

ROUTER ARCHITECTURE OVERVIEW

Two key router functions:

Ā» run routing algorithms/protocol (RIP, OSPF, BGP)

Ā» forwarding datagrams from incoming to outgoing link

Input Port:

  • Terminate incoming connection
  • Maintain data link
  • Forward to output port

Switching Fabric Connects input and output ports

Output Ports Stores packet forwarded to it and transmit it to outgoing link

Router Processor Executes routing protocols, lots of other processing

Forwarding 5

I

Decentralized switching :

»given datagram destination, lookup output port using forwarding table in input port memory (caching of entries?)

Ā»Each input port is provided copy of computed forwarding table so that it can make the forwarding itself Ā» Ā» Goal : complete input port processing at ā€˜line speed’ Ā»queuing: if datagrams arrive faster than forwarding rate into switch fabric

Physical layer:

bit-level reception

Data link layer:

e.g., Ethernet

INPUT PORT FUNCTIONS (1/2)

CAM (CONTENT ADDRESSABLE MEMORY)

»Conventional Memory

Ā» Returns the word using supplied memory address

»CAM

Ā» Returns memory address of the word supplied after searching entire memory,

the returned address can also be a pointer to another memory location.

»Hardware search engines, much faster than algorithmic approaches for search-

intensive applications

»Designed to complete search operation in a single clock-cycle.

»CAM-Forms

Ā» Binary (1,0)

Ā» Ternary (1,0,X) i.e don’t care bit

»Architecture

Ā» Core Cells

Ā» RAM

WORKING OF CAM

Working. Charge / activate all match lines Search supplied bit vertically along search line , compare with each cell If not matched with cell, cell deactivates the associated match line, One mismatch will deactivate the whole match line (line 1,4) Select the minimum of the match address at encoder (01) Search the RAM / Forwarding table for this code (see table in next slide)

Forwarding 10

SWITCHING VIA MEMORY

First generation routers:

Ā» traditional computers with switching under direct control of CPU

Ā»packet copied to system’s memory

Ā» speed limited by memory bandwidth (2 bus crossings per datagram)

Input Port

Output Port

Memory

System Bus

Forwarding 11

SWITCHING VIA BUS

»datagram from input port memory

to output port memory via a shared bus

»bus contention: switching speed limited

by bus bandwidth

»1 Gbps bus, Cisco 1900: sufficient speed

for access and enterprise routers (not

regional or backbone)

Forwarding 13

OUTPUT PORTS

Ā» Buffering required when datagrams arrive from fabric faster

than the transmission rate

Ā» Need Queue Management Policy (Drop-Tail, AQM)

Ā» Also need Packet Scheduling Policy (FCFS, WFQ)

Forwarding 14

OUTPUT PORT QUEUEING

»buffering when arrival rate via switch exceeds output line speed

Ā» queueing (delay) and loss due to output port buffer overflow!

Forwarding 16

NEXT TOPIC

»Routing Algorithms

»Routing in the Internet

»Readings: Chapter 4 in the K&R book