0% found this document useful (0 votes)
10 views

04 IP - SP2003 - E01 - 1-Basic Principle of Routing-27p

The document discusses basic routing principles including route tables, types of routes, route priority, and longest prefix matching. Route tables store routing information and are used by routers to determine the next hop for packet forwarding. There are different types of routes like directly connected, static, and dynamic routes which are learned via routing protocols. Route priority and longest prefix matching determine which route is used if there are multiple matches.

Uploaded by

Abdurezak Birhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

04 IP - SP2003 - E01 - 1-Basic Principle of Routing-27p

The document discusses basic routing principles including route tables, types of routes, route priority, and longest prefix matching. Route tables store routing information and are used by routers to determine the next hop for packet forwarding. There are different types of routes like directly connected, static, and dynamic routes which are learned via routing protocols. Route priority and longest prefix matching determine which route is used if there are multiple matches.

Uploaded by

Abdurezak Birhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Basic Principle of Routing

Objectives

n After learning this course, you will be able to:


l Master the composition of route table

l Master the definition and classification of route

l Master the characteristics of different routes

l Know the application scenarios of different routes

2
Contents

n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router

3
Route table

n The information that router need to forward data is stored in a


table, called ‘route table’
n Router checks the destination address of the packet, and chooses
the next hop based on the information in route table.
n Route table is stored in RAM

© ZTE All rights reserved 4


Route table composition

n Destination address (Dest)


n Mask (Mast)
n Next hop address (Gw)
n Forwarding physical interface (interface)
n Source of the information (Owner)
n Route priority (pri)
n metric(metric)

© ZTE All rights reserved 5


Route table composition

Example
Dest Mask Gw Interface Owner pri metric

172.16.8.0 255.255.255.0 1.1.1.1 fei_1/1 static 1 0

172.16.8.0 -- Destination network address


255.255.255.0 -- Destination network mask
1.1.1.1 -- Next hop address
fei_1/1 -- Route learning interface and forwarding interface
static -- how does router learn this entry
1 -- route priority
0 -- Metric
© ZTE All rights reserved 6
Route table establishing and refreshing

n How is route established at the beginning?

n How to maintain the route table after it is established?

© ZTE All rights reserved 7


Contents

n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router

8
Route Types

Directly connected
route

Static route

Dynamic route

© ZTE All rights reserved 9


Directly connected route

10.0.0.1/24 192.168.0.1/30
e1_1
fei_1/1
A 192.168.0.2/30 B 172.16.0.1/24

IPv4 Routing Table:


Dest Mask Gw Interface Owner pri metric
10.0.0.0 255.255.255.0 10.0.0.1 fei_1/1 direct 0 0
10.0.0.1 255.255.255.255 10.0.0.1 fei_1/1 address 0 0
192.168.0.0 255.255.255.252 192.168.0.1 e1_1 direct 0 0
192.168.0.1 255.255.255.255 192.168.0.1 e1_1 address 0 0

n Directly connected route


l When network address is configured and the status of the
interface is valid, the network configured on this network will
appear in the route table and associated with this interface,the
route will change with the status of the interface.

© ZTE All rights reserved 10


Static Route

n The route manually set by the network administrator is not


updated automatically with the change of network topology.
n The route table takes effect under the condition that the next
hop is reachable.
n Advantage: It does not occupy the network resources or system
resources.
n Disadvantage: It needs to be configured by the administrator
manually one by one, and does not automatically adjust with the
change of network status.

© ZTE All rights reserved 11


Static Route Configuration

Stub Network
172.16.1.0

10.0.0.0
B BA
Network 172.16.2.2 172.16.2.1

ip route 10.0.0.0 255.0.0.0 172.16.2.2

n This is a unidirectional route, there should be an


opposite route configured on the counterpart router.
© ZTE All rights reserved 12
Default Route

n The default route is a route in the route table, used to transfer


the data packets in the route table that does not have a specific
route entry.
n The default route can be a static route set by the administrator,
or be automatically generated by the dynamic route protocol.
n Advantage: It dramatically reduces the number of route entries
in the route table.
n Disadvantage: If the default route is not configured correctly, it
will cause the route loop, or not the optimal route.

© ZTE All rights reserved 13


Default Route Configuration

Stub Network
172.16.1.0

Network
A B
172.16.2.2 172.16.2.1

ip route 0.0.0.0 0.0.0.0 172.16.2.2

© ZTE All rights reserved 14


Dynamic route

OSPF RIP OSPF RIP

1.0.0.0/8 2.0.0.0/8 3.0.0.0/8

n Routing protocol is a software process running on the router.

n It will exchange routing information with other routers,


studying route information of network not directly connected
and adjusting the route information when topology changes.

© ZTE All rights reserved 15


Route priority

n Select the route that has the highest priority to the route table。

RIP OSPF

10.0.0.0/16 fei_1/1 10.0.0.0/16 fei_1/3

10.0.0.0/16 fei_1/3

Route table
Notice: the comparison of
route priority must be
between identical routes.
© ZTE All rights reserved 16
Default route priority

Route Source Default priority


Connected interface 0
Static route 1
External BGP 20
OSPF 110
IS-IS 115
RIP v1, v2 120
Internal BGP 200
Special (For inner process) 255

© ZTE All rights reserved 17


Float static route

fei_1/1 10M 177.1.1.1

Network
178.1.1.1
DDN

n How to configure static route when there are redundant links?

© ZTE All rights reserved 18


Float static route

fei_1/1 10M 177.1.1.1

Network
178.1.1.1
DDN

ZXR10(config)#ip route 10.0.0.0 255.0.0.0 177.1.1.1


ZXR10(config)#ip route 10.0.0.0 255.0.0.0 178.1.1.1 5 tag 200

© ZTE All rights reserved 19


Contents

n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router

20
Longest Prefix Match principle

ZXR10#show ip route
IPv4 Routing Table:
Dest Mask Gw Interface Owner pri metric
1.0.0.0 255.0.0.0 1.1.1.1 fei_1/1 direct 0 0
1.1.1.1 255.255.255.255 1.1.1.1 fei_1/1 address 0 0
2.0.0.0 255.0.0.0 2.1.1.1 fei_1/2 direct 0 0
2.1.1.1 255.255.255.255 2.1.1.1 fei_1/2 address 0 0
3.0.0.0 255.0.0.0 3.1.1.1 fei_1/3 direct 0 0
3.1.1.1 255.255.255.255 3.1.1.1 fei_1/3 address 0 0
10.0.0.0 255.0.0.0 1.1.1.1 fei_1/1 ospf 110 10
10.1.0.0 255.255.0.0 2.1.1.1 fei_1/2 static 1 0
10.1.1.0 255.255.255.0 3.1.1.1 fei_1/3 rip 120 5
0.0.0.0 0.0.0.0 1.1.1.1 fei_1/1 static 1 0

10.1.1.1?
© ZTE All rights reserved 21
Contents

n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router

22
Routing function

n The functions of routing is to create and maintain route table,


make it ready for the LMP check in the forwarding process. It
requires several basic steps:

l What kind of protocols to route?


l Is the destination network address in the route table?
l What is the next hop address?
l Which interface to send out the packet?

© ZTE All rights reserved 23


Router working process summary

Add route based Search entry in route table


on route priority Based on destination address

Routing Route Forwarding


process table process

Longest match
principles
Routing protocol study
possible route, select the
best route based on metric

© ZTE All rights reserved 24


Review

n Basic concepts in routing


n Classification and features of route
n Relationship between route table and router

© ZTE All rights reserved 25


Questions

n How is the route table established?


n What is the standard when a router is selecting the route to route
table?
n When forwarding IP packet, If there are many matches, what will
router do?

© ZTE All rights reserved 26


Thank you

You might also like