McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast...

27
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing Protocols 21.3 Multicast Routing (IGMP)

Transcript of McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast...

Page 1: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Network Layer Protocols: Unicast and Multicast Routing Protocols

21.1 Unicast Routing21.2 Unicast Routing

Protocols21.3 Multicast Routing (IGMP)

Page 2: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

21.1 Unicast Routing21.1 Unicast Routing

Metric

Interior and Exterior Routing

Internet is enormous. No protocol can update all routers.

Need to divide into autonomous systems (AS):

Routing inside AS = Interior routingRouting outside AS = Exterior routing

Page 3: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.1 Unicasting

Metric = a cost for passing through a network

1 1

1

1 1

Cost metric: 1 (hop count), delay, throughput

delay delay

delay

delay delay

Page 4: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

In unicast routing, the router forwards the received packet through only one

of its ports.

NoteNote::

Page 5: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

21.2 Unicast Routing Protocols21.2 Unicast Routing Protocols

Figure 21.2 Popular routing protocols

Routing InformationProtocol

Open ShortestPath First

Border GatewayProtocol

Page 6: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.3 Autonomous systems

Interior and Exterior routing protocols

Other routers use only interior routing protocols

Page 7: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Table 21.1 Table 21.1 A distance vector routing tableA distance vector routing table

DestinationHop

CountNext

RouterOther information

163.5.0.0 7 172.6.23.4

197.5.13.0 5 176.3.6.17

189.45.0.0 4 200.5.1.6

115.0.0.0 6 131.4.7.19

Routing InformationProtocol

Cost metric: 1 (hop count)

Page 8: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.4 Example of updating a routing table

No hop countimprovement,do not change

Page 9: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.7 Areas in an autonomous system

Cost metric: delay, throughput

Open ShortestPath First

Idea: Router must have exact internet topology

Link state routing:1. Share info of neighborhood2. Share info with every router3. Share info when change detected

Page 10: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Sample Internet and Graphical Representation

Page 11: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.20 Shortest-path calculation Dijkstra AlgorithmDijkstra Algorithm

Page 12: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Table 21.2 Table 21.2 Link state routing table for router ALink state routing table for router A

Network Cost Next Router Other Information

N1 5

N2   7 C

N3 10 D

N4 11 B

N5 15 D

Page 13: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Table 21.3 Table 21.3 Path vector routing tablePath vector routing table

Network Next Router Path

N01 R01 AS14, AS23, AS67

N02 R05 AS22, AS67, AS05, AS89

N03 R06 AS67, AS89, AS09, AS34

N04 R12 AS62, AS02, AS09

Border GatewayProtocol

Path Vector Routing:Path Vector Routing:1. Uses paths of ordered AS1. Uses paths of ordered AS

Page 14: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.21 Path vector messages

Page 15: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

21.3 Multicast Routing21.3 Multicast Routing

IGMP IGMP: Internet Group Management Protocol

One-to-Many Commmunication

Source: Unicast Address (Class A, B or C)Destination: Multicast address (Class D)

Page 16: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

In multicast routing, the router may forward the received packet through

several of its ports.

NoteNote::

Page 17: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

IGMP is a group management protocol.

It helps a multicast router create and update a list of loyal members related to

each router interface.

NoteNote::

Page 18: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.25 IGMP message format

Page 19: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Table 21.4 Table 21.4 IGMP type fieldIGMP type field

Type Value

General or special query 0x11 or 00010001

Membership report 0x16 or 00010110

Leave report 0x17 or 00010111

Page 20: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.26 IGMP operation

Mutually exclusive addresses

Page 21: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.27 Membership report

0x16

Multicast address

Page 22: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

In IGMP, a membership report is sent twice, one after the other.

NoteNote::

Page 23: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.28 Leave report

No Response

Page 24: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Monitoring membership checks if groups are still active or not, by

sending a general query message.

The general query message does not define a particular group (group

address 0.0.0.0).

NoteNote::

Page 25: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 21.29 General query message

No Response

Page 26: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

ExampleExample

Imagine there are three hosts in a network, as shown in Figure 21.30 (below). A query message was received at time 0; the random delay time (in tenths of seconds) for each group is shown next to the group address. Show the sequence of report messages.

Page 27: McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer Protocols: Unicast and Multicast Routing Protocols 21.1 Unicast Routing 21.2 Unicast Routing.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

SolutionSolution

The events occur in this sequence:

1. Time 12. The timer for 228.42.0.0 in host A expires and a membership report is sent, which is received by the router and every host including host B which cancels its timer for 228.42.0.0.

2. Time 30. The timer for 225.14.0.0 in host A expires and a membership report is sent, which is received by the router and every host including host C which cancels its timer for 225.14.0.0.

3. Time 50. The timer for 251.71.0.0 in host B expires and a membership report is sent, which is received by the router and every host.

4. Time 70. The timer for 230.43.0.0 in host C expires and a membership report is sent, which is received by the router and every host including host A which cancels its timer for 230.43.0.0.