Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer...
Transcript of Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer...
![Page 1: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/1.jpg)
Network LayerNetwork Layer
Routing
Computer Networks: RoutingComputer Networks: Routing 11
![Page 2: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/2.jpg)
Network LayerNetwork 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: RoutingComputer Networks: Routing 22
![Page 3: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/3.jpg)
Network Layer Design GoalsNetwork 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: RoutingComputer Networks: Routing 33
![Page 4: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/4.jpg)
Computer Networks: RoutingComputer Networks: Routing 44
Figure 7.2
Physicallayer
Data linklayer
Physicallayer
Data linklayer
Networklayer
Physicallayer
Data linklayer
Physicallayer
Data linklayer
Transportlayer
Transportlayer
Messages Messages
Segments
Networkservice
Networkservice
Networklayer
Networklayer
Networklayer
End systemβ
End systemα
Leon-Garcia & Widjaja: Communication NetworksCopyright ©2000 The McGraw Hill Companies
![Page 5: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/5.jpg)
Application
Transport
InternetNetwork Interface
Application
Transport
InternetInternet
Network 1 Network 2
Machine A Machine B
Router/Gateway
Network Interface
Network Interface
Computer Networks: RoutingComputer Networks: Routing 55Figure 8.3
![Page 6: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/6.jpg)
RR
RRS
SS
s
s s
s
ss
s
ss
s
R
s
R
Backbone
To internet or wide area network
Organization Servers
Gateway
Departmental Server
Leon-Garcia & Widjaja: Communication Networks
Metropolitan AreaNetwork (MAN)
Copyright ©2000 The McGraw Hill Companies
Figure 7.6
Computer Networks: RoutingComputer Networks: Routing 66
![Page 7: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/7.jpg)
Wide Area Network(WAN)
Interdomain level
Intradomain level
LAN level
Autonomous systemor domain
Border routers
Border routers
Internet service provider
Copyright ©2000 The McGraw Hill Companies
Figure 7.7Leon-Garcia & Widjaja: Communication Networks
Computer Networks: RoutingComputer Networks: Routing 77
![Page 8: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/8.jpg)
RA
RB
RC
Route server
NAP
National service provider A
National service provider B
National service provider C
LAN
(a)
NAPNAP
National ISPs
Network AccessPoint
(b)
Copyright ©2000 The McGraw Hill Companies
Computer Networks: RoutingComputer Networks: Routing 88Leon-Garcia & Widjaja: Communication Networks Figure 7.8
![Page 9: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/9.jpg)
Packet 2
Packet 1
Packet 1
Packet 2
Packet 2
Leon-Garcia & Widjaja: Communication NetworksCopyright ©2000 The McGraw Hill Companies Figure 7.15
Computer Networks: RoutingComputer Networks: Routing 99
![Page 10: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/10.jpg)
Destinationaddress
Outputport
1345 12
2458
70785
6
12
1566
Copyright ©2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks Figure 7.16
Computer Networks: RoutingComputer Networks: Routing 1010
![Page 11: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/11.jpg)
Packet
Packet
Leon-Garcia & Widjaja: Communication NetworksCopyright ©2000 The McGraw Hill Companies Figure 7.17
Computer Networks: RoutingComputer Networks: Routing 1111
![Page 12: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/12.jpg)
Identifier Outputport
Nextidentifier
15 15
58
13
13
7
27
12 44
23
16
34
Entry for packetswith identifier 15
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.21
Computer Networks: RoutingComputer Networks: Routing 1212
![Page 13: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/13.jpg)
RoutingRoutingRouting 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: RoutingComputer Networks: Routing 1313
![Page 14: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/14.jpg)
Routing ClassificationRouting Classification
Adaptive Routing• based on current measurements
of traffic and/or topology.
1. centralized2. isolated3. distributed
Non-Adaptive Routing• routing computed in advance
and off-line
1. flooding
2. static routing using shortest path algorithms
Computer Networks: RoutingComputer Networks: Routing 1414
![Page 15: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/15.jpg)
FloodingFlooding• 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: RoutingComputer Networks: Routing 1515
![Page 16: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/16.jpg)
Shortest Path RoutingShortest Path Routing1. 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: RoutingComputer Networks: Routing 1616
![Page 17: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/17.jpg)
Possible MetricsPossible 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: RoutingComputer Networks: Routing 1717
![Page 18: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/18.jpg)
MetricsMetrics{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: RoutingComputer Networks: Routing 1818
![Page 19: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/19.jpg)
MetricsMetrics{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: RoutingComputer Networks: Routing 1919
![Page 20: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/20.jpg)
Computer Networks: RoutingComputer Networks: Routing 2020
DijkstraDijkstra’’ss Shortest Path AlgorithmShortest Path Algorithm
Initially mark all nodes (except source) with infinite distance.working node = source nodeSink node = destination nodeWhile the working node is not equal to the sink1. 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.
![Page 21: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/21.jpg)
Computer Networks: RoutingComputer Networks: Routing 2121
Internetwork RoutingInternetwork Routing [[HalsallHalsall]]
Adaptive Routing
Centralized Distributed
Intradomain routing Interdomain routing
Distance Vector routing Link State routing
[IGP] [EGP]
[BGP,IDRP]
[OSPF,IS-IS,PNNI][RIP]
[RCC]
InteriorGateway Protocols
ExteriorGateway Protocols
Isolated
![Page 22: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/22.jpg)
Adaptive RoutingAdaptive RoutingDesign 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: RoutingComputer Networks: Routing 2222
![Page 23: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/23.jpg)
Adaptive RoutingAdaptive RoutingBasic 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 dispatchthe data packet.
Computer Networks: RoutingComputer Networks: Routing 2323
![Page 24: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/24.jpg)
Centralized Routing
RCC
![Page 25: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/25.jpg)
Distance Vector RoutingDistance 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 delayComputer Networks: RoutingComputer Networks: Routing 2525
![Page 26: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/26.jpg)
Distance Vector RoutingDistance Vector RoutingInformation kept by DV router
1. each router has an ID2. 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 numberComputer Networks: RoutingComputer Networks: Routing 2626
![Page 27: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/27.jpg)
Distance Vector AlgorithmDistance Vector Algorithm[Perlman][Perlman]
1. A router transmits its distance vectordistance vector to each of its neighbors in a routing packet.
2. Each router receives and saves the most recently received distance vectordistance vector from each of its neighbors.
3. A router recalculates its distance vectordistance vector when:a. It receives a distance vectordistance 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: RoutingComputer Networks: Routing 2727
![Page 28: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/28.jpg)
Distance Vector RoutingDistance Vector Routing
Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the new routing table for J.
Computer Networks: RoutingComputer Networks: Routing 2828
![Page 29: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/29.jpg)
Routing Information Protocol Routing Information Protocol (RIP)(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: RoutingComputer Networks: Routing 2929
![Page 30: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/30.jpg)
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
Figure 4.17 RIP Packet FormatFigure 4.17 RIP Packet Format
P&D slide
Computer Networks: RoutingComputer Networks: Routing 3030
![Page 31: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/31.jpg)
Link State AlgorithmLink State Algorithm1. 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: RoutingComputer Networks: Routing 3131
![Page 32: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/32.jpg)
(a)
X A
C B D
(b)
X A
C B D
(c)
X A
C B D
(d)
X A
C B D
Figure 4.18 Reliable LSP FloodingFigure 4.18 Reliable LSP Flooding
P&D slide
Computer Networks: RoutingComputer Networks: Routing 3232
![Page 33: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/33.jpg)
Reliable FloodingReliable 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 onnected neighbors with the associated
link cost to each neighbor– Sequence number– Time-to-live (TTL)
Computer Networks: RoutingComputer Networks: Routing 3333
![Page 34: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/34.jpg)
Reliable FloodingReliable 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: RoutingComputer Networks: Routing 3434
![Page 35: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/35.jpg)
Open Shortest Path FirstOpen Shortest Path First(OSPF)(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: RoutingComputer Networks: Routing 3535
![Page 36: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/36.jpg)
Open Shortest Path FirstOpen Shortest Path First(OSPF)(OSPF)
Area 1Area 0
Area 3
Area 2
R9
R8
R7R1
R5R6
R4
R3
R2
Figure 4.32 A Domain divided into AreasFigure 4.32 A Domain divided into AreasP&D slide
Backbonearea
Computer Networks: RoutingComputer Networks: Routing 3636
![Page 37: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/37.jpg)
Open Shortest Path FirstOpen Shortest Path First(OSPF)(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: RoutingComputer Networks: Routing 3737
![Page 38: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/38.jpg)
OSPF TerminologyOSPF 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: RoutingComputer Networks: Routing 3838
![Page 39: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/39.jpg)
OSPF LSA TypesOSPF LSA Types1. Router link advertisement [Hello message]2. Network link advertisement3. Network summary link advertisement4. AS border router’s summary link
advertisement5. AS external link advertisement
Computer Networks: RoutingComputer Networks: Routing 3939
![Page 40: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/40.jpg)
LS Age Options Type=1
0 Flags 0 Number of links
Link type Num_TOS Metric
Link-state IDAdvertising router
LS sequence number
Link IDLink data
Optional TOS informationMore links
LS checksum Length
IndicatesLSA type
Indicateslink cost
Figure 4.21 OSF Type 1 LinkFigure 4.21 OSF Type 1 Link--State State AdvertisementAdvertisement
P&D slide
Computer Networks: RoutingComputer Networks: Routing 4040
![Page 41: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/41.jpg)
Area 0.0.0.1Area 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
OSPF AreasOSPF Areas[AS Border router]
ABR
R = router N = network
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 8.33
Computer Networks: RoutingComputer Networks: Routing 4141
![Page 42: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/42.jpg)
OSPFOSPF
Figure 5-65.The relation between ASes, backbones, and areas in OSPF. Tanenbaum slide
Computer Networks: RoutingComputer Networks: Routing 4242
![Page 43: Network Layer Routing - Computer Sciencerek/Undergrad_Nets/B07/Network_Layer.pdf · Network Layer Design Goals 1. The services provided by the network layer should be independent](https://reader030.fdocuments.net/reader030/viewer/2022040403/5e8781dbe6695443a07f5953/html5/thumbnails/43.jpg)
Border Gateway Protocol Border Gateway Protocol (BGP)(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.
Computer Networks: RoutingComputer Networks: Routing 4343