SlideShare a Scribd company logo
1 1
1 1 tohttps://github.com/syaifulahdan/
DATA COMMUNICATION
Routing in Switched Networks
Data Communications and Networking
 Routing in Packet-Switching Network
 Performance Criteria
 Example Network Configuration
 Decision Time and Place
 Network Information Source and Update Timing
 Routing Strategies
 Fixed Routing
 Fixed Routing Tables
 Flooding
 Random Routing
 Adaptive Routing
Reading:
Book Chapter 11
Data and Computer Communications, 8th edition
By William Stallings
 Least Cost Algorithms
 Dijkstra's Algorithm
 Belman Ford Algorithm
Data Communications and
Networking
Chapter 11
Routing in Switched Networks
References:
Book Chapters 12.1, 12.3
Data and Computer Communications, 8th edition
By William Stallings
3 3
3 3 tohttps://github.com/syaifulahdan/ 3
Routing in Packet-Switching
Network
• Recall the function of a packet-switching network
— To accept packets from a source station and deliver them to a destination
station.
• To accomplish this, a path or route through the network must be
determined.
• In general terms, routing seeks to design routes through the network
for individual pairs of communicating end nodes such that the network
is used efficiently.
— Routing is one of the most complex and crucial design aspects of switched
data networks.
• Required characteristics of routing function:
— Correctness
— Simplicity
— Robustness: the ability to deliver packets via some route in the face of
localized failures and overloads
— Stability
— Fairness
— Optimality
— Efficiency: routing involves processing overhead & transmission overhead
4 4
4 4 tohttps://github.com/syaifulahdan/ 4
Performance Criteria
• The selection of a route is generally based on
some performance criterion.
• The simplest criterion:
—Minimum-hop (the least number of nodes)
• A generalization of minimum-hop criterion:
—Least-cost routing: a cost is associated with each
link
• E.g., in minimum-hop, each link has a cost of 1
• The route that accumulates the least cost is sought.
5 5
5 5 tohttps://github.com/syaifulahdan/ 5
Example Network Configuration
Least-cost path
from node 1 to 6
6 6
6 6 tohttps://github.com/syaifulahdan/ 6
Decision Time and Place
• Two characteristics of routing decision:
— Time and place that the decision is made
• Decision time
— Datagram: a routing decision is made individually for each packet
— Virtual circuit: a routing decision is made at the time the virtual
circuit is established
• Decision place: which node or nodes are responsible for the
routing decision?
— Distributed routing
• Each node has the responsibility of selecting an output link for routing
packets as they arrive
— Centralized routing
• Decision is made by some designated node
— Source routing
• Decision is made by the source station
7 7
7 7 tohttps://github.com/syaifulahdan/ 7
Network Information Source
and Update Timing
• Routing decisions usually are based on knowledge of
network (not always): topology, traffic load, link cost
• Distributed routing
—Nodes use local knowledge
—May collect info from adjacent (directly connected) nodes
—May collect info from all nodes on any potential route of
interest
• Centralized routing
—Collect info from all nodes
• Timing for node information update
—Fixed strategy – the info is never updated
—Adaptive strategy – the info is regularly updated
8 8
8 8 tohttps://github.com/syaifulahdan/ 8
Routing Strategies
• Many routing strategies have evolved in
packet-switching networks. Four of them will
be introduced here:
—Fixed routing
—Flooding
—Random routing
—Adaptive routing
9 9
9 9 tohttps://github.com/syaifulahdan/ 9
Fixed Routing
• A single, permanent route is configured for
each source-destination (s-d) pair of nodes in
the network.
—Determine routes using any least-cost algorithm
—The link costs could be based on expected traffic
or capacity.
• Routes are fixed, or at least only change
when there is a change in network topology.
• A central routing directory (table) is created,
which shows for each s-d pair of nodes, the
identity of the next node on the route.
1010
10 10 tohttps://github.com/syaifulahdan/ 10
Fixed Routing
Tables
Using the figure on
Slide 4.
It is not necessary to
store the complete
central routing
directory for each
pair of nodes.
1111
11 11 tohttps://github.com/syaifulahdan/ 11
Flooding
• Flooding requires no network info.
• A packet is sent by a source node to every neighbor.
• At each node, an incoming packet is forwarded to all outgoing links
except the incoming link.
• Eventually a number of copies will arrive at destination.
• Each packet is uniquely numbered so duplicates can be discarded.
• Nodes can remember the identity of those packets it has already
retransmitted.
• Another technique: include a hop count field with each packet. Each
time a node passes on a packet, it decrements the hop count by one.
When the count reaches zero, the packet is discarded.
— The hop count is sometimes called “time-to-live” (TTL)
— Recall that TTL is also used in IP header which has nothing to do with
flooding!
1212
12 12 tohttps://github.com/syaifulahdan/ 12
Flooding Example
The TTL value decreases by
one after each hop.
1313
13 13 tohttps://github.com/syaifulahdan/ 13
Properties of Flooding
• All possible routes are tried
—A packet will always get through if at least one
path between source and destination exists.
• At least one copy of the packet will have
taken the minimum-hop-count route
—Can be used to set up the virtual circuit
• All nodes that are directly or indirectly
connected to the source node are visited.
—Useful to broadcast information (e.g. routing
information)
• Disadvantage: high traffic load
1414
14 14 tohttps://github.com/syaifulahdan/ 14
Random Routing
• Random routing has the simplicity and robustness of
flooding, with far less traffic load.
• A node selects only one outgoing path to forward the
incoming packet
—The outgoing link can be selected at random, excluding the
link on which the packet arrived.
• A refinement is to select outgoing path based on
probability calculation
• Like flooding, no network info needed
• Disadvantage: route is typically not least-cost nor
minimum-hop
1515
15 15 tohttps://github.com/syaifulahdan/ 15
Adaptive Routing
• Routing decisions change as conditions on the
network change
—Failure: node or link fails
—Congestion: a portion of the network is heavily congested
• Requires info about the state of the network
• Drawbacks, compared to fixed routing
—Routing decision is more complex; the processing burden on
nodes increases
—A tradeoff between quality of network info and the cost of
updating such info
• Advantages
—Improved performance
—Can aid in congestion control, because an adaptive routing
strategy tends to balance loads.
1616
16 16 tohttps://github.com/syaifulahdan/ 16
Least Cost Algorithms
• Virtually all packet-switching networks base their
routing decisions on some form of lest-cost criterion.
—Can minimize hop with each link cost 1
—Can have link value inversely proportional to capacity
• Least-cost routing problem
—Given a network of nodes connected by bi-directional links,
where each link has a cost associated with it in each
direction, define the cost of a path between two nodes as
the sum of costs of links traversed. For each pair of nodes,
find a path with the least cost.
• Two common algorithms
—Dijkstra’s algorithm
—Bellman-Ford algorithm
1717
17 17 tohttps://github.com/syaifulahdan/ 17
Dijkstra’s Algorithm Definitions
• Find the shortest paths from a single source node to all other
nodes, by developing paths in order of increasing path length
• N = set of nodes in the network
• s = source node
• T = set of nodes so far incorporated by the algorithm (its least-
cost path to s is finalized)
• w(i, j) =link cost from node i to node j
— w(i, i) = 0
— w(i, j) =  if the two nodes are not directly connected
— w(i, j)  0 if the two nodes are directly connected
• L(n) = cost of the least-cost path from node s to node n that is
currently known to the algorithm
— At termination, L(n) is cost of the least-cost path from s to n
— Initially, all L(n) are 
1818
18 18 tohttps://github.com/syaifulahdan/ 18
Dijkstra’s Algorithm Method
• Step 1 [Initialization]
—T = {s}: the set of nodes so far incorporated consists of only
the source node
—L(n) = w(s, n) for n ≠ s: the initial path costs to
neighboring nodes are simply the link costs
• Step 2 [Get Next Node]
—Find the neighboring node not in T with the least-cost path
from s (smallest L(n) )
—Incorporate that node into T
—Also incorporate the edge that is incident on that node and
a node in T that contributes to the path
• Step 3 [Update Least-Cost Paths]
—L(n) = min[L(n), L(x) + w(x, n)] for all n Ï T
—If the latter term is smaller, the path from s to n is now
updated as the path from s to x extended with the edge
from x to n
1919
19 19 tohttps://github.com/syaifulahdan/ 19
Dijkstra’s Algorithm Notes
• Terminate when all nodes have been added
to T
• At termination, value L(n) associated with
each node n is the cost of least-cost path
from s to n.
• In addition, algorithm defines the least-cost
path from s to each other node
• One iteration of steps 2 and 3 adds one new
node to T, and defines the least-cost path
from s to that node
2020
20 20 tohttps://github.com/syaifulahdan/ 20
Example of Dijkstra’s Algorithm
2121
21 21 tohttps://github.com/syaifulahdan/ 21
Example of Dijkstra’s
Algorithm
S = 1
2222
22 22 tohttps://github.com/syaifulahdan/ 22
Bellman-Ford Algorithm
Definitions
• Find the least-cost paths from a given source node
subject to constraint that the paths contain at most
one link, then find the shortest paths with a
constraint of paths of at most two links, and so on.
• Finally, this algorithm returns the least-cost paths
between any pairs of nodes.
• s = source node
• w(i, j) = link cost from node i to node j
—w(i, i) = 0
—w(i, j) =  if the two nodes are not directly connected
—w(i, j)  0 if the two nodes are directly connected
• h = maximum number of links in a path at the
current stage of the algorithm
• Lh(n) = cost of the least-cost path from s to n under
the constraint of no more than h links
2323
23 23 tohttps://github.com/syaifulahdan/ 23
Bellman-Ford Algorithm Method
• Step 1 [Initialization]
—L0(n) =  , for all n  s
—Lh(s) = 0, for all h
• Step 2 [Update]
—For each successive h  0
• For each n ≠ s, compute
Lh+1(n)=min{ Lh(n), minj[Lh(j)+w(j,n)] }
• It means “the least-cost path from s to n of length h+1
is the least-cost path of length h, or it is actually a
length h+1 path, and before it reaches n, it passes
through j”
2424
24 24 tohttps://github.com/syaifulahdan/ 24
Example of Bellman-Ford
Algorithm
2525
25 25 tohttps://github.com/syaifulahdan/ 25
Example of Bellman-Ford
Algorithm
S = 1
2626
26 26 tohttps://github.com/syaifulahdan/ 26
Comparison
• What information needs to be gathered?
• Bellman-ford
—Each node can maintain a set of costs and
associated paths for every other node and
exchange this information with its direct neighbors
from time to time
—Each node can update its costs and paths using
only the information from its neighbors and
knowledge of its link costs.
• Dijkstra’s algorithm
—Each node must have complete topological
information about the network

More Related Content

What's hot

aloha
alohaaloha
aloha
DeepikaT13
 
Network Layer
Network LayerNetwork Layer
Network Layer
Dr Shashikant Athawale
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
Kruti Niranjan
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
sonangrai
 
Multicastingand multicast routing protocols
Multicastingand multicast routing protocolsMulticastingand multicast routing protocols
Multicastingand multicast routing protocols
Iffat Anjum
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
Aditya Rawat
 
Unit 3 Network Layer PPT
Unit 3 Network Layer PPTUnit 3 Network Layer PPT
Unit 3 Network Layer PPT
KalpanaC14
 
Switching
Switching Switching
Switching
Abid Ali
 
Congestion Control
Congestion ControlCongestion Control
Congestion Control
VaishnaviVaishnavi17
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Data link layer
Data link layer Data link layer
Data link layer
Mukesh Chinta
 
Routing in Mobile Ad hoc Networks
Routing in Mobile Ad hoc NetworksRouting in Mobile Ad hoc Networks
Routing in Mobile Ad hoc Networks
Sayed Chhattan Shah
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
Parameswaran Selvakumar
 
MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROL
junnubabu
 
Network Layer
Network LayerNetwork Layer
Network Layer
reshmadayma
 
Presentation on arp protocol
Presentation on arp protocolPresentation on arp protocol
Presentation on arp protocol
Mohd. Ahmad Siddiqi
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
NetProtocol Xpert
 

What's hot (20)

Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
aloha
alohaaloha
aloha
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
 
Multicastingand multicast routing protocols
Multicastingand multicast routing protocolsMulticastingand multicast routing protocols
Multicastingand multicast routing protocols
 
Packet switching
Packet switchingPacket switching
Packet switching
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
message passing
 message passing message passing
message passing
 
Unit 3 Network Layer PPT
Unit 3 Network Layer PPTUnit 3 Network Layer PPT
Unit 3 Network Layer PPT
 
Switching
Switching Switching
Switching
 
Congestion Control
Congestion ControlCongestion Control
Congestion Control
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Data link layer
Data link layer Data link layer
Data link layer
 
Routing in Mobile Ad hoc Networks
Routing in Mobile Ad hoc NetworksRouting in Mobile Ad hoc Networks
Routing in Mobile Ad hoc Networks
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROL
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Presentation on arp protocol
Presentation on arp protocolPresentation on arp protocol
Presentation on arp protocol
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 

Similar to Dc ch11 : routing in switched networks

routing 23.pptx
routing 23.pptxrouting 23.pptx
routing 23.pptx
zulhelmanz
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram Snehi
MR. VIKRAM SNEHI
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
Mohsin Ali
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
anushaj46
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switching
Syaiful Ahdan
 
Network layer
Network layerNetwork layer
Network layer
TharuniDiddekunta
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
HODElex
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptx
satvikpatil5
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
HODElex
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Mugabo4
 
24-ad-hoc.ppt
24-ad-hoc.ppt24-ad-hoc.ppt
24-ad-hoc.ppt
sumadi26
 
L22.ppt
L22.pptL22.ppt
L22.ppt
raaed5
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
JAIGANESH SEKAR
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
Ramya Nellutla
 
Chapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptxChapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptx
GirT2
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithm
Roshan Karunarathna
 
Routing Protocols
Routing ProtocolsRouting Protocols
DCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCPDCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCP
Sreedhar Chowdam
 

Similar to Dc ch11 : routing in switched networks (20)

routing 23.pptx
routing 23.pptxrouting 23.pptx
routing 23.pptx
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram Snehi
 
11 routing
11 routing11 routing
11 routing
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
 
12 routing
12 routing12 routing
12 routing
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switching
 
Network layer
Network layerNetwork layer
Network layer
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptx
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 
24-ad-hoc.ppt
24-ad-hoc.ppt24-ad-hoc.ppt
24-ad-hoc.ppt
 
L22.ppt
L22.pptL22.ppt
L22.ppt
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
 
Chapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptxChapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptx
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithm
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
DCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCPDCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCP
 

More from Syaiful Ahdan

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391
Syaiful Ahdan
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
Syaiful Ahdan
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774
Syaiful Ahdan
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775
Syaiful Ahdan
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078
Syaiful Ahdan
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723
Syaiful Ahdan
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523
Syaiful Ahdan
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309
Syaiful Ahdan
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149
Syaiful Ahdan
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868
Syaiful Ahdan
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343
Syaiful Ahdan
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755
Syaiful Ahdan
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196
Syaiful Ahdan
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484
Syaiful Ahdan
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352
Syaiful Ahdan
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994
Syaiful Ahdan
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895
Syaiful Ahdan
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administrator
Syaiful Ahdan
 
Pertemuan 5
Pertemuan 5Pertemuan 5
Pertemuan 5
Syaiful Ahdan
 
Pertemuan 4
Pertemuan 4Pertemuan 4
Pertemuan 4
Syaiful Ahdan
 

More from Syaiful Ahdan (20)

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administrator
 
Pertemuan 5
Pertemuan 5Pertemuan 5
Pertemuan 5
 
Pertemuan 4
Pertemuan 4Pertemuan 4
Pertemuan 4
 

Recently uploaded

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 

Dc ch11 : routing in switched networks

  • 1. 1 1 1 1 tohttps://github.com/syaifulahdan/ DATA COMMUNICATION Routing in Switched Networks Data Communications and Networking  Routing in Packet-Switching Network  Performance Criteria  Example Network Configuration  Decision Time and Place  Network Information Source and Update Timing  Routing Strategies  Fixed Routing  Fixed Routing Tables  Flooding  Random Routing  Adaptive Routing Reading: Book Chapter 11 Data and Computer Communications, 8th edition By William Stallings  Least Cost Algorithms  Dijkstra's Algorithm  Belman Ford Algorithm
  • 2. Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition By William Stallings
  • 3. 3 3 3 3 tohttps://github.com/syaifulahdan/ 3 Routing in Packet-Switching Network • Recall the function of a packet-switching network — To accept packets from a source station and deliver them to a destination station. • To accomplish this, a path or route through the network must be determined. • In general terms, routing seeks to design routes through the network for individual pairs of communicating end nodes such that the network is used efficiently. — Routing is one of the most complex and crucial design aspects of switched data networks. • Required characteristics of routing function: — Correctness — Simplicity — Robustness: the ability to deliver packets via some route in the face of localized failures and overloads — Stability — Fairness — Optimality — Efficiency: routing involves processing overhead & transmission overhead
  • 4. 4 4 4 4 tohttps://github.com/syaifulahdan/ 4 Performance Criteria • The selection of a route is generally based on some performance criterion. • The simplest criterion: —Minimum-hop (the least number of nodes) • A generalization of minimum-hop criterion: —Least-cost routing: a cost is associated with each link • E.g., in minimum-hop, each link has a cost of 1 • The route that accumulates the least cost is sought.
  • 5. 5 5 5 5 tohttps://github.com/syaifulahdan/ 5 Example Network Configuration Least-cost path from node 1 to 6
  • 6. 6 6 6 6 tohttps://github.com/syaifulahdan/ 6 Decision Time and Place • Two characteristics of routing decision: — Time and place that the decision is made • Decision time — Datagram: a routing decision is made individually for each packet — Virtual circuit: a routing decision is made at the time the virtual circuit is established • Decision place: which node or nodes are responsible for the routing decision? — Distributed routing • Each node has the responsibility of selecting an output link for routing packets as they arrive — Centralized routing • Decision is made by some designated node — Source routing • Decision is made by the source station
  • 7. 7 7 7 7 tohttps://github.com/syaifulahdan/ 7 Network Information Source and Update Timing • Routing decisions usually are based on knowledge of network (not always): topology, traffic load, link cost • Distributed routing —Nodes use local knowledge —May collect info from adjacent (directly connected) nodes —May collect info from all nodes on any potential route of interest • Centralized routing —Collect info from all nodes • Timing for node information update —Fixed strategy – the info is never updated —Adaptive strategy – the info is regularly updated
  • 8. 8 8 8 8 tohttps://github.com/syaifulahdan/ 8 Routing Strategies • Many routing strategies have evolved in packet-switching networks. Four of them will be introduced here: —Fixed routing —Flooding —Random routing —Adaptive routing
  • 9. 9 9 9 9 tohttps://github.com/syaifulahdan/ 9 Fixed Routing • A single, permanent route is configured for each source-destination (s-d) pair of nodes in the network. —Determine routes using any least-cost algorithm —The link costs could be based on expected traffic or capacity. • Routes are fixed, or at least only change when there is a change in network topology. • A central routing directory (table) is created, which shows for each s-d pair of nodes, the identity of the next node on the route.
  • 10. 1010 10 10 tohttps://github.com/syaifulahdan/ 10 Fixed Routing Tables Using the figure on Slide 4. It is not necessary to store the complete central routing directory for each pair of nodes.
  • 11. 1111 11 11 tohttps://github.com/syaifulahdan/ 11 Flooding • Flooding requires no network info. • A packet is sent by a source node to every neighbor. • At each node, an incoming packet is forwarded to all outgoing links except the incoming link. • Eventually a number of copies will arrive at destination. • Each packet is uniquely numbered so duplicates can be discarded. • Nodes can remember the identity of those packets it has already retransmitted. • Another technique: include a hop count field with each packet. Each time a node passes on a packet, it decrements the hop count by one. When the count reaches zero, the packet is discarded. — The hop count is sometimes called “time-to-live” (TTL) — Recall that TTL is also used in IP header which has nothing to do with flooding!
  • 12. 1212 12 12 tohttps://github.com/syaifulahdan/ 12 Flooding Example The TTL value decreases by one after each hop.
  • 13. 1313 13 13 tohttps://github.com/syaifulahdan/ 13 Properties of Flooding • All possible routes are tried —A packet will always get through if at least one path between source and destination exists. • At least one copy of the packet will have taken the minimum-hop-count route —Can be used to set up the virtual circuit • All nodes that are directly or indirectly connected to the source node are visited. —Useful to broadcast information (e.g. routing information) • Disadvantage: high traffic load
  • 14. 1414 14 14 tohttps://github.com/syaifulahdan/ 14 Random Routing • Random routing has the simplicity and robustness of flooding, with far less traffic load. • A node selects only one outgoing path to forward the incoming packet —The outgoing link can be selected at random, excluding the link on which the packet arrived. • A refinement is to select outgoing path based on probability calculation • Like flooding, no network info needed • Disadvantage: route is typically not least-cost nor minimum-hop
  • 15. 1515 15 15 tohttps://github.com/syaifulahdan/ 15 Adaptive Routing • Routing decisions change as conditions on the network change —Failure: node or link fails —Congestion: a portion of the network is heavily congested • Requires info about the state of the network • Drawbacks, compared to fixed routing —Routing decision is more complex; the processing burden on nodes increases —A tradeoff between quality of network info and the cost of updating such info • Advantages —Improved performance —Can aid in congestion control, because an adaptive routing strategy tends to balance loads.
  • 16. 1616 16 16 tohttps://github.com/syaifulahdan/ 16 Least Cost Algorithms • Virtually all packet-switching networks base their routing decisions on some form of lest-cost criterion. —Can minimize hop with each link cost 1 —Can have link value inversely proportional to capacity • Least-cost routing problem —Given a network of nodes connected by bi-directional links, where each link has a cost associated with it in each direction, define the cost of a path between two nodes as the sum of costs of links traversed. For each pair of nodes, find a path with the least cost. • Two common algorithms —Dijkstra’s algorithm —Bellman-Ford algorithm
  • 17. 1717 17 17 tohttps://github.com/syaifulahdan/ 17 Dijkstra’s Algorithm Definitions • Find the shortest paths from a single source node to all other nodes, by developing paths in order of increasing path length • N = set of nodes in the network • s = source node • T = set of nodes so far incorporated by the algorithm (its least- cost path to s is finalized) • w(i, j) =link cost from node i to node j — w(i, i) = 0 — w(i, j) =  if the two nodes are not directly connected — w(i, j)  0 if the two nodes are directly connected • L(n) = cost of the least-cost path from node s to node n that is currently known to the algorithm — At termination, L(n) is cost of the least-cost path from s to n — Initially, all L(n) are 
  • 18. 1818 18 18 tohttps://github.com/syaifulahdan/ 18 Dijkstra’s Algorithm Method • Step 1 [Initialization] —T = {s}: the set of nodes so far incorporated consists of only the source node —L(n) = w(s, n) for n ≠ s: the initial path costs to neighboring nodes are simply the link costs • Step 2 [Get Next Node] —Find the neighboring node not in T with the least-cost path from s (smallest L(n) ) —Incorporate that node into T —Also incorporate the edge that is incident on that node and a node in T that contributes to the path • Step 3 [Update Least-Cost Paths] —L(n) = min[L(n), L(x) + w(x, n)] for all n Ï T —If the latter term is smaller, the path from s to n is now updated as the path from s to x extended with the edge from x to n
  • 19. 1919 19 19 tohttps://github.com/syaifulahdan/ 19 Dijkstra’s Algorithm Notes • Terminate when all nodes have been added to T • At termination, value L(n) associated with each node n is the cost of least-cost path from s to n. • In addition, algorithm defines the least-cost path from s to each other node • One iteration of steps 2 and 3 adds one new node to T, and defines the least-cost path from s to that node
  • 20. 2020 20 20 tohttps://github.com/syaifulahdan/ 20 Example of Dijkstra’s Algorithm
  • 21. 2121 21 21 tohttps://github.com/syaifulahdan/ 21 Example of Dijkstra’s Algorithm S = 1
  • 22. 2222 22 22 tohttps://github.com/syaifulahdan/ 22 Bellman-Ford Algorithm Definitions • Find the least-cost paths from a given source node subject to constraint that the paths contain at most one link, then find the shortest paths with a constraint of paths of at most two links, and so on. • Finally, this algorithm returns the least-cost paths between any pairs of nodes. • s = source node • w(i, j) = link cost from node i to node j —w(i, i) = 0 —w(i, j) =  if the two nodes are not directly connected —w(i, j)  0 if the two nodes are directly connected • h = maximum number of links in a path at the current stage of the algorithm • Lh(n) = cost of the least-cost path from s to n under the constraint of no more than h links
  • 23. 2323 23 23 tohttps://github.com/syaifulahdan/ 23 Bellman-Ford Algorithm Method • Step 1 [Initialization] —L0(n) =  , for all n  s —Lh(s) = 0, for all h • Step 2 [Update] —For each successive h  0 • For each n ≠ s, compute Lh+1(n)=min{ Lh(n), minj[Lh(j)+w(j,n)] } • It means “the least-cost path from s to n of length h+1 is the least-cost path of length h, or it is actually a length h+1 path, and before it reaches n, it passes through j”
  • 24. 2424 24 24 tohttps://github.com/syaifulahdan/ 24 Example of Bellman-Ford Algorithm
  • 25. 2525 25 25 tohttps://github.com/syaifulahdan/ 25 Example of Bellman-Ford Algorithm S = 1
  • 26. 2626 26 26 tohttps://github.com/syaifulahdan/ 26 Comparison • What information needs to be gathered? • Bellman-ford —Each node can maintain a set of costs and associated paths for every other node and exchange this information with its direct neighbors from time to time —Each node can update its costs and paths using only the information from its neighbors and knowledge of its link costs. • Dijkstra’s algorithm —Each node must have complete topological information about the network