Professional Documents
Culture Documents
G PDF
G PDF
CCNA Basics
RIP
1. Has an AD=100
1. Has an AD=120
http://ccnabasics.com/category/g-routing-protocols/
1/20
1/10/2015
count is 15.
IGRP timers:
Update Timer: These specify how frequently routing-update messages should be sent. The default is
90 seconds.
Invalid Timers: These specify how long a router should wait before declaring a route invalid if it
does not receive a specific update about it. The default is three times the update period.
Hold-down Timers: The holddown timer specifies the amount of time for which information about
poorer routes is ignored. The default is three times the update timer period plus 10 seconds.
Route Flush Timer: These indicate how much time should pass before a route should be flushed
from the routing table. The default is seven times the routing period.
IGRP has a number of features that are designed to enhance its stability, such as:
Holddowns used to prevent regular update messages from inappropriately reinstating a route that
may not be up.
Split horizons derived from the premise that it is usually not useful to send information about a
route back in the direction from which it came.
Poison reverse updates used to defeat larger routing loops, increases the hop count to one more
than the maximum hop count.
IGRP Updates
By default, a router running IGRP sends an update broadcast every 90 seconds. It declares a route
inaccessible if it does not receive an update from the first router in the route within 3 update periods i.e.,
270 seconds. After 7 update periods (630 seconds), the Cisco IOS software removes the route from the
routing table.
IGRP uses flash update and poison reverse updates to speed up the convergence of the routing algorithm.
Flash update is the sending of an update sooner than the standard periodic update interval of notifying
other routers of a metric change. Poison reverse updates are intended to defeat larger routing loops
caused by increases in routing metrics. The poison reverse updates are sent to remove a route and place
it in holddown, which keeps new routing information from being used for a certain period of time.
IGRP CONFIGURATION
Step
Command
Purpose
router igrp
<autonomous-system>
network <networknumber>
But dont worry about configuration of IGRP as it is no more supported by CISCO routers. An
Enhanced IGRP is supported these days called EIGRP.
http://ccnabasics.com/category/g-routing-protocols/
2/20
1/10/2015
RIP v2
It uses prefix routing or classless routing .it
sends subnet mask information with route
updates.
It supports multicasting.
RIP timers:
1.
2.
3.
4.
CONFIGURING RIP v1
RIPv1 sends routes without their subnet masks. It is the function of the router receiving the RIP route to
set a subnet mask for it.
Consider the figure below:
http://ccnabasics.com/category/g-routing-protocols/
3/20
1/10/2015
Each device
has been
allocated an
IP address in
the figure
above.
Following
commands
are used to
implement
RIP:
1. In global
config mode,
type in the
command router rip. This command adds the RIP routing protocol.
2. Now network command is used to tell the router on which interfaces to run RIP. Use the
command network <network address>.
3. Now, specify the next hop address using the command network <next hop address>.
In the figure shown above, implement RIP on each device.
Example: for
router1,
http://ccnabasics.com/category/g-routing-protocols/
4/20
1/10/2015
In the figure
above, you
can see
[120/1]
written next
to the
networks on
which RIP
has been
implemented.
The [120/1] is
the
administrative distance of the route (120) and 1 is the number of hops to that remote network.
ADMINISTRATIVE DISTANCE
The administrative distance (AD) shows the trustworthiness of a protocol. Directly connected networks
have AD value zero. Lesser the AD value, more trustworthy is the protocol.
Administrative distance of few is given in table below:
http://ccnabasics.com/category/g-routing-protocols/
5/20
1/10/2015
LOAD BALANCING
Load balancing is a concept that allows a router to take advantage of multiple best paths to a given
destination. The paths are derived either statically or with dynamic protocols, such as RIP, EIGRP,
OSPF, and IGRP. When a router learns multiple routes to a specific network, the route with the lowest
administrative distance is installed in the routing table. Sometimes the router must select a route from
among many, learned via the same routing process with the same administrative distance. The router
chooses the path with the lowest cost or metric to the destination. Load balancing is a concept that
allows a router to take advantage of multiple best paths to a given destination.
When routing IP, the Cisco IOS offers two methods of load balancing, per-packet and per-destination
load balancing. If process switching is enabled, the router will alternate paths on a per-packet basis. If
fast switching is enabled, only one of the alternate routes will be cached for the destination address, so
all packets in the packet stream bound for a specific host will take the same path. Packets bound for a
different host on the same network may use an alternate route, traffic is load balanced on a perdestination basis.
CONVERGENCE
Convergence is the speed and ability of a group of internetworking devices running a specific
routing protocol to agree on the topology of an internetwork after a change in that topology.
A network has converged when all routers have consistent knowledge and correct routing tables.
Routing loops can occur when inconsistent routing tables are not updated due to slow convergence
in a changing network.
If a network has not converged, the following are possible:
Inconsistent routing tables
Inconsistent traffic forwarding
Routing loops
RIP v2
RIP v2 is mostly the same as RIP v1.
Similarities and differences of both are given below:
Similarities of RIP v1 and RIP v2
1. Both are a distance vector protocol which means each router sends its complete routing tables out
to all active interfaces at periodic time intervals.
1. Timers and loop avoidance schemes are the same in both.
1. AD=120
1. Max hop count=15
http://ccnabasics.com/category/g-routing-protocols/
6/20
1/10/2015
RIPv1
RIPv2
1. Classful
1. Classless
1. Broadcast based
1. Supports VLSM
1. No authentication.
CONFIGURING RIPv2
1. In global config mode, type in the command router rip. This command adds the RIP routing
protocol.
2. Now network command is used to tell the router on which interfaces to run RIP. Use the
command network <network address>.
3. Now, specify the next hop address using the command network <next hop address>.
4. Type in the command version 2. This command makes you run RIP v2.
So, configuring RIPv2 is pretty easy and straight forward. If you notice, first 3 steps are same as
configuring RIPv1, just add command version 2 to run RIPv2.
Problems with RIP
IP classless command: In order for the Cisco IOS software to forward packets to the best supernet
route possible, use the ip classless command in global config mode. If the router receives a packet
for a subnet that does not have a default route and ip classless is enabled, it will forward the packet
to the subnet via a supernet route. A supernet route is a route that covers a greater range of subnets
with a single entry. For example, an enterprise uses the entire subnet 10.10.0.0 /16, then a supernet
route for 10.10.10.0 /24 would be 10.10.0.0 /16.
To disable this feature, use the no form of this command I global config mode as: no ip classless.
When this feature is disabled any packets received that are destined for a subnet that numerically
falls within the routers sub network addressing scheme will be discarded.
Passive-interface command: Another issue with routing protocols is the unwanted advertisement
of routing updates out a particular interface.
When a network command is issued for a given network while configuring RIP, it will
immediately begin sending advertisements out to all interfaces within the specified network address
range. To control the set of interfaces that will exchange routing updates, the network administrator
http://ccnabasics.com/category/g-routing-protocols/
7/20
1/10/2015
can disable the sending of routing updates on specified interfaces by configuring the passiveinterface command in global config mode.
The command is used as: passive-interface
<interface name>.
Posted in g. ROUTING PROTOCOLS
Leave a comment
August 20, 2012
http://ccnabasics.com/category/g-routing-protocols/
8/20
1/10/2015
7. It can select the best path via Diffusing Update Algorithm (DUAL).
What are protocol dependent modules?
EIGRP provides routing support for multiple network layer protocols through the use of protocol
dependent modules (PDMs). Each EIGRP PDM will maintain a separate series of table containing the
routing information that applies to a specific routing protocol.
9/20
1/10/2015
successors. If there are feasible successors, it will use any it finds in order to avoid any unnecessary
recomputation. Feasible successors are defined in more detail later
(http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080093f07.shtml) in this
document.
The protocol-dependent modules are responsible for network layer, protocol-specific requirements. For
example, the IP-EIGRP module is responsible for sending and receiving EIGRP packets that are
encapsulated in IP. IP-EIGRP is responsible for parsing EIGRP packets and informing DUAL of the
new information received. IP-EIGRP asks DUAL to make routing decisions and the results of which are
stored in the IP routing table. IP-EIGRP is responsible for redistributing routes learned by other IP
routing protocols.
Neighbour discovery
Before the EIGRP enabled routers exchange routes with each other, they must become neighbours.
There are 3 conditions for becoming neighbours:
HELLO or ACK (acknowledgement) received.
AS (autonomous system) numbers match.
Identical metrics (K values).
Link-state protocols send HELLO messages to establish neighborship. When the other router receive
HELLO message, it sends back an acknowledgement. EIGRP routers that belong to different
autonomous systems do not become neighbours. This is helpful in large networks as it reduces the
amount of route information propagated through a specific AS.
EIGRP advertises its entire routing table only when it discovers a new neighbour and forms an
adjacency with it through HELLO packets. Then, both neighbours advertise their routing tables to
one another. After each has learned its neighbours routes, only changes to the routing table are
propagated from then on.
When EIGRP routers receive their neighbours updates, they store them in a local topology table. This
table contains all known routers from all known neighbours and serves as the raw material from which
the best routes are selected and placed in the routing table.
Few terms are defined below:
FEASIBLE DISTANCE: this is the best metric along all paths to the remote network.
REPORTED/ADVERTISED DISTANCE: this is the metric of the remote network as reported by a
neighbour.
NEIGHBOR TABLE: each router contains state information about adjacent neighbours. When a
newly discovered neighbour is learned, the address and interface of the neighbour are recorded, and
this information is held in the neighbour table, stored in RAM.
TOPOLOGY TABLE: this table contains various protocol dependent modules acted upon by diffusing
update algorithm (DUAL). It contains all destinations advertised by neighbouring routers.
http://ccnabasics.com/category/g-routing-protocols/
10/20
1/10/2015
FEASIBLE SUCCESSOR: it is the path whose reported distance is less than feasible distance. A
feasible successor is the backup route and is stored in the topology table.
SUCCESSOR: it is the best route to the remote network.
RELIABLE TRANSPORT PROTOCOL (RTP): it manages communication of messages between
EIGRP configured routers. The EIGRP uses class-D address (224.0.0.9) to send multicast messages.
DIFFUSING UPDATE ALGORITHM (DUAL): it selects and maintains best path to each remote
network. It allows the following:
Backup route determination if available.
Support of VLSMs.
Dynamic route recoveries.
Queries for an alternate route if no route can be found.
CONFIGURING EIGRP:
1. Router (config)# router eigrp autonomous-system.
It defines EIGRP as the IP routing protocol.
2. Router (config-router)# network network-number. It selects participating attached networks.
EXAMPLE:
http://ccnabasics.com/category/g-routing-protocols/
11/20
1/10/2015
1. Router# show ip eigrp traffic. It displays the number of IP EIGRP packets sent and received.
http://ccnabasics.com/category/g-routing-protocols/
12/20
1/10/2015
Packet Formats
EIGRP uses five packet types:
Hello/Acks
Updates
Queries
Replies
Requests
Hellos are multicast for neighbour discovery/recovery. They do not require acknowledgment. A hello
with no data is also used as an acknowledgment (ack). Acks are always sent using a unicast address
and contain a non-zero acknowledgment number.
Updates are used to convey reach ability of destinations. When a new neighbour is discovered, update
packets are sent so the neighbour can build up its topology table. In this case, update packets are
unicast. In other cases, such as a link cost change, updates are multicast. Updates are always
transmitted reliably.
Queries and replies are sent when destinations go into Active state. Queries are always multicast
unless they are sent in response to a received query. In this case, it is unicast back to the successor that
originated the query. Replies are always sent in response to queries to indicate to the originator that it
does not need to go into Active state because it has feasible successors. Replies are unicast to the
originator of the query. Both queries and replies are transmitted reliably.
Request packets are used to get specific information from one or more neighbours. Request packets
are used in route server applications. They can be multicast or unicast. Requests are transmitted
unreliably.
SUMMARY
EIGRP is an interior gateway protocol that scales well and provides quick convergence
times with minimal network traffic.
EIGRP is an enhanced version of IGRP developed by Cisco, with improved convergence
properties and operating efficiency over IGRP.
The router eigrp and network commands can be used to create an EIGRP routing process.
The show ip eigrp commands can be used to verify the EIGRP configuration.
The debug ip eigrp privileged EXEC command can be used to display information on EIGRP
packets.
http://ccnabasics.com/category/g-routing-protocols/
13/20
1/10/2015
http://ccnabasics.com/category/g-routing-protocols/
14/20
1/10/2015
On the basis of LSA, topology table is created and then topology table is created.
Topology table/topology tree has information about all the nodes connected to a router. A packet is sent
from source to destination considering topology table.
DRAWBACK OF LSRP:
It is very time consuming as topology table needs a lot of time to be created.
It occupies more memory than distance vector routing protocol.
ADVANTAGE OF LSRP:
We can choose secondary or primary path to send packet, as required.
Posted in g. ROUTING PROTOCOLS
Leave a comment
August 20, 2012
http://ccnabasics.com/category/g-routing-protocols/
15/20
1/10/2015
http://ccnabasics.com/category/g-routing-protocols/
16/20
1/10/2015
In above scenario, BR is identified using IP address 40 as it is the highest IP address i.e., it is the RID.
The router with highest RID is made DR. If a router R1 is wants to share information with R2, it will
forward information to DR which will forward it to the destination.
http://ccnabasics.com/category/g-routing-protocols/
17/20
1/10/2015
http://ccnabasics.com/category/g-routing-protocols/
18/20
1/10/2015
Now exit the config mode using command CTRL+Z and save the configuration using command wr
and then press enter.
To check route, use command sh ip route in privileged exec mode.
1/10/2015
http://ccnabasics.com/category/g-routing-protocols/
20/20