21CS52 CN Module 3
21CS52 CN Module 3
Laboratory Component :
1. Implement transmission of ping messages/trace route
over a network topology consisting of 6 nodes and find
the number of packets dropped due to congestion in
the network.
2. Write a program to find the shortest path between
vertices using bellman-ford algorithm.
Network layer
• On Sending side encapsulates
segments into datagrams applicatio
n
• on Receiving side, delivers network
transport
network
segments to transport layer data link
physical
network
data link
data link
physical
network
data link
network
physical
network
• Router examines header fields in network
data link
data link
physical
physical
all IP datagrams passing through network
data link applicatio
it physical n
transport
network
data link
physical
Key Network-Layer Functions
value in arriving
packet’s header
0111 1
3 2
Connection setup
• Important function in some network architectures:
• ATM, frame relay, X.25
Network
Layer
Design: internal organisation
• Virtual circuits
• Routes chosen at connection time
• Connection identified by a virtual circuit number (VCn)
• Primary service of subnet is connection-oriented
4
Transport 7 Transport
Network Network
Data Link Data Link
Physical Physical
Routing problem: map
[Incoming line, VCn]
[outgoing line, VCn]
Design: internal
organisation
• Virtual circuits
Design: internal
organisation
• Datagram subnet
• Each packet is routed independently
• Subnet has more work to do
• More robust, easier to adapt to failures and congestion
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Reference Books
2. Behrouz A Forouzan, Data and Communications and
Networking, Fifth Edition, McGraw Hill, Indian Edition
3. Larry L Peterson and Brusce S Davie, Computer
Networks, fifth edition, ELSEVIER
Thank you