0% found this document useful (0 votes)
7 views24 pages

Chap2 - Course2

Uploaded by

Song Lyrics
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)
7 views24 pages

Chap2 - Course2

Uploaded by

Song Lyrics
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/ 24

Network Management

– Course 2 –
Chapter 2 : TCP/IP addressing and routing (2/2)
Introduction

Dr. Nadira Benlahrache


NTIC Faculty
[email protected]

University Constantine2 2022/2023. Semester 2


Network Management

– Course 2 –
Chapter 2 : TCP/IP addressing and routing (2/2)
Introduction

Dr. Nadira Benlahrache


NTIC Faculty
[email protected]
Concerned Students :
Faculty/Institute Department Level Speciality

NTIC TLSI License 3 G.L.

University Constantine2 2022/2023. Semester 2


Data Routing
Routing Types
Protocole RIP

Objectives
Presentation of routing in IP networks,
Introduction of some dynamic routing strategies and their
metrics,
Introduction to the RIP routing protocol.

University Constantine2 © Dr. Nadira Benlahrache 2 / 23


Data Routing
Routing Types
Protocole RIP

Data Routing

Convey information: ensure the transport of data units from


the source to a destination designated by its address.

This process requires the developing techniques to decide


which route to follow. All of these techniques are called
routing.

each node, receiving a packet, will decide locally to which


next node the packet will be forwarded.

Thus, from close to close, the transfer of the packet will be


ensured from the source to the destination.

University Constantine2 © Dr. Nadira Benlahrache 3 / 23


Data Routing
Routing Types
Protocole RIP

Data Routing

University Constantine2 © Dr. Nadira Benlahrache 4 / 23


Data Routing
Routing Types
Protocole RIP

Routing Definition

The routing operation consists of the configuration and the


information of the routing table used by the nodes of a
network.

The rules used by routers and the types of information


exchanged for these tables, constitute the routing protocol.

The choice of a path is most often made on a criterion of


minimum cost.

University Constantine2 © Dr. Nadira Benlahrache 5 / 23


Data Routing
Routing Types
Protocole RIP

Routing Table

This is an example of a routing table:

University Constantine2 © Dr. Nadira Benlahrache 6 / 23


Data Routing
Routing Types
Protocole RIP

Routing Table
An entry in a routing table is usually a route to a specific network.
The basic components of each entry in the routing table are:
1 Destination address: this refers to the IP address of the

destination network.
2 Subnet mask/Netmask: It’s used to map the destination

address to the right network.


3 Gateway/Next Hop: this refers to the next IP address

(router) to which the packet is forwarded.


4 Interface: refers to the outgoing interface that connects to

the destination.
5 Metric: this assigns a value to each route to ensure that

optimal routes are chosen for sending packets. It is the cost to


get to the destination network. If multiple routes exist, the
route with the lowest metric is chosen.
University Constantine2 © Dr. Nadira Benlahrache 7 / 23
Data Routing
Routing Types
Protocole RIP

Routing problem

The major problem in routing is the taking into account


changes in the state of the network due to:
of failures,
a high traffic,
the process mobility (for wifi or ad-hoc networks), ...

Hence the existence of several routing strategies and


techniques.

University Constantine2 © Dr. Nadira Benlahrache 8 / 23


Data Routing
Routing Types
Protocole RIP

Types de Routage

There are two main classes of routing:


Static: The routing tables are permanently configured in each
node by the network manager.
▶ Efficient in small networks, few changes.

Dynamic: The routing tables evolve according to the current


state of the network (topology, load, node down, ...).
▶ Efficient in large networks, lots of addresses and lots of
changes.

Routing table management is generally distributed → Each node


updates its routing table.

University Constantine2 © Dr. Nadira Benlahrache 9 / 23


Data Routing
Routing Types
Protocole RIP

Shortest Path Routing

Static,
each table is constructed using shortest path calculation
algorithms between two nodes a weighted graph representing
the network (Ex. Dijkstra’s algorithm).

University Constantine2 © Dr. Nadira Benlahrache 10 / 23


Data Routing
Routing Types
Protocole RIP

Shortest Path Routing

Advantages:
Easy implementation,
Forwarding of packets is guaranteed.

Disadvantages:
Not optimal,
No fault management.

University Constantine2 © Dr. Nadira Benlahrache 11 / 23


Data Routing
Routing Types
Protocole RIP

Flooding algorithm

In this algorithm, each node send every incoming packet through


every outgoing link except the one it arrived on
Thus, after a while, he is informed by all his neighbors.

Advantages:
Very robust system,
Shortest path is always found.

Disadvantages:
mechanisms must be implemented to avoid overload of the
network and the loopback.

University Constantine2 © Dr. Nadira Benlahrache 12 / 23


Data Routing
Routing Types
Protocole RIP

Adaptive Routing
Routing tables are dynamically modified to adapt to changes
in traffic or network topology.
These modifications vary depending on the metric used
(number of hops, bandwidth,...) and/or
The nature of the source (locally from neighboring routers, or
from all routers).
Advantages:
Path always optimal,
Robust system.
Disadvantages:
No guarantee of packet delivery,
Consumption of bandwidth at the expense of data,
No mechanisms to ensure the consistency of data,
No mechanisms to handle convergence problems.
University Constantine2 © Dr. Nadira Benlahrache 13 / 23
Data Routing
Routing Types
Protocole RIP

Distance Vector Adaptive Routing

An example of AR (also called Bellman-Ford routing), an


algorithm used in ARPAnet and for the RIP protocol on the
Internet.
Principle: each router must know its neighbors and the cost to
reach them and so it can:
1 Maintain a distance vector indicating the best distance to
reach each router and the corresponding output line.
2 Update of the vector based on information received from its
neighbors.
3 Periodically send its distance vector to all neighbors.

– Convergence problem.

University Constantine2 © Dr. Nadira Benlahrache 14 / 23


Data Routing
Routing Types
Protocole RIP

Adaptive routing by link state information

Allows to mitigate the problem of the slowness of the convergence


of the algorithm with distance vector. This is the algorithm used
today.
Principle: Each router A must:
1 Discover neighboring routers,
2 Calculate the transit time to reach each neighbor,
3 Build a packet containing, for each neighbor X of A, the cost
for the link A-X, then send this packet to all routers,
4 Calculate the shortest path to each router (Dijkstra) using a
cost matrix built using packets received from other routers.

University Constantine2 © Dr. Nadira Benlahrache 15 / 23


Data Routing
Routing Types
Protocole RIP

Examples:

These are examples of dynamic protocols:


RIP: Routing Information Protocol (Number of Hops)
OSPF: Open Shortest Path First (Bandwidth, Cost*)
IGRP: Interior Gateway Routing Protocol (Delay, Reliability,
Bandwidth)
EIGRP: Enhanced Interior Gateway Routing Protocol (Delay,
Reliability, Bandwidth)
ISIS or IS-IS: Intermediate System to Intermediate System
(Cost)

*Cost: a value that can vary from 1 to 65535 with no particular meaning.

University Constantine2 © Dr. Nadira Benlahrache 16 / 23


Data Routing
Routing Types
Protocole RIP

RIP: Routing Information Protocol

RIP is known as a program that implements it: routed.


The program routed was carried out at the Berkeley
University of California:
A router RIP transmits to its neighbors the network addresses
it knows (either the addresses of its interfaces, or the
addresses discovered via other routers) as well as the distance
to reach them.
These address/distance pairs are called distance vectors.
The metric used by RIP is the number of routers to traverse
(hop or hops) before reaching a network.

University Constantine2 © Dr. Nadira Benlahrache 17 / 23


Data Routing
Routing Types
Protocole RIP

General RIP Algorithm


When initializing the router,
1 it determines the network address and its interfaces
2 each sends a full or partial RIP table request to neighboring
routers.
Upon receiving a request, a router sends its table according to
the request.
When receiving a response, it updates its table if necessary.
Two cases can arise:
1 for a new route, it increments the distance, verifies that it is
strictly less than 15 and immediately broadcasts the
corresponding distance vector;
2 for an existing route but with a lower distance, the table is
updated. The new distance and, possibly, the address of the
router if it differs are integrated into the table.
RIP considers a router that hasn’t heard from for three
minutes to be down.
University Constantine2 © Dr. Nadira Benlahrache 18 / 23
Data Routing
Routing Types
Protocole RIP

RIP on Linux

1 The command:
Router♯ ip route show
displays an initial routing table.

2 These commands allow you to statically configure the router:


Router♯ route add -net ip1 netmask mask gw ip2
Router♯ route add default gw ip

3 Activate RIP by:


Router(RIP)(config)♯ router rip
Router(RIP)(config-router)♯ redistribute connected

University Constantine2 © Dr. Nadira Benlahrache 19 / 23


Data Routing
Routing Types
Protocole RIP

RIP Routing Table

-Destination: route destination address


-Gateway: IP address of the gateway to reach the route, *
otherwise
-Genmask: mask to use.
-Metric: route metric cost (0 by default)
-Ref: number of routes depending on this one,
-Use: usage count in routing table
-Interface: interface eth0, eth1, lo.
University Constantine2 © Dr. Nadira Benlahrache 20 / 23
Data Routing
Routing Types
Protocole RIP

Conclusion

This course aimed to:


Introduce the basics of the routing mechanism in TCP/IP
networks.

Present some dynamic routing strategies and the RIP protocol


in some detail.

University Constantine2 © Dr. Nadira Benlahrache 21 / 23


Data Routing
Routing Types
Protocole RIP

References

CCNA Exploration 4.0 /Routing Protocols and


Concepts/Instructor Handbook,
Configuration, implementation and administration of Internet
and Intranet servers under Linux.
Basics of Linux system administration. Sébastien Namèche
(sebastiennameche.fr)
Linux network administration. Source:
http://en.wikibooks.org/w/index.php?oldid=171613
Contributors: Michael Witrant, Tavernier

University Constantine2 © Dr. Nadira Benlahrache 22 / 23


Data Routing
Routing Types
Protocole RIP

Some useful links

http://technet.microsoft.com/fr-fr/library

http://www.linux-france.org/prj/edu/archinet/systeme

University Constantine2 © Dr. Nadira Benlahrache 23 / 23

You might also like