Lec 4 - Network Layer - I
Lec 4 - Network Layer - I
Lec 4 - Network Layer - I
Communication Networks
EE-357
By Dr Mir Yasir Umair
Associate Professor, MCS, NUST
Network Layer
Introduction
Chapter 4: network layer
chapter goals:
❖ understand principles behind network layer services:
▪ network layer service models
▪ forwarding versus routing
▪ how a router works
▪ routing (path selection)
▪ broadcast, multicast
❖ instantiation, implementation in the Internet
encapsulates segments
data link
physical network network
value in arriving
packet’s header
0111 1
3 2
• call setup, teardown for each call before data can flow
• each packet carries VC identifier (not destination host address)
• every router on source-dest path maintains “state” for each passing
connection
• link, router resources (bandwidth, buffers) may be allocated to VC
(dedicated resources = predictable service)
1 3
2
VC number
interface
forwarding table in number
northwest router:
Incoming interface Incoming VC # Outgoing interface Outgoing VC #
1 12 3 22
2 63 1 18
3 7 2 17
1 97 3 87
… … … …
application application
5. data flow begins 6. receive data
transport transport
network 4. call connected 3. accept call
1. initiate call network
data link 2. incoming call
data link
physical physical
application application
transport transport
network 1. send datagrams 2. receive datagrams network
data link data link
physical physical
IP destination address in
arriving packet’s header
1
3 2
otherwise 3
otherwise 3
examples:
DA: 11001000 00010111 00010110 10100001 which interface?
DA: 11001000 00010111 00011000 10101010 which interface?
Network Layer 4-18
Datagram or VC network: why?
Internet (datagram) ATM (VC)
• data exchange among • evolved from
computers telephony
o “elastic” service, no • human conversation:
strict timing req. o strict timing, reliability
• many link types requirements
o need for guaranteed
o different characteristics service
o uniform service difficult • “dumb” end
• “smart” end systems systems
(computers) o telephones
o can adapt, perform o complexity inside
control, error recovery network
o simple inside network,
complexity at “edge”