Beruflich Dokumente
Kultur Dokumente
Slides are adapted from the companion web site of the book,
as modified by Anirban Mahanti (and Carey Williamson).
Forwarding 1
Key Network-Layer Functions
❒ forwarding: move packets from router’s input
to appropriate router output
❒ routing: determine the path taken by packets
as they flow from a sender to a receiver
❍ Routing algorithms – run at routers to determine
“paths”;
❍ Routers have a forwarding table
• Destination address-based in Datagram networks
• Virtual circuit number-based in VC Networks
Forwarding 2
Interplay between routing and forwarding
routing algorithm
value in arriving
packet’s header
0111 1
3 2
Forwarding 3
VC Networks: Connection setup
❒ 3rd important function in some network
architectures:
❍ ATM, frame relay, X.25
❒ Before datagrams flow, two hosts and
intervening routers establish virtual
connection
❍ Routers get involved
❒ Network and transport layer cnctn service:
❍ Network: between two hosts
❍ Transport: between two processes
Forwarding 4
Network service model
Q: What service model for “channel” transporting
datagrams from sender to rcvr?
Forwarding 5
Network layer service models:
Guarantees ?
Network Service Congestion
Architecture Model Bandwidth Loss Order Timing feedback
Forwarding 6
Network layer connection and
connection-less service
❒ Datagram network provides network-layer
connectionless service
❒ VC network provides network-layer
connection service
❒ Analogous to the transport-layer services,
but:
❍ Service: host-to-host
❍ No choice: network provides one or the other
❍ Implementation: in the core
Forwarding 7
Virtual circuits
“source-to-dest path behaves much like telephone
circuit”
❍ performance-wise
❍ network actions along source-to-dest path
Forwarding 8
VC implementation
A VC consists of:
1. Path from source to destination
2. VC numbers, one number for each link along
path
3. Entries in forwarding tables in routers along
path
❒ Packet belonging to VC carries a VC
number.
❒ VC number must be changed on each link.
❍ New VC number comes from forwarding table
Forwarding 9
Forwarding table VC number
12 22 32
1 3
2
1 12 2 22
2 63 1 18
3 7 2 17
1 97 3 87
… … … …
application
6. Receive data application
transport 5. Data flow begins
network 4. Call connected 3. Accept call transport
data link 1. Initiate call 2. incoming call network
data link
physical
physical
Forwarding 11
Datagram networks
❒ no call setup at network layer
❒ routers: no state about end-to-end connections
❍ no network-level concept of “connection”
application
application
transport
transport
network
data link 1. Send data 2. Receive data network
data link
physical
physical
Forwarding 12
Datagram or VC network: why?
Internet ATM
❒ data exchange among ❒ evolved from telephony
computers ❒ human conversation:
❍ “elastic” service, no strict
❍ strict timing, reliability
timing req.
requirements
❒ “smart” end systems
❍ need for guaranteed
(computers)
service
❍ can adapt, perform
❒ “dumb” end systems
control, error recovery
❍ telephones
❍ simple inside network,
❍ complexity inside
complexity at “edge”
network
❒ many link types
❍ different characteristics
❍ uniform service difficult
Forwarding 13
Inside a Router
Forwarding 14
Router Architecture Overview
Two key router functions:
❒ run routing algorithms/protocol (RIP, OSPF, BGP)
❒ forwarding datagrams from incoming to outgoing link
Forwarding 15
Input Port Functions
Physical layer:
bit-level reception
Data link layer: Decentralized switching:
e.g., Ethernet ❒ given datagram dest., lookup output port
using forwarding table in input port
memory (caching of entries?)
❒ goal: complete input port processing at
‘line speed’
❒ queuing: if datagrams arrive faster than
forwarding rate into switch fabric
Forwarding 16
Three types of switching fabrics
Forwarding 17
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 Memory Output
Port Port
System Bus
Forwarding 18
Switching Via a Bus
Forwarding 19
Switching Via An Interconnection
Network
Forwarding 20
Output Ports
Forwarding 21
Output port queueing
Forwarding 23
Next Topic
❒ Routing Algorithms
❒ Routing in the Internet
❒ Readings: Chapter 4 in the K&R book
Forwarding 24