Network routing
Network routing
Routing Concepts
Kiranpal Singh Virk
(Assistant Professor)
7 APPLICATION
6 PRESENTATION
• Provide reliable
5 SESSION
•Move
process to
PACKETS
4 TRANSPORT from source to into
process
•Organize delivery
bits
3 NETWORK destination,
of Message,
FRAMES, andand
and
•Provide inter
2 DATA LINK •Error
•ensure
recovery
hop-to-hop
Transmits bits over
networking
delivery
1 PHYSICAL
the physical media
ROLE OF NETWORK
LAYER
7 APPLICATION APPLICATION 7
6 PRESENTATION Multiple paths
Information mayPRESENTATION
be 6
5 SESSION linking sender
switched SESSION
as it travels 5
4 TRANSPORT TRANSPORT 4
(PC1) and
through receiver
various
3 NETWORK NETWORK NETWORK NETWORK 3
(PC2) devices
communications
2 DATA LINK DATA LINK DATA LINK DATA LINK 2
1 PHYSICAL
channels
PHYSICAL PHYSICAL PHYSICAL 1
SWITCHING
MSG 1
D F
MSG 2
CIRCUIT SWITCHING -
BENEFITS
• Once a circuit is established, there is
virtually no channel access delay
• Dedicated transmission channel with
guaranteed data rate
CIRCUIT SWITCHING -
CONSIDERATIONS
• Single, dedicated channel makes
inefficient use of media
• Dedicated channels are relatively
expensive in terms of time, money and
bandwidth used
• Subjected to long connection delays
CIRCUIT SWITCHING –
SHORTCOMINGS
• Inefficient when channel utilized for a
small percent of the total time for which
connection is maintained
• Transmission and Receiving rate of the
communicating devices must be same
which is difficult to achieve for devices
supplied by different vendors or having
different standards
MESSAGE SWITCHING
MSG 1
MSG 2 D F
MESSAGE SWITCHING
C E
A B H
G
MSG 1
MSG 2 D F
MESSAGE SWITCHING
- BENEFITS
• Accommodate more devices by sharing
bandwidth
• Reduce network congestion by storing or
by prioritizing the messages
• Single message can be sent to multiple
devices
• Offline communication possible as in E-
mail
MESSAGE SWITCHING
- CONSIDERATIONS
• Not suitable, where real time
communication required like audio / video
communications
• Large and costly storage disks for
potentially long messages
PACKET SWITCHING
D F
5 4 3 2 1
PACKET SWITCHING
C E
3
A B H
G
D F
1 2 4 5
PACKET SWITCHING
C E
A B H
G
D F
1 2 4 5 3
PACKET SWITCHING
C E
A B H
G
D F 5 4 3 2 1
DATAGRAM PACKET
SWITCHING - BENEFITS
• Cost effective as storage requirements are
minimum and inexpensive
• Less transmission delay
• Packets can be routed around problem
links
• Optimal use of communication link (or
bandwidth)
DATAGRAM PACKET
SWITCHING -
CONSIDERATIONS
• High implementation costs as complex
protocols are used
• Loss of packet
• Retransmission required
VIRTUAL CIRCUIT
PACKET SWITCHING
• Virtual Circuit communication is a
combination of circuit switching &
packet switching
• The term ‘virtual’ signifies that the channel
appears to be dedicated to the user for a
conversation
VIRTUAL CIRCUIT
PACKET SWITCHING
• However; in actual, the devices over the
dedicated channel can be shared/used by
other devices also for packet forwarding
• Priority may be associated with the
packets belonging to the virtual circuit
communication
• Examples of virtual circuit switching are
X.25 and Frame Relay
VIRTUAL CIRCUIT
PACKET SWITCHING
• Circuit switching provides constant bit rate
and latency, while these may vary in a
virtual circuit service because of reasons
such as:
• varying packet queue lengths
• varying bit rate
• varying load
VIRTUAL CIRCUIT
SWITCHING
C E
X H
1 B G
A
Y
D F
5 4 3 2 1
VIRTUAL CIRCUIT
PACKET SWITCHING -
BENEFITS
• Packets are delivered in order
since they all take the same route
• The overhead in the packets is smaller,
since there is no need for each packet to
contain the full address
VIRTUAL CIRCUIT
PACKET SWITCHING -
BENEFITS
• The connection is more reliable,
network resources are allocated at call
setup so that even during times of
congestion, provided that a call has been
setup, the subsequent packets should get
through
• Billing is easier, since billing records need
only be generated per call and not per
packet.
VIRTUAL CIRCUIT
PACKET SWITCHING -
CONSIDERATIONS
• The switching equipment needs to be
more powerful, since each switch needs
to store details of all the calls that are
passing through it and to allocate capacity
for any traffic that each call could
generate
VIRTUAL CIRCUIT
PACKET SWITCHING -
CONSIDERATIONS
• Resilience (Flexibilty) to the loss of a
trunk is more difficult, since if there is a
failure all the calls must be dynamically
re-established over a different route.
NETWORK SERVICE
MODEL
All services provided on the internet
are broadly classified
RELIABLE DATAGRAM (non-reliable)
/ Best Effort)
CONNECTION CONNECTION LESS
ORIENTED
LAYER-WISE
SWITCHING
SWITCHING TYPE LAYER WISE
IMPLEMENTED ON
Circuit Switching Physical Layer
7 APPLICATION APPLICATION 7
6 PRESENTATION PRESENTATION 6
5 SESSION SESSION 5
4 TRANSPORT TRANSPORT 4
3 NETWORK NETWORK NETWORK NETWORK 3
2 DATA LINK DATA LINK DATA LINK DATA LINK 2
1 PHYSICAL PHYSICAL PHYSICAL PHYSICAL 1
ROUTERS AND OSI
MODEL
• Rapid convergence
– Convergence is the process of agreement, by
all routers, on optimal routes
• Flexibility
– should quickly and accurately adapt to a
variety of network circumstances
ROUTING METRICS
• Path length
• Reliability
• Delay
• Bandwidth
• Load
• Communication cost
AUTONOMOUS
SYSTEMS
• Internet is divided into autonomous
systems
• An autonomous system is a group of
network and routers under the authority of
a single administration
AUTONOMOUS
SYSTEMS
ROUTING PROTOCOLS
• Routing inside an autonomous system is
referred to as intra-domain routing. For
example:
• BOOKS:
– Andrew S Tanenbaum, Computer Networks,
Pearson Education
– Behrouz A. Forouzan, Data Communications and
Networking, Tata McGraw
• ONLINE RESOURCES
– docwiki.cisco.com
– en.wikipedia.org
TOPICS
NETWORK LAYER - BASICS
NETWORK LAYER - FUNCTIONS
CONNECTION MODEL
ADDRESSING
ROUTING
Thank You