CCNA, Fundamental & Routing PDF
CCNA, Fundamental & Routing PDF
Some people may think that CCNA is just a ways for Cisco to make more money and while these
certificates doesnt prove that its holders know anything about networks. But I think, the value of
certifications programs is not in the piece of paper you receive when you pass the exams, but
in the knowledge and experience you gain when you study and practice. Unfortunately not
everyone who completes a program gains the same level of knowledge and experience so lets see
what you will gain after studying CCNA??
Probably
To meet the CCNA certification skills level, you must be able to understand or do the following:
- Install, configure, and operate simple-routed LAN, routed WAN, and switched Virtual LAN
(VLAN) networks.
- Understand and be able to configure IP, IGRP, EIGRP, OSPF, serial interfaces, Frame Relay, IP
RIP, VLANs, Ethernet, and access lists.
- Optimize WAN through Internet-access solutions that reduce bandwidth and WAN costs, using
features such as filtering with access lists, bandwidth on demand (BOD), and dial-on-demand
routing (DDR).
In the next few papers we are going to cover the basics of networks and some of the routing protocols
based on Cisco Materials. Now lets jump into our first topic.
2
CCNA, Fundamental and Routing
Network Fundamentals
3
CCNA, Fundamental and Routing
Messages: that travel from one device to another. Messages take many forms.
Medium: that is used to interconnect devices and can transport the messages from one device to
another.
4
CCNA, Fundamental and Routing
3-There is a channel that consists of the media that provides the pathway for the message.
Elements of Communication:
5
CCNA, Fundamental and Routing
No other device
would be able to
send or receive
messages on the
same network.
1- Significant delays
Segmentation has
two benefits:
1- Multiplexing:
2- Reliability
6
CCNA, Fundamental and Routing
Segmentation Disadvantage:
7
CCNA, Fundamental and Routing
End Devices
Any device that allows us to interface with the network. End devices are referred to as
hosts and are either the source or destination of a message.
8
CCNA, Fundamental and Routing
A host can be a
client, a server or
both.
The software
installed on the device determines its role.
Servers:
Software that enables them to provide information and services (E-mail, Web
Pages) to other hosts on the network.
Client:
Software installed that enables them to request and display the information
obtained from the server.
Intermediary Devices:
9
CCNA, Fundamental and Routing
Not all network media are appropriate for the same purpose.
Environment
Bandwidth
Installation cost
10
CCNA, Fundamental and Routing
An individual network usually spans a single geographical area, providing services and
applications to people within a common organizational structure, such as a single
business, campus or region.
11
CCNA, Fundamental and Routing
A TSP traditionally transports voice and data on different networks. Now, providers are
offering converged network services.
It is like collection of many LANs. We have to know here what does the Internet Service
Providers (ISPs) are: They are the companies that connect their customers to the Internet
through their network infrastructure. For example T-Mobile and Oneetc.
The Internet, then, is a collection of ISPs co-operating with each other to form one large
converged internetwork.
12
CCNA, Fundamental and Routing
Protocol Suite:
Cannot function without a set of standards that network vendors can follow.
13
CCNA, Fundamental and Routing
The International Organization for Standardization (ISO) released the Open Systems
Interconnection (OSI) reference model in 1984.
TCP/IP Models
14
CCNA, Fundamental and Routing
1. The link layer (commonly Ethernet) contains communication technologies for a local
network.
2. The internet layer (IP) connects local networks, thus establishing internetworking.
4. The application layer (for example HTTP) contains all protocols for specific data
communications services on a process-to-process level (for example how a web browser
communicates with a web server).
15
CCNA, Fundamental and Routing
16
CCNA, Fundamental and Routing
What is router?
A devise we use to connect different networks together.
17
CCNA, Fundamental and Routing
1-directly connected network: which is a network that is directly attached to one of the router
interface. After you activate the interface then it will add immediately automatic in the routing
table
You will find the letter(C) before the routing line as you see here
Remote networks are added to the routing table using two methods:
18
CCNA, Fundamental and Routing
Static Routes:
The router only knows about its own directly connected networks.
Static and dynamic routes cannot exist in the routing table without first
configuring a routers own directly connected networks.
The router cannot send packets out an interface unless that interface is enabled
with an IP address and subnet mask.
Static Routing:
A static route is defined using the:
Static routes are denoted with the code S in the routing table.
19
CCNA, Fundamental and Routing
Here R1 has automatically learned about the 192.168.4.0/24 network from R2 through the
dynamic routing protocol RIP (Routing Information Protocol).
20
CCNA, Fundamental and Routing
The fewer number of hops (lowest metric), the better the route.
Bandwidth as a metric:
The bandwidth is the carrying capacity (speed) of the link.
The metric is a calculated value that represents the fastest route to the destination
based on the speed of the links between the source and destination.
21
CCNA, Fundamental and Routing
22
CCNA, Fundamental and Routing
The process of how the router determines which path to use when forwarding a packet.
The router searches its routing table for a network address that matches the
packets destination network.
Remote network.
No route determined
R1 looks in the routing table and determines that the destination network is out its
FastEthernet port.
The packet is forwarded directly to the device with the packets destination IP
address.
Remote Network:
R1 looks in the routing table and determines that the path to the destination
network is via its WAN port.
The packet is forwarded to another router. Remote networks can only be reached by forwarding
packets to another router
23
CCNA, Fundamental and Routing
R1 looks in the routing table and cannot find a path to a directly connected
network or remote network.
If the router does not have a default route, the packet is discarded. The router
sends an Internet Control Message Protocol (ICMP) Unreachable message to the
source IP address of the packet.
24
CCNA, Fundamental and Routing
RIP evolved from the Xerox Network System (NS) in the late 1970s.
Various vendors included their own, slightly different, version of the protocol in their
networking software.
The first version of RIP is often called RIPv1 to distinguish it from RIP version 2
(RIPv2).
RIP Characteristics:
RIP is a Distance vector routing protocol uses hop count as its only metric for
path selection. Advertised routes with hop counts greater than 15 are considered
unreachable. RIPv1 uses broadcast every 30 seconds to update the routing table.
While RIPv2 uses Multicast every 30 seconds.
RIP Operation
When we enable Rip in our routers, this is what will happen to build or update the routing table.
If its already in the routing table and has a better hop count (lower), the
routing table is updated.
4- The requesting router then sends a triggered update out all interfaces that contains
its routing table.
Here Example explaining what really will happen when we decide to use RIP V1.
26
CCNA, Fundamental and Routing
RIPv1 is a classful routing protocol and all networks MUST have the same subnet mask.
28
CCNA, Fundamental and Routing
30
CCNA, Fundamental and Routing
Some routers can have interfaces that do not connect to another router -look again at our
example-there is no reason to send routing updates out that interface.
So we can use the passive-interface command with RIP to configure an interface to NOT send
those updates.
Default Routes
Default Route:
A special static route that is used to route packets with a destination IP address
that does not match any of the other routes in the routing table.
31
CCNA, Fundamental and Routing
32
CCNA, Fundamental and Routing
RIPv1 (a classful routing protocol) is used as an example, so we can see how RIPv2 (a
classless routing protocol) does not have these same limitations.
By default, when a RIP process is configured on a Cisco router, it is running RIPv1. Even
though the router only sends RIPv1 messages, it can interpret both RIPv1 and RIPv2 messages.
A RIPv1 router will just ignore the RIPv2 fields in the route entry.
33
CCNA, Fundamental and Routing
(Here with RIP V2 that support classless as we see the network 172.30.1.0/24 not 16)
34
CCNA, Fundamental and Routing
Ciscos Interior Gateway Routing Protocol (IGRP) has been discontinued and is no
longer supported by Cisco
The EIGRP frame is encapsulated just like any other frame on an Ethernet network and like any
other protocol, the content of the fields themselves is important to the proper functioning of
EIGRP.
*Unlike a RIP broadcast, EIGRP multicasts its frames using a specific multicast address.
Only those hosts on the network (other routers) listening on that address will accept the
frame.
35
CCNA, Fundamental and Routing
Contains information regarding the metric and the hold time for the route to the receiving
neighbour.
As we Know RIP uses hop count to provide the metric used to determine the best path to
a destination but EIGRP uses weighs bandwidth, delay, reliability and load to produce a
composite metric value. These weights are included in the K value fields.
Others default to 0.
It is the amount of time that the EIGRP router receiving this message should wait
in between messages. If this timer expires before another EIGRP message is
received, the receiving router will consider the sending router to be down.
36
CCNA, Fundamental and Routing
2-Prefix Length.
3-Destination
Delay is calculated as the sum of delays from source to destination in units of 10 microseconds.
Bandwidth is the lowest configured bandwidth of any interface along the route.
2-Prefix Length:
Essentially the subnet mask like Subnet mask of 255.255.255.0 has a prefix length of 24, 255.255.0.0/16.
3-Destination:
It means the destination network and because the minimum length of this field is 24 bits, the
remainder of the field is padded with 0s and if a network address is longer than 24 bits
(192.168.1.32/27), the field is extended for another 32 bits and the unused bits are padded with
0s.
37
CCNA, Fundamental and Routing
What is AS?
Protocol-Dependant Modules(PDM):
Protocol-Dependant Modules are responsible for the specific routing tasks for each
network layer protocol. Each PDM keeps route and topology information readily
available in RAM so it can react quickly to changes.
1- Neighbor Table:
2- Topology Table:
Includes route entries for all destinations that the router has learned.
3- Routing Table:
EIGRP chooses the best routes to a destination from the topology table and places
these routes in the routing table.
38
CCNA, Fundamental and Routing
The autonomous system parameter is a number chosen by the network administrator between 1
and 65,535.
The Global configuration mode router eigrp command enables EIGRP. All routers in an EIGRP
routing domain must use the same process ID number (autonomous system number) which is 1
in our case here.
The network command in EIGRP has the same function as in other IGP routing protocols any
interface on this router that matches the network address in the network command will be
39
CCNA, Fundamental and Routing
By default, when the network command and a classful network address such as 172.16.0.0 are
used, all interfaces on the router that belong to that classful network address will be enabled for
EIGRP.
There may be times when the network administrator does not want to include all interfaces
within a network when enabling EIGRP.
To configure EIGRP to advertise specific subnets only, use the wildcard-mask option by thinking
of a wildcard mask as the inverse of a subnet mask. To calculate the inverse of the subnet mask,
subtract the subnet mask from 255.255.255.255 as we see blow.
On most serial links, the bandwidth metric defaults to 1544 Kbps as we will see later.
41
CCNA, Fundamental and Routing
Cisco IOS software uses bandwidth to calculate the OSPF cost metric.
As we see we have four steps for encapsulation for example IP Packet header adds the source
and destination IP address and so on. Before two routers can form an OSPF neighbor adjacency,
they must also agree on three values:
Hello interval
Dead interval
Network type
43
CCNA, Fundamental and Routing
The OSPF Hello interval indicates how often an OSPF router transmits its Hello packets.
2- Dead interval
The OSPF Dead interval is the period, expressed in seconds, that the router will wait to receive a
Hello packet before declaring the neighbor down. Cisco uses a default of four times the Hello
interval.
If the Dead Interval expires before the routers receive a Hello packet, OSPF removes that
neighbor from its link-state database. The router floods the link-state information about the
down neighbor out all OSPF-enabled interfaces. Stay tuned for Network Type.
To reduce the amount of OSPF traffic on multi-access networks, OSPF elects a Designated
Router (DR) and Backup Designated Router (BDR).The DR updates all other OSPF routers
when a change occurs in the multi-access network. The BDR takes over as DR if the current DR
fails.
Authentication
Like other routing protocols, OSPF can be configured for authentication. Authentication ensures
that routers will only accept routing information from other routers that have been configured
with the same password or authentication information .
44
CCNA, Fundamental and Routing
As we see that the addressing scheme is discontiguous. And because OSPF is a classless routing
protocol so we will include the subnet mask as part of our configuration.
Like EIGRP, OSPF requires a Process ID Between 1 and 65,535 and chosen by the network
administrator.
Unlike EIGRP, the process ID is only locally significant. Does not have to match on all OSPF
routers.
For consistency, we will enable OSPF on all three routers using the same Process ID of 1.
45
CCNA, Fundamental and Routing
Any interfaces on a router that match the network address in the network
command will be enabled to send and receive OSPF packets.
The network address, along with the wildcard mask, is used to specify the
interface or range of interfaces that will be enabled for OSPF using this network
command.
All OSPF routers in the same area must have the same link-state information in
their link-state databases .
46
CCNA, Fundamental and Routing
Verifying OSPF
Two routers may not form an OSPF adjacency if any one of the following conditions is present:
1. The subnet masks do not match, causing the routers to be on separate networks.
There are some powerful troubleshooting tools that we can use to check our ospf configurations:
1. Show ip protocols
2. Show ip ospf
3. Show ip ospf interface [interface]
47
CCNA, Fundamental and Routing
Networks are more than just connecting cables. They are a complex and sophisticated
combination of protocols, software and hardware. Based on many market studies we consider
Cisco as one of the top networking company the world but we have to mention that there are
some companies whom provide similar products and services with lower cost than Cisco like
Huawie and Juniper also HP as well. The competition is so high between them but the
performance and quality of service goes to Cisco for sure.
My plan was to cover all CCNA parts (four parts) but I think CCNA is bigger than what I can
cover in one project. I tried as much as I can to not make my project just as any other paper. I
have added some real examples with picture from different recourses almost covering everything
in the project. In the end I was only able to cover two parts of CCNA (Network fundamentals
and Routes &Routing).
I think the other two parts (switching and wan) are more easier after we already know by now the
main concepts in the network world.
I know that some people may think that CCNA's topics are only apply on Cisco devices which is
not true since the concept for all protocols is the same in Cisco, Juniper, Huawie...etc However
the only difference is how to implement these protocols on Cisco, Juniper or Huawie devices.
I hope I succeeded to explain and show these parts of the CCNA and I think it is very important
for those who are studying communication networks & security to start with this interesting
certification program. I really enjoyed studying this course for the first time and I enjoyed more
when I revise it again now to write this few papers and solve the practical exercises.
Ahmed Mehiny
mk.linkedin.com/in/ahmedmehiny/
48
CCNA, Fundamental and Routing
http://cisco.netacad.net
http://arabhardware.net
http://www.edu.arabsgate.com
http://docwiki.cisco.com/wiki/Internetworking_Technology_Handbook
http://www.ccnahelp.com/osi-model.php
http://ciscotests.org/ccna.php
49
CCNA, Fundamental and Routing