Chapter 4 V7 01
Chapter 4 V7 01
Network Layer
Computer
Networking: A Top
Down Approach
7th edition
Jim Kurose, Keith Ross
Pearson/Addison Wesley
All material copyright 1996-2016 April 2016
J.F Kurose and K.W. Ross, All Rights Reserved Network Layer: Data Plane 4-1
Chapter 4: outline
4.1 Overview of Network layer
• data plane
• control plane
high-speed
switching
fabric
lookup,
link forwarding switch
line layer fabric
termination protocol
(receive) queueing
physical layer:
bit-level reception
data link layer: switching:
e.g., Ethernet ▪ using header field values, lookup output port using
forwarding table in input port memory
▪ queuing: if datagrams arrive faster than forwarding
rate into switch fabric
▪ destination-based forwarding: forward based only
on destination IP address (traditional)
otherwise 3
otherwise 3
examples:
DA: 11001000 00010111 00010110 10100001 which interface?
DA: 11001000 00010111 00011000 10101010 which interface?
Network Layer: Data Plane 4-10
Switching fabrics
▪ transfer packet from input buffer to appropriate output
buffer
▪ switching rate: rate at which packets can be transfer
from inputs to outputs
memory
datagram
switch buffer link
fabric layer line
protocol termination
queueing (send)
packet packet
arrivals queue link departures
(waiting area) (server)
link layer
physical layer
…
• different link types,
in: one large datagram
different MTUs out: 3 smaller datagrams
▪ large IP datagram divided
(“fragmented”) within net
• one datagram becomes
several datagrams reassembly
• “reassembled” only at final
destination
• IP header bits used to …
identify, order related
fragments
each interface
223 1 1 1
▪ what’s a subnet ?
223.1.2.2
223.1.1.3 223.1.3.27
•device interfaces with same
subnet
subnet part of IP address
•can physically reach each
223.1.3.2
other without intervening 223.1.3.1
router
223.1.3.0/24
subnet host
part part
11001000 00010111 00010000 00000000
200.23.16.0/23
DHCP overview:
• host broadcasts “DHCP discover” msg [optional]
• DHCP server responds with “DHCP offer” msg [optional]
• host requests IP address: “DHCP request” msg
• DHCP server sends address: “DHCP ack” msg
DHCP offer
src: 223.1.2.5, 67
Broadcast: I’m a DHCP
dest: 255.255.255.255, 68
server!
yiaddrr:Here’s an IP
223.1.2.4
transaction
address youID:can
654 use
lifetime: 3600 secs
DHCP request
src: 0.0.0.0, 68
dest:: 255.255.255.255, 67
Broadcast: OK. I’ll take
yiaddrr: 223.1.2.4
that IP address!
transaction ID: 655
lifetime: 3600 secs
DHCP ACK
src: 223.1.2.5, 67
dest: 255.255.255.255,
Broadcast: 68
OK. You’ve
yiaddrr: 223.1.2.4
got that IPID:
transaction address!
655
lifetime: 3600 secs
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
motivation: local network uses just one IP address as far as outside world is
concerned:
▪ range of addresses not needed from ISP: just one IP address for all
devices
destination address
(128 bits)
data
32 bits
Network Layer: Data Plane 4-31
Other changes from IPv4