







































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































































Network Layer
Network Layer
m
network layer service models m
forwarding versus routing m
how a router works m
routing (path selection) m
dealing with scale m
advanced topics: IPv6, mobility
r
Network Layer
Network layer
r
transport segment fromsending to receiving host
r
on sending sideencapsulates segmentsinto datagrams
r
on rcving side, deliverssegments to transportlayer
r
network layer protocolsin
every
host, router
r
router examines headerfields in all IP datagramspassing through it
applicationtransport^ network^ data linkphysical
applicationtransport^ network^ data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical^ network^ data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical
network data linkphysical
Network Layer
Two Key Network-Layer Functions r
forwarding:
r
routing:
m
routing algorithms
r
Network Layer
Router Architecture Overview Two key router functions: r
run routing algorithms/protocol (RIP, OSPF, BGP)
r
forwarding
datagrams from incoming to outgoing link
Network Layer
Input Port Functions
Decentralized switching
:
r
given datagram dest., lookup output portusing forwarding table in input portmemory
r
goal: complete input port processing at‘line speed’
r
queuing: if datagrams arrive faster thanforwarding rate into switch fabric
Physical layer:
bit-level reception
Data link layer:
e.g., Ethernetsee chapter 5
Network Layer
Switching Via Memory First generation routers: r
traditional computers with switching under direct control of CPU r
packet copied to system’s memory r
speed limited by memory bandwidth (2 bus crossings per datagram)
InputPort
OutputPort
Memory
System Bus
Network Layer
Switching Via a Bus
r
datagram from input port memoryto output port memory via a sharedbus
r
bus contention:
switching speed
limited by bus bandwidth
r
32 Gbps bus, Cisco 5600: sufficientspeed for access and enterpriserouters
Network Layer
Output Ports^ r
Buffering
required when datagrams arrive from
fabric faster than the transmission rate
r
Scheduling discipline
chooses among queued
datagrams for transmission
Network Layer
Output port queueing^ r
buffering when arrival rate via switch exceedsoutput line speed
r
queueing (delay) and loss due to output portbuffer overflow!
Network Layer
Input Port Queuing^ r
Fabric slower than input ports combined -> queueingmay occur at input queues
r
Head-of-the-Line (HOL) blocking:
queued datagram
at front of queue prevents others in queue frommoving forward
r
queueing delay and loss due to input buffer overflow!
Network Layer
r
4.2 Virtual circuit anddatagram networks
r
4.3 What’s inside arouter
r
4.4 IP: InternetProtocol
m
Datagram format m
IPv4 addressing m
ICMP m
IPv
r
4.5 Routing algorithms
m
Link state m
Distance Vector m
Hierarchical routing
r
4.6 Routing in theInternet
m
RIP m
OSPF m
BGP
r
4.7 Broadcast andmulticast routing
Network Layer
r
4.2 Virtual circuit anddatagram networks
r
4.3 What’s inside arouter
r
4.4 IP: InternetProtocol
m
Datagram format m
IPv4 addressing m
ICMP m
IPv
r
4.5 Routing algorithms
m
Link state m
Distance Vector m
Hierarchical routing
r
4.6 Routing in theInternet
m
RIP m
OSPF m
BGP
r
4.7 Broadcast andmulticast routing
Network Layer
IP datagram format
ver
length
32 bits
data
(variable length,typically a TCPor UDP segment)
16-bit identifier
header checksum
time to
live
32 bit source IP address
IP protocol version
number
header length
(bytes)
max number remaining hops (decremented at
each router)
total datagramlength (bytes)^ forfragmentation/reassembly
upper layer protocolto deliver payload to
head.
len
type ofservice
“type” of data
flgs
fragment
offset
upperlayer
32 bit destination IP address
Options (if any)
E.g. timestamp,record routetaken, specifylist of routersto visit.
how much overhead
with TCP?
r
20 bytes of TCP
r
20 bytes of IP
r
= 40 bytes + applayer overhead