Top Banner
1 Routing Table Routing Table The seven fields Mask: for finding (sub)network address of the destination Host-specific routing: 255.255.255.255 (/32) Default routing: 0.0.0.0 (/0) Unsubnetted network: default mask of each class Destination address: either host address or network address Next-hop address: the address of the next-hop router
16

1 Routing Table The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

Jan 03, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

11

Routing TableRouting Table The seven fields

Mask: for finding (sub)network address of the destination

Host-specific routing: 255.255.255.255 (/32) Default routing: 0.0.0.0 (/0) Unsubnetted network: default mask of each class

Destination address: either host address or network address

Next-hop address: the address of the next-hop router

Page 2: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

22

Routing Table (cont.)Routing Table (cont.) The seven fields (cont.)

Flags:

U (Up): the router is running, the router is down G (Gateway): indirect delivery, direct delivery H (Host-Specific): host-specific address, network address D (Added by redirection): the routing information has been added by a

redirection message from ICMP M (Modified by redirection): the routing information has been modified by

a redirection message from ICMP

Reference count: no. of users using this route at any moment

Use: no. of packets transmitted through router

Interface: the name of the interface

Page 3: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

33

Routing ModuleRouting Module1. For each entry in the routing table

1. Apply the mask to packet destination address

2. If (the result matches the value in the destination field)

1. If (the G flag is present)

1. Use the next-hop entry in the table as next-hop address

2. If (the G flag is missing)

1. Use packet destination address (direct delivery)

3. Send packet to fragmentation module with next-hop address

4. Stop

2. If no match is found, send an ICMP error message

3. Stop

Page 4: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

44

ExamplesExamples Configuration for routing examples

Page 5: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

55

Examples (cont.)Examples (cont.) Routing table for router R1 in the figure

Page 6: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

66

ExamplesExamples Make the routing table for router R1 in the following fig

ure.

There are three explicit destination networks, two class B and one class C with no subnetting. There is also one access to the rest of the Internet (default route) The routing table has four rows

Page 7: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

77

Examples Examples Solution

Mask Destination Next Hop I/F

255.255.0.0 134.18.0.0 -- m0

255.255.0.0 129.8.0.0 222.13.16.40 m1

255.255.255.0 220.3.6.0 222.13.16.40 m1

0.0.0.0 0.0.0.0 134.18.5.2 m0

Page 8: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

88

Interior and Exterior RoutingInterior and Exterior Routing

Popular routing protocols

Page 9: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

99

Interior and Exterior RoutingInterior and Exterior Routing Autonomous systems

Interior routingInterior routing Exterior routingExterior routing

Page 10: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1010

RIP (Routing Information Protocol)RIP (Routing Information Protocol) Based on distance vector routing, which uses the

Bellman-Ford algorithm.

Distance Vector Routing

each router periodically shares its knowledge about the entire internet with neighbors

the operational principles of this algorithm

1. Sharing knowledge about the entire autonomous system

2. Sharing only with neighbors

3. Sharing at regular intervals

Page 11: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1111

RIPRIP

Routing Table

Distance Vector Routing Table

Page 12: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1212

RIPRIPThe routing table is updated upon receipt of a RIP

response message.

Page 13: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1313

RIPRIP Example of updating a routing table

Page 14: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1414

OSPFOSPF Link State Routing

OSPF uses Link State Routing to update the routing tables in an area

Each router shares its knowledge about its neighborhood with every router in the area.

1. Sharing knowledge about the neighborhood

2. Sharing with every other router by flooding

3. Sharing when there is a change

cf. Distance Vector Routing : sending the information at regular intervals regardless of change

So, every router can calculate the shortest path

between itself and each network

Page 15: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1515

OSPFOSPF Dijkstra Algorithm

calculating the shortest path between two points on a network using a graph made up of nodes and edges

Page 16: 1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: 255.255.255.255 (/32) l Default routing:

1616

OSPFOSPF Routing Table

Each router uses the shortest path tree method to construct its routing table

Showing the cost of reaching each network in the area

To find the cost of reaching networks outside of the area, the routers use the summary link to network, the summary link to boundary router, and the external link advertisements

Link state routing table for router A