Redes de Comunicaciones de Datos Routing: Ing. Marco A. Ortiz N
Redes de Comunicaciones de Datos Routing: Ing. Marco A. Ortiz N
Routing
Ing. Marco A. Ortiz N.
An autonomous system (AS) is a network under a single
administrative control.
2
An autonomous system (AS)
4
Figure3. Network infrastructure. Source: Implementing Cisco IP Routing, 2015
Routing protocols
6
Routing protocols
7
Figure4. Routing protocols. Source: Implementing Cisco IP Routing, 2015
Routing protocols
8
Figure5. Routing protocols detailed. Source: Implementing Cisco IP Routing, 2015
Principles of Static Routing
A static route can be used in the following circumstances
9
References
10
“To find the best route, an internet can be modeled as a graph. A
graph in computer science is a set of nodes and edges (lines) that
connect the nodes. To model an internet as a graph, we can think
of each router as a node and each network between a pair of
routers as an edge. An internet is, in fact, modeled as a weighted
graph, in which each edge is associated with a cost.” (Forouzan,
2013, p. 596)
11
Graphs
Undirected G(N,E)
Directed
Weighted
“The ends of an edge are said to be incident
with the edge, and vice versa” (Bondy et. al,
2008, p. 3 )
Adjacent nodes: Incident with a
common edge.
Undirected
Directed
Weighted
G(N, E, W)
Graphs - Weighted
The sequence of nodes is a path if
Bellman-Ford Dijkstra
19
Bellman-Ford algorithm
20
Distance-Vector Routing
21
Distance-Vector Routing
First: when the corresponding node has been booted, these
vectors are made (asynchronously)
22
Distance-Vector Routing
Second: Improve vectors by exchanging information.
Each node sends a copy of the vector to all its immediate
neighbors.
After a node receives a distance vector from a neighbor, it
updates its distance vector using the Bellman-Ford equation
23
Routing Information Protocol
(RIP)
Distance Vector
The cost is defined as the number of hops, which means
the number of subnets a packet needs to travel
through from the source router to the final destination
host.
RIP, the maximum cost of a path can be 15, which
means 16 is considered as infinity (no connection).
RIP can be used only in autonomous systems in which
the diameter of the AS is not more than 15 hops
Periodic updates.
24
Routing Information Protocol
(RIP)
25
26
RIP
27
RIP
28
RIP
RIP format
Each entry carries the information related to one line in the forwarding table of the
router that sends the message
29
A request message is sent by a router that has just come
up.
A request message is sent by a router that has some
time-out entries.
A request message can ask about specific entries or all
entries.
30
RIP
The receiver adds one hop to each cost and changes the
next router field to the address of the sending router.
• If the received route does not exist in the old forwarding table, it should
be added to the route.
• If the cost of the received route is lower than the cost of the old one, the
received route should be selected as the new one.
• If the cost of the received route is higher than the cost of the old one, but
the value of the next router is the same in both routes, the received
route should be selected as the new one.
31
RIP timers
periodic timer: controls the advertising of regular update
messages. (between 25 and 35 seconds)
32
Marco A Ortiz N
33
Marco A Ortiz N
34