SlideShare a Scribd company logo
1 of 43
Computer Networks: Routing 1
Network Layer
Routing
Computer Networks: Routing 2
Network Layer
โ€ข Concerned with getting packets from source to
destination.
โ€ข The network layer must know the topology of the
subnet and choose appropriate paths through it.
โ€ข When source and destination are in different
networks, the network layer (IP) must deal with
these differences.
* Key issue: what service does the network layer
provide to the transport layer (connection-
oriented or connectionless).
Computer Networks: Routing 3
Network Layer Design Goals
1. The services provided by the network layer
should be independent of the subnet topology.
2. The Transport Layer should be shielded from the
number, type and topology of the subnets
present.
3. The network addresses available to the
Transport Layer should use a uniform
numbering plan (even across LANs and WANs).
Computer Networks: Routing 4
Figure 7.2
Physical
layer
Data link
layer
Physical
layer
Data link
layer
End system
a
Network
layer
Physical
layer
Data link
layer
Physical
layer
Data link
layer
Transport
layer
Transport
layer
Messages
Messages
Segments
End system
b
Network
service
Network
service
Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
Network
layer
Network
layer
Network
layer
Computer Networks: Routing 5
Application
Transport
Internet
Network
Interface
Application
Transport
Internet
Internet
Network 1 Network 2
Machine A Machine B
Router/Gateway
Network
Interface
Network
Interface
Figure 8.3
Computer Networks: Routing 6
R
R
R
R
S
S
S
s
s
s
s
s
s
s
s
s
s
R
s
R
Backbone
To internet or
wide area
network
Organization
Servers
Gateway
Departmental
Server
Figure 7.6
Copyright ยฉ2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks
Metropolitan Area
Network (MAN)
Computer Networks: Routing 7
Interdomain level
Intradomain level
LAN level
Autonomous system
or domain
Border routers
Border routers
Figure 7.7
Internet service
provider
Copyright ยฉ2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks
Wide Area Network
(WAN)
Computer Networks: Routing 8
RA
RB
RC
Route
server
NAP
National service provider A
National service provider B
National service provider C
LAN
NAP
NAP
(a)
(b)
Figure 7.8
Copyright ยฉ2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks
National ISPs
Network Access
Point
Computer Networks: Routing 9
Packet 2
Packet 1
Packet 1
Packet 2
Packet 2
Figure 7.15
Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
Computer Networks: Routing 10
Destination
address
Output
port
1345 12
2458
7
0785
6
12
1566
Figure 7.16
Copyright ยฉ2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks
Computer Networks: Routing 11
Packet
Packet
Figure 7.17
Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
Computer Networks: Routing 12
Identifier Output
port
15 15
58
13
13
7
27
12
Next
identifier
44
23
16
34
Entry for packets
with identifier 15
Figure 7.21
Copyright ยฉ2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks
Computer Networks: Routing 13
Routing
Routing algorithm:: that part of the Network
Layer responsible for deciding on which
output line to transmit an incoming packet.
Remember: For virtual circuit subnets the
routing decision is made ONLY at set up.
Algorithm properties:: correctness, simplicity,
robustness, stability, fairness, optimality, and
scalability.
Computer Networks: Routing 14
Routing Classification
Adaptive Routing
โ€ข based on current measurements
of traffic and/or topology.
1. centralized
2. isolated
3. distributed
Non-Adaptive Routing
โ€ข routing computed in advance
and off-line
1. flooding
2. static routing
using shortest path
algorithms
Computer Networks: Routing 15
Flooding
โ€ข Pure flooding :: every incoming packet to a
node is sent out on every outgoing line.
โ€“ Obvious adjustment โ€“ do not send out on
arriving link (assuming full-duplex links).
โ€“ The routing algorithm can use a hop counter
(e.g., TTL) to dampen the flooding.
โ€“ Selective flooding :: only send on those lines
going โ€œapproximatelyโ€ in the right direction.
Computer Networks: Routing 16
Shortest Path Routing
1. Bellman-Ford Algorithm [Distance Vector]
2. Dijkstraโ€™s Algorithm [Link State]
What does it mean to be the shortest (or optimal)
route?
Choices:
a. Minimize the number of hops along the path.
b. Minimize mean packet delay.
c. Maximize the network throughput.
Computer Networks: Routing 17
Possible Metrics
โ€ข Set all link costs to 1.
โ€“ Shortest hop routing.
โ€“ Disregards delay and capacity differences on
links!
{Original ARPANET}
โ€ข Measure the number of packets queued to
be transmitted on each link.
โ€“ Did not work well.
Computer Networks: Routing 18
Metrics
{Second ARPANET}
โ€ข Timestamp each arriving packet with its
ArrivalTime and record DepartTime* and use
link-level ACK to compute:
Delay = (DepartTime โ€“ ArrivalTime) +
TransmissionTime + Latency
โ€ข The weight assigned to each link was average
delay over โ€˜recentโ€™ packets sent.
โ€ข This algorithm tended to oscillate โ€“ leading to
idle periods and instability.
* Reset after retransmission
Computer Networks: Routing 19
Metrics
{Revised ARPANET}
โ€“ Compress dynamic range of the metric to
account for link type
โ€“ Smooth the variation of metric with time:
โ€ข Delay transformed into link utilization
โ€ข Utilization was then averaged with last reported
utilization to deal with spikes.
โ€ข Set a hard limit on how much the metric could
change per measurement cycle.
Computer Networks: Routing 20
Dijkstraโ€™s Shortest Path Algorithm
Initially mark all nodes (except source) with infinite distance.
working node = source node
Sink node = destination node
While the working node is not equal to the sink
1. Mark the working node as permanent.
2. Examine all adjacent nodes in turn
If the sum of label on working node plus distance from working node to adjacent
node is less than current labeled distance on the adjacent node, this implies a
shorter path. Relabel the distance on the adjacent node and label it with the node
from which the probe was made.
3. Examine all tentative nodes (not just adjacent nodes) and
mark the node with the smallest labeled value as permanent.
This node becomes the new working node.
Reconstruct the path backwards from sink to source.
Computer Networks: Routing 21
Internetwork Routing [Halsall]
Adaptive Routing
Centralized Distributed
Intradomain routing Interdomain routing
Distance Vector routing Link State routing
[IGP] [EGP]
[BGP,IDRP]
[OSPF,IS-IS,PNNI]
[RIP]
[RCC]
Interior
Gateway Protocols
Exterior
Gateway Protocols
Isolated
Computer Networks: Routing 22
Adaptive Routing
Design Issues:
1. How much overhead is incurred due to
gathering the routing information and
sending routing packets?
2. What is the time frame (i.e, the frequency)
for sending routing packets in support of
adaptive routing?
3. What is the complexity of the routing
strategy?
Computer Networks: Routing 23
Adaptive Routing
Basic functions:
1. Measurement of pertinent network data.
2. Forwarding of information to where the
routing computation will be done.
3. Compute the routing tables.
4. Convert the routing table information into
a routing decision and then dispatch
the data packet.
Centralized Routing
RCC
Computer Networks: Routing 25
Distance Vector Routing
โ€ข Historically known as the old ARPANET routing
algorithm {or known as Bellman-Ford
algorithm}.
Basic idea: each network node maintains a Distance
Vector table containing the distance between
itself and ALL possible destination nodes.
โ€ข Distances are based on a chosen metric and are
computed using information from the neighborsโ€™
distance vectors.
Metric: usually hops or delay
Computer Networks: Routing 26
Distance Vector Routing
Information kept by DV router
1. each router has an ID
2. associated with each link connected to a router,
there is a link cost (static or dynamic).
Distance Vector Table Initialization
Distance to itself = 0
Distance to ALL other routers = infinity number
Computer Networks: Routing 27
Distance Vector Algorithm
[Perlman]
1. A router transmits its distance vector to each of its
neighbors in a routing packet.
2. Each router receives and saves the most recently
received distance vector from each of its
neighbors.
3. A router recalculates its distance vector when:
a. It receives a distance vector from a neighbor containing
different information than before.
b. It discovers that a link to a neighbor has gone down (i.e., a
topology change).
The DV calculation is based on minimizing the cost
to each destination.
Computer Networks: Routing 28
Distance Vector Routing
Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the
new routing table for J.
Computer Networks: Routing 29
Routing Information Protocol
(RIP)
โ€ข RIP had widespread use because it was distributed
with BSD Unix in โ€œroutedโ€, a router management
daemon.
โ€ข RIP is the most used Distance Vector protocol.
โ€ข RFC1058 in June 1988.
โ€ข Sends packets every 30 seconds or faster.
โ€ข Runs over UDP.
โ€ข Metric = hop count
โ€ข BIG problem is max. hop count =16
๏ƒจ RIP limited to running on small networks!!
โ€ข Upgraded to RIPv2
Computer Networks: Routing 30
Figure 4.17 RIP Packet Format
Address of net 2
Distance to net 2
Command Must be zero
Family of net 2 Address of net 2
Family of net 1 Address of net 1
Address of net 1
Distance to net 1
Version
0 8 16 31
(network_address,
distance)
pairs
P&D slide
Computer Networks: Routing 31
Link State Algorithm
1. Each router is responsible for meeting its neighbors
and learning their names.
2. Each router constructs a link state packet (LSP) which
consists of a list of names and cost to reach each of its
neighbors.
3. The LSP is transmitted to ALL other routers. Each
router stores the most recently generated LSP from
each other router.
4. Each router uses complete information on the network
topology to compute the shortest path route to
each destination node.
Computer Networks: Routing 32
Figure 4.18 Reliable LSP Flooding
(a)
X A
C B D
(b)
X A
C B D
(c)
X A
C B D
(d)
X A
C B D
P&D slide
Computer Networks: Routing 33
Reliable Flooding
โ€ข The process of making sure all the nodes
participating in the routing protocol get a copy of
the link-state information from all the other
nodes.
โ€ข LSP contains:
โ€“ Sending routerโ€™s node ID
โ€“ List of connected neighbors with the
associated link cost to each neighbor
โ€“ Sequence number
โ€“ Time-to-live (TTL)
Computer Networks: Routing 34
Reliable Flooding
โ€ข First two items enable route calculation
โ€ข Last two items make process reliable
โ€“ ACKs and checking for duplicates is needed.
โ€ข Periodic Hello packets used to determine
the demise of a neighbor.
โ€ข The sequence numbers are not expected to
wrap around.
โ€“ ๏ƒจthis field needs to be large (64 bits)
Computer Networks: Routing 35
Open Shortest Path First
(OSPF)
โ€ข Provides for authentication of routing
messages.
โ€“ 8-byte password designed to avoid
misconfiguration.
โ€ข Provides additional hierarchy
โ€“ Domains are partitioned into areas.
โ€“ This reduces the amount of information
transmitted in packet.
โ€ข Provides load-balancing via multiple routes.
Computer Networks: Routing 36
Open Shortest Path First
(OSPF)
Area 1
Area 0
Area 3
Area 2
R9
R8
R7
R1
R5
R6
R4
R3
R2
Figure 4.32 A Domain divided into Areas
P&D slide
Backbone
area
Computer Networks: Routing 37
Open Shortest Path First
(OSPF)
โ€ข OSPF runs on top of IP, i.e., an OSPF packet is
transmitted with IP data packet header.
โ€ข Uses Level 1 and Level 2 routers
โ€ข Has: backbone routers, area border routers, and
AS boundary routers
โ€ข LSPs referred to as LSAs (Link State
Advertisements)
โ€ข Complex algorithm due to five distinct LSA
types.
Computer Networks: Routing 38
OSPF Terminology
Internal router :: a level 1 router.
Backbone router :: a level 2 router.
Area border router (ABR) :: a backbone router
that attaches to more than one area.
AS border router :: (an interdomain router),
namely, a router that attaches to routers
from other ASs across AS boundaries.
Computer Networks: Routing 39
OSPF LSA Types
1. Router link advertisement [Hello message]
2. Network link advertisement
3. Network summary link advertisement
4. AS border routerโ€™s summary link
advertisement
5. AS external link advertisement
Computer Networks: Routing 40
Figure 4.21 OSF Type 1 Link-State
Advertisement
LS Age Options Type=1
0 Flags 0 Number of links
Link type Num_TOS Metric
Link-state ID
Advertising router
LS sequence number
Link ID
Link data
Optional TOS information
More links
LS checksum Length
P&D slide
Indicates
LSA type
Indicates
link cost
Computer Networks: Routing 41
Area 0.0.0.1
Area 0.0.0.2
Area 0.0.0.3
R1
R2
R3
R4
R5
R6 R7
R8
N1
N2
N3
N4
N5
N6
N7
To another AS
Area 0.0.0.0
R = router
N = network
Figure 8.33
Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
OSPF Areas
[AS Border router]
ABR
Computer Networks: Routing 42
OSPF
Figure 5-65.The relation between ASes, backbones,
and areas in OSPF. Tanenbaum slide
Computer Networks: Routing 43
Border Gateway Protocol
(BGP)
โ€ข The replacement for EGP is BGP. Current version
is BGP-4.
โ€ข BGP assumes the Internet is an arbitrary
interconnected set of ASโ€™s.
โ€ข In interdomain routing the goal is to find ANY
path to the intended destination that is loop-free.
The protocols are more concerned with
reachability than optimality.

More Related Content

Similar to destination. The network layer must know the topology of the subnet and choose appropriate paths through it. When source and destination are in different networks, the network layer (IP) must deal with these differences

B21DA0201_03.ppt
B21DA0201_03.pptB21DA0201_03.ppt
B21DA0201_03.pptDrPreethiD1
ย 
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdfmrcopyxerox
ย 
IP Routing.pptx
IP Routing.pptxIP Routing.pptx
IP Routing.pptxssuser957b41
ย 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptxsazia7
ย 
Module_3_Part_3.pptx
Module_3_Part_3.pptxModule_3_Part_3.pptx
Module_3_Part_3.pptxKPDDRAVIDIAN
ย 
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdfsadoyah492
ย 
DSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptDSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptMunnakumar518378
ย 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmTechStudent1
ย 
Chapter_6_ Network Layer.pptx
Chapter_6_ Network Layer.pptxChapter_6_ Network Layer.pptx
Chapter_6_ Network Layer.pptxduotchol
ย 
ch5-network.ppt
ch5-network.pptch5-network.ppt
ch5-network.pptJohnColaco1
ย 
computerNetworkSecurity.ppt
computerNetworkSecurity.pptcomputerNetworkSecurity.ppt
computerNetworkSecurity.pptChandrasekharBehera16
ย 
210202021018701 suratNetworkSecurity.ppt
210202021018701 suratNetworkSecurity.ppt210202021018701 suratNetworkSecurity.ppt
210202021018701 suratNetworkSecurity.pptjayvagasiya136
ย 
CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II pkaviya
ย 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsHarsh Mehta
ย 
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...IRJET Journal
ย 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questionsSrikanth
ย 
BIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptBIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptAmanyaLaban
ย 
Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Alan Mark
ย 
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 pptanushaj46
ย 

Similar to destination. The network layer must know the topology of the subnet and choose appropriate paths through it. When source and destination are in different networks, the network layer (IP) must deal with these differences (20)

B21DA0201_03.ppt
B21DA0201_03.pptB21DA0201_03.ppt
B21DA0201_03.ppt
ย 
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
ย 
IP Routing.pptx
IP Routing.pptxIP Routing.pptx
IP Routing.pptx
ย 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptx
ย 
Module_3_Part_3.pptx
Module_3_Part_3.pptxModule_3_Part_3.pptx
Module_3_Part_3.pptx
ย 
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
ย 
DSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.pptDSR,LSR,IGMP,RIP,OSPF.ppt
DSR,LSR,IGMP,RIP,OSPF.ppt
ย 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
ย 
Chapter_6_ Network Layer.pptx
Chapter_6_ Network Layer.pptxChapter_6_ Network Layer.pptx
Chapter_6_ Network Layer.pptx
ย 
ch5-network.ppt
ch5-network.pptch5-network.ppt
ch5-network.ppt
ย 
computerNetworkSecurity.ppt
computerNetworkSecurity.pptcomputerNetworkSecurity.ppt
computerNetworkSecurity.ppt
ย 
210202021018701 suratNetworkSecurity.ppt
210202021018701 suratNetworkSecurity.ppt210202021018701 suratNetworkSecurity.ppt
210202021018701 suratNetworkSecurity.ppt
ย 
CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II
ย 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
ย 
ccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answersccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answers
ย 
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
Understanding Network Routing Problem and Study of Routing Algorithms and Heu...
ย 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questions
ย 
BIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptBIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.ppt
ย 
Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)
ย 
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
ย 

More from Ashish Gupta

independent of the subnet topology. The Transport Layer should be shielded fr...
independent of the subnet topology. The Transport Layer should be shielded fr...independent of the subnet topology. The Transport Layer should be shielded fr...
independent of the subnet topology. The Transport Layer should be shielded fr...Ashish Gupta
ย 
Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet
Link state Distance Vector Hierarchical routing 4.6 Routing in the InternetLink state Distance Vector Hierarchical routing 4.6 Routing in the Internet
Link state Distance Vector Hierarchical routing 4.6 Routing in the InternetAshish Gupta
ย 
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6Ashish Gupta
ย 
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...Ashish Gupta
ย 
Layer should be shielded from the number, type and topology of the subnets pr...
Layer should be shielded from the number, type and topology of the subnets pr...Layer should be shielded from the number, type and topology of the subnets pr...
Layer should be shielded from the number, type and topology of the subnets pr...Ashish Gupta
ย 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...Ashish Gupta
ย 
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...Ashish Gupta
ย 
services: network layer service models forwarding versus routing how a router...
services: network layer service models forwarding versus routing how a router...services: network layer service models forwarding versus routing how a router...
services: network layer service models forwarding versus routing how a router...Ashish Gupta
ย 
on sending side encapsulates segments into datagrams on rcving side, deliver...
on sending side encapsulates segments into datagrams  on rcving side, deliver...on sending side encapsulates segments into datagrams  on rcving side, deliver...
on sending side encapsulates segments into datagrams on rcving side, deliver...Ashish Gupta
ย 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...Ashish Gupta
ย 
understand principles behind network layer services: network layer service mo...
understand principles behind network layer services: network layer service mo...understand principles behind network layer services: network layer service mo...
understand principles behind network layer services: network layer service mo...Ashish Gupta
ย 
Presentation1.Machine learning, Supervised, semi supervised learning, cluste...
Presentation1.Machine learning,Supervised, semi supervised learning, cluste...Presentation1.Machine learning,Supervised, semi supervised learning, cluste...
Presentation1.Machine learning, Supervised, semi supervised learning, cluste...Ashish Gupta
ย 
packets between same source-dest pair may take different paths
packets between same source-dest pair may take different pathspackets between same source-dest pair may take different paths
packets between same source-dest pair may take different pathsAshish Gupta
ย 
on sending side encapsulates segments into datagrams
on sending side encapsulates segments into datagramson sending side encapsulates segments into datagrams
on sending side encapsulates segments into datagramsAshish Gupta
ย 
The services provided by the network layer should be independent of the subne...
The services provided by the network layer should be independent of the subne...The services provided by the network layer should be independent of the subne...
The services provided by the network layer should be independent of the subne...Ashish Gupta
ย 
yturi900.pptx
yturi900.pptxyturi900.pptx
yturi900.pptxAshish Gupta
ย 
interpolation-170509191157.pdf
interpolation-170509191157.pdfinterpolation-170509191157.pdf
interpolation-170509191157.pdfAshish Gupta
ย 
Stat 4325IS.pdf
Stat 4325IS.pdfStat 4325IS.pdf
Stat 4325IS.pdfAshish Gupta
ย 
17545489052556.pdf
17545489052556.pdf17545489052556.pdf
17545489052556.pdfAshish Gupta
ย 

More from Ashish Gupta (19)

independent of the subnet topology. The Transport Layer should be shielded fr...
independent of the subnet topology. The Transport Layer should be shielded fr...independent of the subnet topology. The Transport Layer should be shielded fr...
independent of the subnet topology. The Transport Layer should be shielded fr...
ย 
Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet
Link state Distance Vector Hierarchical routing 4.6 Routing in the InternetLink state Distance Vector Hierarchical routing 4.6 Routing in the Internet
Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet
ย 
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6
Internet Protocol Datagram format IPv4 addressing NAT ICMP IPv6
ย 
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ย 
Layer should be shielded from the number, type and topology of the subnets pr...
Layer should be shielded from the number, type and topology of the subnets pr...Layer should be shielded from the number, type and topology of the subnets pr...
Layer should be shielded from the number, type and topology of the subnets pr...
ย 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
ย 
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...
Virtual circuit and datagram networks 4.3 Whatโ€™s inside a router 4.4 IP: Inte...
ย 
services: network layer service models forwarding versus routing how a router...
services: network layer service models forwarding versus routing how a router...services: network layer service models forwarding versus routing how a router...
services: network layer service models forwarding versus routing how a router...
ย 
on sending side encapsulates segments into datagrams on rcving side, deliver...
on sending side encapsulates segments into datagrams  on rcving side, deliver...on sending side encapsulates segments into datagrams  on rcving side, deliver...
on sending side encapsulates segments into datagrams on rcving side, deliver...
ย 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
ย 
understand principles behind network layer services: network layer service mo...
understand principles behind network layer services: network layer service mo...understand principles behind network layer services: network layer service mo...
understand principles behind network layer services: network layer service mo...
ย 
Presentation1.Machine learning, Supervised, semi supervised learning, cluste...
Presentation1.Machine learning,Supervised, semi supervised learning, cluste...Presentation1.Machine learning,Supervised, semi supervised learning, cluste...
Presentation1.Machine learning, Supervised, semi supervised learning, cluste...
ย 
packets between same source-dest pair may take different paths
packets between same source-dest pair may take different pathspackets between same source-dest pair may take different paths
packets between same source-dest pair may take different paths
ย 
on sending side encapsulates segments into datagrams
on sending side encapsulates segments into datagramson sending side encapsulates segments into datagrams
on sending side encapsulates segments into datagrams
ย 
The services provided by the network layer should be independent of the subne...
The services provided by the network layer should be independent of the subne...The services provided by the network layer should be independent of the subne...
The services provided by the network layer should be independent of the subne...
ย 
yturi900.pptx
yturi900.pptxyturi900.pptx
yturi900.pptx
ย 
interpolation-170509191157.pdf
interpolation-170509191157.pdfinterpolation-170509191157.pdf
interpolation-170509191157.pdf
ย 
Stat 4325IS.pdf
Stat 4325IS.pdfStat 4325IS.pdf
Stat 4325IS.pdf
ย 
17545489052556.pdf
17545489052556.pdf17545489052556.pdf
17545489052556.pdf
ย 

Recently uploaded

Fire blight of apple; one of the viral plant bacterial disease
Fire blight of apple; one of the viral plant bacterial diseaseFire blight of apple; one of the viral plant bacterial disease
Fire blight of apple; one of the viral plant bacterial diseaselekhnathgaire7
ย 
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...kumargunjan9515
ย 
Call girl in Ajman 0503464457 Ajman Call girl services
Call girl in Ajman 0503464457 Ajman Call girl servicesCall girl in Ajman 0503464457 Ajman Call girl services
Call girl in Ajman 0503464457 Ajman Call girl servicesMonica Sydney
ย 
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxHertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxEdgar Hertwich
ย 
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...vershagrag
ย 
A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...Mark Jaeno P. Duyan
ย 
Top Call Girls in Bishnupur 9332606886 High Profile Call Girls You Can Get...
Top Call Girls in Bishnupur   9332606886  High Profile Call Girls You Can Get...Top Call Girls in Bishnupur   9332606886  High Profile Call Girls You Can Get...
Top Call Girls in Bishnupur 9332606886 High Profile Call Girls You Can Get...Sareena Khatun
ย 
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi Escorts
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi EscortsHigh Profile Escort in Abu Dhabi 0524076003 Abu Dhabi Escorts
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi EscortsMonica Sydney
ย 
Only Cash On Delivery Call Girls Service In Kanpur ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...
Only Cash On Delivery Call Girls Service In Kanpur  ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...Only Cash On Delivery Call Girls Service In Kanpur  ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...
Only Cash On Delivery Call Girls Service In Kanpur ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...vershagrag
ย 
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667Hyderabad Escorts Agency
ย 
Russian Escort Dubai 0503464457 Dubai Escorts
Russian Escort Dubai 0503464457 Dubai EscortsRussian Escort Dubai 0503464457 Dubai Escorts
Russian Escort Dubai 0503464457 Dubai EscortsMonica Sydney
ย 
Call Girl Service in Wardha 9332606886 HOT & SEXY Models beautiful and charm...
Call Girl Service in Wardha  9332606886 HOT & SEXY Models beautiful and charm...Call Girl Service in Wardha  9332606886 HOT & SEXY Models beautiful and charm...
Call Girl Service in Wardha 9332606886 HOT & SEXY Models beautiful and charm...Sareena Khatun
ย 
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotel
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star HotelTop Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotel
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotelkumargunjan9515
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607dollysharma2066
ย 
Introduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptxIntroduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptxNazmusSakibNS
ย 
High Profile Call Girls Service in Udhampur 9332606886 High Profile Call G...
High Profile Call Girls Service in Udhampur   9332606886  High Profile Call G...High Profile Call Girls Service in Udhampur   9332606886  High Profile Call G...
High Profile Call Girls Service in Udhampur 9332606886 High Profile Call G...kumargunjan9515
ย 
Delivery in 20 Mins Call Girls Dungarpur 9332606886Call Girls Advance Cash O...
Delivery in 20 Mins Call Girls Dungarpur  9332606886Call Girls Advance Cash O...Delivery in 20 Mins Call Girls Dungarpur  9332606886Call Girls Advance Cash O...
Delivery in 20 Mins Call Girls Dungarpur 9332606886Call Girls Advance Cash O...kumargunjan9515
ย 
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budget
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budgetCall Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budget
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budgetSareena Khatun
ย 

Recently uploaded (20)

Fire blight of apple; one of the viral plant bacterial disease
Fire blight of apple; one of the viral plant bacterial diseaseFire blight of apple; one of the viral plant bacterial disease
Fire blight of apple; one of the viral plant bacterial disease
ย 
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...
Call Girls in Dattatreya Nagar / 8250092165 Genuine Call girls with real Phot...
ย 
Call girl in Ajman 0503464457 Ajman Call girl services
Call girl in Ajman 0503464457 Ajman Call girl servicesCall girl in Ajman 0503464457 Ajman Call girl services
Call girl in Ajman 0503464457 Ajman Call girl services
ย 
Jumping Scales and Producing peripheries.pptx
Jumping Scales and Producing peripheries.pptxJumping Scales and Producing peripheries.pptx
Jumping Scales and Producing peripheries.pptx
ย 
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxHertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
ย 
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...
Premium Call Girls Nashik Call Girls Service ๐Ÿ‘‰๐Ÿ“ž 6378878445 ๐Ÿ‘‰๐Ÿ“ž Just๐Ÿ“ฒ Call Ruhi...
ย 
A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...A Review on Integrated River Basin Management and Development Master Plan of ...
A Review on Integrated River Basin Management and Development Master Plan of ...
ย 
Top Call Girls in Bishnupur 9332606886 High Profile Call Girls You Can Get...
Top Call Girls in Bishnupur   9332606886  High Profile Call Girls You Can Get...Top Call Girls in Bishnupur   9332606886  High Profile Call Girls You Can Get...
Top Call Girls in Bishnupur 9332606886 High Profile Call Girls You Can Get...
ย 
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi Escorts
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi EscortsHigh Profile Escort in Abu Dhabi 0524076003 Abu Dhabi Escorts
High Profile Escort in Abu Dhabi 0524076003 Abu Dhabi Escorts
ย 
Only Cash On Delivery Call Girls Service In Kanpur ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...
Only Cash On Delivery Call Girls Service In Kanpur  ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...Only Cash On Delivery Call Girls Service In Kanpur  ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...
Only Cash On Delivery Call Girls Service In Kanpur ๐Ÿงฟ 6378878445 ๐Ÿงฟ High Class...
ย 
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667
Call Girl in Faridabad โ‚น7.5k Pick Up & Drop With Cash Payment #8168257667
ย 
Russian Escort Dubai 0503464457 Dubai Escorts
Russian Escort Dubai 0503464457 Dubai EscortsRussian Escort Dubai 0503464457 Dubai Escorts
Russian Escort Dubai 0503464457 Dubai Escorts
ย 
Call Girl Service in Wardha 9332606886 HOT & SEXY Models beautiful and charm...
Call Girl Service in Wardha  9332606886 HOT & SEXY Models beautiful and charm...Call Girl Service in Wardha  9332606886 HOT & SEXY Models beautiful and charm...
Call Girl Service in Wardha 9332606886 HOT & SEXY Models beautiful and charm...
ย 
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotel
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star HotelTop Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotel
Top Call Girls in Dholpur { 9332606886 } VVIP NISHA Call Girls Near 5 Star Hotel
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377087607
ย 
Introduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptxIntroduction to heat waves and Heatwaves in Bangladesh.pptx
Introduction to heat waves and Heatwaves in Bangladesh.pptx
ย 
High Profile Call Girls Service in Udhampur 9332606886 High Profile Call G...
High Profile Call Girls Service in Udhampur   9332606886  High Profile Call G...High Profile Call Girls Service in Udhampur   9332606886  High Profile Call G...
High Profile Call Girls Service in Udhampur 9332606886 High Profile Call G...
ย 
Delivery in 20 Mins Call Girls Dungarpur 9332606886Call Girls Advance Cash O...
Delivery in 20 Mins Call Girls Dungarpur  9332606886Call Girls Advance Cash O...Delivery in 20 Mins Call Girls Dungarpur  9332606886Call Girls Advance Cash O...
Delivery in 20 Mins Call Girls Dungarpur 9332606886Call Girls Advance Cash O...
ย 
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budget
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budgetCall Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budget
Call Girls Chikhali ( 8250092165 ) Cheap rates call girls | Get low budget
ย 
Deforestation
DeforestationDeforestation
Deforestation
ย 

destination. The network layer must know the topology of the subnet and choose appropriate paths through it. When source and destination are in different networks, the network layer (IP) must deal with these differences

  • 1. Computer Networks: Routing 1 Network Layer Routing
  • 2. Computer Networks: Routing 2 Network Layer โ€ข Concerned with getting packets from source to destination. โ€ข The network layer must know the topology of the subnet and choose appropriate paths through it. โ€ข When source and destination are in different networks, the network layer (IP) must deal with these differences. * Key issue: what service does the network layer provide to the transport layer (connection- oriented or connectionless).
  • 3. Computer Networks: Routing 3 Network Layer Design Goals 1. The services provided by the network layer should be independent of the subnet topology. 2. The Transport Layer should be shielded from the number, type and topology of the subnets present. 3. The network addresses available to the Transport Layer should use a uniform numbering plan (even across LANs and WANs).
  • 4. Computer Networks: Routing 4 Figure 7.2 Physical layer Data link layer Physical layer Data link layer End system a Network layer Physical layer Data link layer Physical layer Data link layer Transport layer Transport layer Messages Messages Segments End system b Network service Network service Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Network layer Network layer Network layer
  • 5. Computer Networks: Routing 5 Application Transport Internet Network Interface Application Transport Internet Internet Network 1 Network 2 Machine A Machine B Router/Gateway Network Interface Network Interface Figure 8.3
  • 6. Computer Networks: Routing 6 R R R R S S S s s s s s s s s s s R s R Backbone To internet or wide area network Organization Servers Gateway Departmental Server Figure 7.6 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Metropolitan Area Network (MAN)
  • 7. Computer Networks: Routing 7 Interdomain level Intradomain level LAN level Autonomous system or domain Border routers Border routers Figure 7.7 Internet service provider Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Wide Area Network (WAN)
  • 8. Computer Networks: Routing 8 RA RB RC Route server NAP National service provider A National service provider B National service provider C LAN NAP NAP (a) (b) Figure 7.8 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks National ISPs Network Access Point
  • 9. Computer Networks: Routing 9 Packet 2 Packet 1 Packet 1 Packet 2 Packet 2 Figure 7.15 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
  • 10. Computer Networks: Routing 10 Destination address Output port 1345 12 2458 7 0785 6 12 1566 Figure 7.16 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
  • 11. Computer Networks: Routing 11 Packet Packet Figure 7.17 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
  • 12. Computer Networks: Routing 12 Identifier Output port 15 15 58 13 13 7 27 12 Next identifier 44 23 16 34 Entry for packets with identifier 15 Figure 7.21 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks
  • 13. Computer Networks: Routing 13 Routing Routing algorithm:: that part of the Network Layer responsible for deciding on which output line to transmit an incoming packet. Remember: For virtual circuit subnets the routing decision is made ONLY at set up. Algorithm properties:: correctness, simplicity, robustness, stability, fairness, optimality, and scalability.
  • 14. Computer Networks: Routing 14 Routing Classification Adaptive Routing โ€ข based on current measurements of traffic and/or topology. 1. centralized 2. isolated 3. distributed Non-Adaptive Routing โ€ข routing computed in advance and off-line 1. flooding 2. static routing using shortest path algorithms
  • 15. Computer Networks: Routing 15 Flooding โ€ข Pure flooding :: every incoming packet to a node is sent out on every outgoing line. โ€“ Obvious adjustment โ€“ do not send out on arriving link (assuming full-duplex links). โ€“ The routing algorithm can use a hop counter (e.g., TTL) to dampen the flooding. โ€“ Selective flooding :: only send on those lines going โ€œapproximatelyโ€ in the right direction.
  • 16. Computer Networks: Routing 16 Shortest Path Routing 1. Bellman-Ford Algorithm [Distance Vector] 2. Dijkstraโ€™s Algorithm [Link State] What does it mean to be the shortest (or optimal) route? Choices: a. Minimize the number of hops along the path. b. Minimize mean packet delay. c. Maximize the network throughput.
  • 17. Computer Networks: Routing 17 Possible Metrics โ€ข Set all link costs to 1. โ€“ Shortest hop routing. โ€“ Disregards delay and capacity differences on links! {Original ARPANET} โ€ข Measure the number of packets queued to be transmitted on each link. โ€“ Did not work well.
  • 18. Computer Networks: Routing 18 Metrics {Second ARPANET} โ€ข Timestamp each arriving packet with its ArrivalTime and record DepartTime* and use link-level ACK to compute: Delay = (DepartTime โ€“ ArrivalTime) + TransmissionTime + Latency โ€ข The weight assigned to each link was average delay over โ€˜recentโ€™ packets sent. โ€ข This algorithm tended to oscillate โ€“ leading to idle periods and instability. * Reset after retransmission
  • 19. Computer Networks: Routing 19 Metrics {Revised ARPANET} โ€“ Compress dynamic range of the metric to account for link type โ€“ Smooth the variation of metric with time: โ€ข Delay transformed into link utilization โ€ข Utilization was then averaged with last reported utilization to deal with spikes. โ€ข Set a hard limit on how much the metric could change per measurement cycle.
  • 20. Computer Networks: Routing 20 Dijkstraโ€™s Shortest Path Algorithm Initially mark all nodes (except source) with infinite distance. working node = source node Sink node = destination node While the working node is not equal to the sink 1. Mark the working node as permanent. 2. Examine all adjacent nodes in turn If the sum of label on working node plus distance from working node to adjacent node is less than current labeled distance on the adjacent node, this implies a shorter path. Relabel the distance on the adjacent node and label it with the node from which the probe was made. 3. Examine all tentative nodes (not just adjacent nodes) and mark the node with the smallest labeled value as permanent. This node becomes the new working node. Reconstruct the path backwards from sink to source.
  • 21. Computer Networks: Routing 21 Internetwork Routing [Halsall] Adaptive Routing Centralized Distributed Intradomain routing Interdomain routing Distance Vector routing Link State routing [IGP] [EGP] [BGP,IDRP] [OSPF,IS-IS,PNNI] [RIP] [RCC] Interior Gateway Protocols Exterior Gateway Protocols Isolated
  • 22. Computer Networks: Routing 22 Adaptive Routing Design Issues: 1. How much overhead is incurred due to gathering the routing information and sending routing packets? 2. What is the time frame (i.e, the frequency) for sending routing packets in support of adaptive routing? 3. What is the complexity of the routing strategy?
  • 23. Computer Networks: Routing 23 Adaptive Routing Basic functions: 1. Measurement of pertinent network data. 2. Forwarding of information to where the routing computation will be done. 3. Compute the routing tables. 4. Convert the routing table information into a routing decision and then dispatch the data packet.
  • 25. Computer Networks: Routing 25 Distance Vector Routing โ€ข Historically known as the old ARPANET routing algorithm {or known as Bellman-Ford algorithm}. Basic idea: each network node maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. โ€ข Distances are based on a chosen metric and are computed using information from the neighborsโ€™ distance vectors. Metric: usually hops or delay
  • 26. Computer Networks: Routing 26 Distance Vector Routing Information kept by DV router 1. each router has an ID 2. associated with each link connected to a router, there is a link cost (static or dynamic). Distance Vector Table Initialization Distance to itself = 0 Distance to ALL other routers = infinity number
  • 27. Computer Networks: Routing 27 Distance Vector Algorithm [Perlman] 1. A router transmits its distance vector to each of its neighbors in a routing packet. 2. Each router receives and saves the most recently received distance vector from each of its neighbors. 3. A router recalculates its distance vector when: a. It receives a distance vector from a neighbor containing different information than before. b. It discovers that a link to a neighbor has gone down (i.e., a topology change). The DV calculation is based on minimizing the cost to each destination.
  • 28. Computer Networks: Routing 28 Distance Vector Routing Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the new routing table for J.
  • 29. Computer Networks: Routing 29 Routing Information Protocol (RIP) โ€ข RIP had widespread use because it was distributed with BSD Unix in โ€œroutedโ€, a router management daemon. โ€ข RIP is the most used Distance Vector protocol. โ€ข RFC1058 in June 1988. โ€ข Sends packets every 30 seconds or faster. โ€ข Runs over UDP. โ€ข Metric = hop count โ€ข BIG problem is max. hop count =16 ๏ƒจ RIP limited to running on small networks!! โ€ข Upgraded to RIPv2
  • 30. Computer Networks: Routing 30 Figure 4.17 RIP Packet Format Address of net 2 Distance to net 2 Command Must be zero Family of net 2 Address of net 2 Family of net 1 Address of net 1 Address of net 1 Distance to net 1 Version 0 8 16 31 (network_address, distance) pairs P&D slide
  • 31. Computer Networks: Routing 31 Link State Algorithm 1. Each router is responsible for meeting its neighbors and learning their names. 2. Each router constructs a link state packet (LSP) which consists of a list of names and cost to reach each of its neighbors. 3. The LSP is transmitted to ALL other routers. Each router stores the most recently generated LSP from each other router. 4. Each router uses complete information on the network topology to compute the shortest path route to each destination node.
  • 32. Computer Networks: Routing 32 Figure 4.18 Reliable LSP Flooding (a) X A C B D (b) X A C B D (c) X A C B D (d) X A C B D P&D slide
  • 33. Computer Networks: Routing 33 Reliable Flooding โ€ข The process of making sure all the nodes participating in the routing protocol get a copy of the link-state information from all the other nodes. โ€ข LSP contains: โ€“ Sending routerโ€™s node ID โ€“ List of connected neighbors with the associated link cost to each neighbor โ€“ Sequence number โ€“ Time-to-live (TTL)
  • 34. Computer Networks: Routing 34 Reliable Flooding โ€ข First two items enable route calculation โ€ข Last two items make process reliable โ€“ ACKs and checking for duplicates is needed. โ€ข Periodic Hello packets used to determine the demise of a neighbor. โ€ข The sequence numbers are not expected to wrap around. โ€“ ๏ƒจthis field needs to be large (64 bits)
  • 35. Computer Networks: Routing 35 Open Shortest Path First (OSPF) โ€ข Provides for authentication of routing messages. โ€“ 8-byte password designed to avoid misconfiguration. โ€ข Provides additional hierarchy โ€“ Domains are partitioned into areas. โ€“ This reduces the amount of information transmitted in packet. โ€ข Provides load-balancing via multiple routes.
  • 36. Computer Networks: Routing 36 Open Shortest Path First (OSPF) Area 1 Area 0 Area 3 Area 2 R9 R8 R7 R1 R5 R6 R4 R3 R2 Figure 4.32 A Domain divided into Areas P&D slide Backbone area
  • 37. Computer Networks: Routing 37 Open Shortest Path First (OSPF) โ€ข OSPF runs on top of IP, i.e., an OSPF packet is transmitted with IP data packet header. โ€ข Uses Level 1 and Level 2 routers โ€ข Has: backbone routers, area border routers, and AS boundary routers โ€ข LSPs referred to as LSAs (Link State Advertisements) โ€ข Complex algorithm due to five distinct LSA types.
  • 38. Computer Networks: Routing 38 OSPF Terminology Internal router :: a level 1 router. Backbone router :: a level 2 router. Area border router (ABR) :: a backbone router that attaches to more than one area. AS border router :: (an interdomain router), namely, a router that attaches to routers from other ASs across AS boundaries.
  • 39. Computer Networks: Routing 39 OSPF LSA Types 1. Router link advertisement [Hello message] 2. Network link advertisement 3. Network summary link advertisement 4. AS border routerโ€™s summary link advertisement 5. AS external link advertisement
  • 40. Computer Networks: Routing 40 Figure 4.21 OSF Type 1 Link-State Advertisement LS Age Options Type=1 0 Flags 0 Number of links Link type Num_TOS Metric Link-state ID Advertising router LS sequence number Link ID Link data Optional TOS information More links LS checksum Length P&D slide Indicates LSA type Indicates link cost
  • 41. Computer Networks: Routing 41 Area 0.0.0.1 Area 0.0.0.2 Area 0.0.0.3 R1 R2 R3 R4 R5 R6 R7 R8 N1 N2 N3 N4 N5 N6 N7 To another AS Area 0.0.0.0 R = router N = network Figure 8.33 Copyright ยฉ2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks OSPF Areas [AS Border router] ABR
  • 42. Computer Networks: Routing 42 OSPF Figure 5-65.The relation between ASes, backbones, and areas in OSPF. Tanenbaum slide
  • 43. Computer Networks: Routing 43 Border Gateway Protocol (BGP) โ€ข The replacement for EGP is BGP. Current version is BGP-4. โ€ข BGP assumes the Internet is an arbitrary interconnected set of ASโ€™s. โ€ข In interdomain routing the goal is to find ANY path to the intended destination that is loop-free. The protocols are more concerned with reachability than optimality.