Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use...
Transcript of Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use...
![Page 1: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/1.jpg)
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc.
Internetworking, WANs, and Dynamic Routing
Asst. Prof. Chaiporn Jaikaeo, Ph.D. [email protected]
http://www.cpe.ku.ac.th/~cpj Computer Engineering Department
Kasetsart University, Bangkok, Thailand
Adapted from the notes by Lami Kaya and lecture slides from Anan Phonphoem
![Page 2: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/2.jpg)
2
Internetworks
Two or more networks connected become an internetwork, or internet
KU Network
CU Network
TU Network
Internetwork = Network of networks
![Page 3: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/3.jpg)
3
Internetworks
Internetworking two LANs with a MAN or a WAN
Obvious example The Internet
Bangkhen Kampangsaen
![Page 4: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/4.jpg)
4
The Internet (Conceptual View)
ISP: Internet Service Provider NAP: Network access point (switching station)
![Page 5: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/5.jpg)
5
Wide Area Network (WAN)
Enterprise Network: WAN owned by a company
![Page 6: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/6.jpg)
6
Traditional WAN Architecture
![Page 7: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/7.jpg)
7
Traditional WAN Architecture
LAN WAN
![Page 8: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/8.jpg)
8
WAN Connection
DCE generates clock for DTE
WAN DTE DCE DCE DTE
DCE – Data Circuit-terminating Equipment DTE – Data Terminal Equipment
generates clock
![Page 9: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/9.jpg)
9
WAN Devices
V.35 serial cable
CSU/DSU or Modem (DCE)
Router (DTE)
To WAN
![Page 10: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/10.jpg)
10
Example of WAN Topology
These packet switches form a packet switching network
![Page 11: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/11.jpg)
11
Store and Forward Paradigm
A packet switch stores packets in memory
The forward operation occurs once a packet has arrived and is waiting in memory. The processor
examines the packet
determines its destination
and sends the packet over the I / O interface that leads to the destination
![Page 12: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/12.jpg)
12
Addressing in a WAN
WANs addresses follow a key concept that is used in the Internet: hierarchical addressing
Hierarchical addressing divides each address into two parts:
(site, computer at the site)
In practice, instead of a identifying a site, each packet switch is assigned a unique number
first part of an address identifies a packet switch
second part identifies a specific computer
![Page 13: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/13.jpg)
13
Addressing in WAN
![Page 14: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/14.jpg)
14
Next-Hop Forwarding
Germany New York
Alaska
Bangkok
Next hop keep changing
Bangkok Alaska Bangkok Germany New York Alaska
![Page 15: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/15.jpg)
15
Source Independence
Next hop depends on
destination of the packet
Not the source !
Source Independence
Bangkok Germany New York Alaska
Forwarding packet uses the destination address in the packet
![Page 16: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/16.jpg)
16
Next-Hop Forwarding
Source E [2,1] Destination C [3,2]
Forwarding Table in Switch 2
![Page 17: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/17.jpg)
17
Routing Tables
The next-hop table is called
Routing Table
Process of forwarding packet
Routing
Large network
Routing table can be very large
![Page 18: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/18.jpg)
18
Dynamic Routing in a WAN
We use the term routing software to describe software that automatically reconfigures forwarding tables
Route computation in a WAN is to think of a graph that models the network
Each node corresponds to a packet switch
(individual computers are not part of the graph)
An edge (link) denotes a direct connection between a pair of packet switches
![Page 19: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/19.jpg)
19
WAN Routing
WAN A Graph representation
node
Edge
![Page 20: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/20.jpg)
20
Routing Table
Edge = (u,v)
node
![Page 21: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/21.jpg)
21
Default Routes
> 1 destination with same next-hop
• One default • Lowest priority
![Page 22: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/22.jpg)
22
Routing Table Construction
Static Routing Manual configure
Simple and low overhead
Inflexible
Dynamic Routing Automatic changing
Change according to network problems
Mostly use
![Page 23: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/23.jpg)
23
Distributed Route Computation
In practice, networks need to perform distributed route computation
All packet switches must participate in distributed route computation
No central entity to do computation
There are two general forms:
Link-State Routing (LSR)
Distance-Vector Routing (DVR)
![Page 24: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/24.jpg)
24
Link-State Routing (LSR)
Also known as Shortest Path First (SPF) routing
Dijkstra algorithm used it to characterize the way it works
To use LSR, packet switches periodically send messages across the network that carry the status of a link
Every switch collects incoming status messages
and uses them to build a graph of the network
![Page 25: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/25.jpg)
25
Dijkstra's Algorithm
Uses a greedy approach to select the next node into the shortest path tree
Assumes non-negative weight edges
![Page 26: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/26.jpg)
26
Dijkstra’s Algorithm Animation
http://www-b2.is.tokushima-u.ac.jp/~ikeda/suuri/dijkstra/Dijkstra.shtml
![Page 27: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/27.jpg)
27
Distance Vector Routing (DVR)
Uses Distributed Bellman-Ford Algorithm Like LSR, DVR arranges for packet switches to
exchange messages periodically In DVR, a switch sends a complete list of
destinations and the current cost of reaching each When it sends a DVR message
a switch is sending a series of individual statements, of the form:
“I can reach destination X, and its current distance from me is Y”
![Page 28: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/28.jpg)
28
DVR Concept
![Page 29: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/29.jpg)
29
Hop Count
1 hop
2 hops
![Page 30: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/30.jpg)
30
Routing table distribution
![Page 31: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/31.jpg)
31
Updating routing table
For router A
![Page 32: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/32.jpg)
32
Final routing tables
![Page 33: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/33.jpg)
33
Updating the routing table
Example
![Page 34: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/34.jpg)
34
Routing Problems
In theory, either LSR or DVR will compute shortest paths
Furthermore, each approach will eventually converge meaning that the forwarding tables in all packet switches agree
However, problems do occur For example, if LSR messages are lost, two packet switches can
disagree about the shortest path
DVR problems can be more severe because a link failure can cause two or more packet switches to
create a routing loop in which each packet switch thinks the next packet switch in the set is
the shortest path to a particular destination
As a result, a packet can circulate among the switches indefinitely
![Page 35: Internetworking, WANs, and Dynamic Routingcpj/219321/slides/15-Inter... · 2016. 8. 22. · We use the term routing software to describe software that automatically reconfigures forwarding](https://reader033.fdocuments.in/reader033/viewer/2022053109/607e43b5b788751c331b2b48/html5/thumbnails/35.jpg)
35
WAN Technologies
ARPANET
X.25
Frame Relay
Switched Multi-Megabit Data Service (SMDS)
Asynchronous Transfer Mode (ATM)
Multi-Protocol Label Switching (MPLS)
Integrated Services Digital Network (ISDN)