



























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
networks layer
Typology: Study notes
1 / 67
This page cannot be seen from the preview
Don't miss anything!




























































Network Layer 4-
Computer Networking: A Top Down Approach Featuring the Internet, 3 rd^ edition. Jim Kurose, Keith Ross Addison-Wesley, July
A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers). They’re in PowerPoint form so you can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following: If you use these slides (e.g., in a class) in substantially unaltered form, that you mention their source (after all, we’d like people to use our book!) If you post any slides in substantially unaltered form on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material.
Thanks and enjoy! JFK/KWR
All material copyright 1996- J.F Kurose and K.W. Ross, All Rights Reserved
Network Layer 4-
Network Layer 4-
Datagram format IPv4 addressing ICMP IPv
Link state Distance Vector Hierarchical routing
Network Layer 4-
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
application transport network data link physical
application transport network data link physical
Network Layer 4-
Network Layer 4-
Network Layer 4-
Network Architecture
Internet
ATM
ATM
ATM
ATM
Service Model
best effort
CBR
VBR
ABR
UBR
Bandwidth
none
constant rate guaranteed rate guaranteed minimum none
Loss
no
yes
yes
no
no
Order
no
yes
yes
yes
yes
Timing
no
yes
yes
no
no
Congestion feedback
no (inferred via loss) no congestion no congestion yes
no
Guarantees?
Network Layer 4-
Datagram format IPv4 addressing ICMP IPv
Link state Distance Vector Hierarchical routing
Network Layer 4-
Network Layer 4-
12 22 32 1 2 3
VC number
interface number
Incoming interface Incoming VC # Outgoing interface Outgoing VC #
1 12 2 22 2 63 1 18 3 7 2 17 1 97 3 87 … … … …
Network Layer 4-
Virtual circuits: signaling protocols
application transport network data link physical
application transport network data link physical
Network Layer 4-
Datagram networks
no network-level concept of “connection”
packets between same source-dest pair may take different paths
application transport network data link physical
application transport network data link physical
Network Layer 4-
data exchange among computers “elastic” service, no strict timing req.
“smart” end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at “edge”
many link types
different characteristics uniform service difficult
evolved from telephony human conversation: strict timing, reliability requirements need for guaranteed service “dumb” end systems telephones complexity inside network
Network Layer 4-
Datagram format IPv4 addressing ICMP IPv
Link state Distance Vector Hierarchical routing
Network Layer 4-
Router Architecture Overview
Two key router functions:
forwarding datagrams from incoming to outgoing link
Network Layer 4-
Input Port Functions
Decentralized switching : given datagram dest., lookup output port using forwarding table in input port memory 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 see chapter 5
Network Layer 4-
Switching Via a Bus
Network Layer 4-
Switching Via An Interconnection
Network
Network Layer 4-
Output Ports
Buffering required when datagrams arrive from
Scheduling discipline chooses among queued
Network Layer 4-
Output port queueing
queueing (delay) and loss due to output port buffer overflow!
Network Layer 4-
forwarding table
Routing protocols •path selection •RIP, OSPF, BGP
IP protocol •addressing conventions •datagram format •packet handling conventions
ICMP protocol •error reporting •router “signaling”
Transport layer: TCP, UDP
Link layer
physical layer
Network Layer 4-
Datagram format IPv4 addressing ICMP IPv
Link state Distance Vector Hierarchical routing
Network Layer 4-
IP datagram format
ver (^) length
32 bits
data (variable length, typically a TCP or UDP segment)
16-bit identifier Internet checksum
time to live 32 bit source IP address
IP protocol version number header length (bytes)
max number remaining hops (decremented at each router)
for fragmentation/ reassembly
total datagram length (bytes)
upper layer protocol to deliver payload to
head. len
type of service “type” of data (^) flgs fragment offset upper layer
32 bit destination IP address Options (if any) E.g. timestamp, record route taken, specify list of routers to visit.
how much overhead with TCP?
20 bytes of TCP
20 bytes of IP
= 40 bytes + app layer overhead
Network Layer 4-
IP Fragmentation & Reassembly
network links have MTU (max.transfer size) - largest possible link-level frame. different link types, different MTUs large IP datagram divided (“fragmented”) within net one datagram becomes several datagrams “reassembled” only at final destination IP header bits used to identify, order related fragments
fragmentation: in: one large datagram out: 3 smaller datagrams
reassembly
Network Layer 4-
router’s typically have multiple interfaces host may have multiple interfaces IP addresses associated with each interface
223.1.1.
223.1.1.
223.1.1.
223.1.1.4 223.1.2.
223.1.2.
223.1.2.
223.1.3.1 223.1.3.
223.1.3.
223.1.1.1 = 11011111 00000001 00000001 00000001
223 1 1 1
Network Layer 4-
subnet part (high order bits) host part (low order bits)
device interfaces with same subnet part of IP address can physically reach each other without intervening router
223.1.1.
223.1.1.
223.1.1.
223.1.1.4 223.1.2.
223.1.2.
223.1.2.
223.1.3.1 223.1.3.
223.1.3.
network consisting of 3 subnets
LAN
Network Layer 4-
223.1.1.0/24 (^) 223.1.2.0/
223.1.3.0/
Network Layer 4-
223.1.1.
223.1.1.
223.1.2.1 223.1.2.
223.1.2.
223.1.3.1 223.1.3.
223.1.3.
223.1.1.
223.1.7.
223.1.7. 223.1.8.1 223.1.8.
223.1.9.
223.1.9.