We’re nov moving to another section or chapter nitong mga free lessons dito sa ccnaphilippines blog. After natin pag-usapan ang network fundamentals at switching fundamentals, we’re now moving into ip connectivity.
Let’s keep this going.
Understanding routers
Before we dive deep at bago natin puntahan ang about sa routing, daanan at pag-usapan muna natin ang mga routers. Kailangan natin itong maintindihan para mas maunawaan pa natin kung papaano ito gumagana.
Cisco router components
Malaki ang pinag-kaiba ng mga managed router(kagaya ng Cisco router) sa mga pang-karaniwang routers na nakikita natin sa bahay at sa mga maliliit na opisina. They look differently and they act in different ways.
For example, ang mga karaniwang routers na nakikita natin sa bahay or maliliit na office ay mga plug and play routers. Meaning, hindi na natin sila kailangan i-configure at busisiin, iko-connect lamang natin ang mga ito(usually sa modem) and then internally sa ating mga switches(kung meron) and it will work on its own.
Kung sa mga bahay naman natin, usually modem-router na ito at ipo-power on lang ok na. Ito na rin ang kadasang nagbibigay ng mga ip addresses(acting as dhcp server) sa ating mga devices.
Ang ilan sa mga sikat na home router ay gaya ng d-link, Linksys, asus, huawei at iba pa. Ang mga ito ay plug and play kadalasan at ready to work na kapag binili natin or ikinabit ng ating isp technician.
Ang mga managed or in our case, Cisco routers ay hindi ganun. Ang mga Cisco routers na ginagamit sa enterprise or businesses, mga malalaking offices at mga managed network ay kailangan i-configure at i-manage ng mga katulad nating network administrator or engineer. Kadalasan, ang mga ito ay mas malalaki ang size, mas matataas ang capacity at siyempre mas mahal.
Hindi rin ito plug and play na kagaya ng karaniwang home routers. Ito ay may sariling operating system or internetwork operating system “ios” in case of Cisco. Meaning they are run by a specific software na parang mga normal desktop computers.
To make it more simple, here’s a desktop pc and it’s common components.

As you can see di ba, meron tayong iba’t ibang components. Hard drive, mother board, cpu, ram, video card etc. Ang mga managed or Cisco routers, ganun din.
May sarili silang mga components or modules na may kanya-kanyang functions. For example, ito ang ilan sa mga karaniwang components ng isang Cisco router.
- Interfaces
- The Processor (CPU)
- Internetwork Operating System (IOS)
- RXBoot Image
- RAM
- NVRAM
- ROM
- Flash memory
- Configuration Register
- Fan
Gaya nga ng nabanggit ko, they look like a normal desktop pc(nakahiga nga lang) ang have several components. Yung iba replaceable at yung iba naman ay naka-fixed.
Kung sa desktop, pwede tayong magpalit ng video card, ram etc. Sa ating Cisco router pwede ding palitan ang ilang components like modules, interfaces, fan at iba pa. Here’s an example of a Cisco router(7200 series) and its components(image taken from official Cisco website).

In actual photo, it looks like this(also taken from Cisco official website).

As you can see, the components of the router above almost the same like a normal desktop pc. And it’s just one of the example.Yung ibang model ng mga routers ni Cisco mas malalaki pa diyan at siyempre mas marami pa ang components.
Does it make sense now?
Cisco router interfaces
Kasama na rin sa components ng routers ni Cisco ang kanilang mga interfaces pero daanan din natin ito to give you some overview and familiarization. Ang mga interfaces ay ang mga ports kung saan tayo kumo-konekta sa ating router.
For example, console port or di kaya naman auxillary port. Kasama na rin dito ang mga WAN/LAN interfaces na pwedeng iba’t iba ang speed or capacity.
Here’s an example or illustration of some of the Cisco router’s common interfaces.

As you can see in our sample image above, makikita natin ang iba’t ibang type ng port or interface n gating Cisco router. We can also see na meron tayong mga “slot” kung saan pwede pa tayong magdagdag ng mga modules or line cards.Think of it like a normal desktop kung saan meron kang mga slot for ram, video cards, sound card and more.
Ang mga common types of interfaces na makikita natin sa Cisco routers: Fastethernet, Gigabitethernet and a Serial.
Here’s an illustration of how we read router’s interfaces:

Ibig sabihin, kapag ang mga interface na nakita natin ay FastEthernet0/1, the concept is the same. Fastethernet(interface type), 0(slot #) and 1(the interface #). Madali lang di ba?
Connecting to a Cisco router
Ang pag-connect sa router ay pareho lang din kung papaano tayo kumokonek sa ating mga switches. If we’re connecting to the router for the first time(let say out of the box at ico-configure natin ito) we need a console cable and a terminal program.
Here’s a sample illustration.

Ang mga program or software na ginagamit natin sa pag-connect sa mga routers(and switches) ay tinatawag na terminal program. Ang ilan sa mga karaniwang ginagamit ay putty(free), securecrt, terraterm at iba pa.
To give you a real overview how it really looks in real life, here’s how it looks.

Sa ating example above, you can see an actual Cisco router with a console cable connected at the back of it. Itong console cable na ito ay yung rj-45 at db-9 ang pins sa magkabilang dulo.
Yung db-9 pin ang iko-connect natin sa ating desktop or laptop)kung may serial port. Then we will use a terminal program(like putty, securecrt, terraterm or others) to access to cli or command line interface of the router. See example image(using putty) below.

From there, pwede na tayong mag-verify at mag-configure ng ating router.

Now that we understand the main components of a router and how to access it, ang susunod na pag-uusapan naman natin ay kung papaano ito gumagana or tumatakbo. Kung papaano ang ‘functions’ nito at papaano ito ginagamit sa ating enterprise networks.
Routing Fundamentals
We’ve already discussed this on the initial part of our lesson(networking devices), pero para mas maintindihan pa natin, I’ll included them again here.
Let’s go.
How routers work
Ang main function ng router is to route data(packets ang tawag kapag nasa layer 3 ng OSI) from one host or network to another host or remote network. Meaning, si router ang bahalang mag-forward ng packet from source to destination network using network address. Kung si switch mac-address ang tinitingnan, si router naman ay IP addresses.
Malinaw ba idol?
Ok tuloy tayo. So once matanggap ni router ang request, iche-check n’ya ang destination IP address then ide-determine niya kung kanino ito pwede ipadala (next hop address) at ifo-forward niya ito.
Ulit lang ang mangyayari sa mga kasunod na router hanggang sa makating ang packet sa tamang destination. Nalalaman niya ito sa pamamagitan ng kanyang routing table. Ang routing table ay listahan ni router ng mga posibleng “routes” or path kung pano mararating ang iba’t ibang network or destination.
Gets na?
Let me copy the information we have in the network device function para sa router. Ito ay para mas-ma-refresh at mas maging malinaw ang pagka-unawa natin sa ating router.
Ang router naman ay ang networking device na nag-ooperate sa layer 3 ng OSI model. Ito ang concern sa pagro-route ng packets from one network to another. Kagaya ng mga swithces, meron din capabilities ng mag-analyze at mag-filter ng traffic ang mga routers(using ip addresses).
Dito ibina-base ng mga router ang decision nila kung papano nila ipapadala ang packets from source network to the destination network.
Kung ang isang switch ay isang malaking broadcast domain, sine-segragate naman ng router ang broadcast dahil ang isang PORT or INTERFACE nito ang siya lamang member ng naturang broadcast domain. Ibig sabihin, isang port lang ng router ang pwedeng maka-receive ng broadcast galing sa switch.
Kung ang mga switches ay concern sa mac-addresses ng mga devices na connected sa port nito, ang mga routers naman ang concern sa IP addresses ng mga devices at network addresses kung saan sila nabibilang.
Kagaya nga ng nabanggit ko kanina, ito ay nag-ooperate sa layer 3 ng OSI model. Ginagamit ng router ang IP address information para malaman niya kung saan iro-route or ipapadala ang packets.

Kung ang mga devices na gustong mag-communicate ay nasa isang “subnet” or network lamang, hindi na natin kakailanganin ng router or layer 3 device(pero imposible ito lalo na sa enterprise or malalaking networks).
Kung merong dalawang devices na nasa magka-ibang network at gustong mag-communicate, kakailanganin ng isang router or layer 3 device para mai-route ang packet mula sa source papunta sa destination.
Magbigay tayo ng halimbawa.

Sa sample image natin sa taas, meron tayong dalawang network (Accounting and Engineering). Paki-ignore muna yung mga IP addresses, we will discuss about them in the future lessons.
So bago maka-pagcommunicate si host A kay host F, since mag-kaibang subnet or network sila, kinakailangan natin ng router or layer 3 device para mai-route ang mga packets papunta sa Engineering network (192.168.2.0/24) galing sa Accounting network(192.168.1.0/24).
In a nutshell, ganito ang nangyayari. Si host A magsesend ng request kay switch na gusto niya maki-pagcommunicate kay host F. Si switch naman, titingnan niya ngayon sa mac-address table niya kung nakalista ang mac-address ni host F. Kung nakapag-communicate na sila before, nakalista na ito sa mac-address table ni switch at alam na niya na ipapadala niya ito sa port or interface kung saan naka-connect si router (remember how switch work? Ganun pa rin).
Ganito naman ang nangyayari pagdating sa router.
Host A: Kelangan ko maka-usap si host F. Pano s’ya puntahan?
(Since ang mga router ay nag-ooperate sa layer 3, IP address ang tinitignan nila).
Router: Ok host A, let me check my routing table kung pano ka makaka-pag communicate kay host F. Patingin ng IP address n’ya pati na rin IP address mo.
Kung ang destination IP address or IP address ni host F ay nasa routing table ni router, ipapadala ni router ang packet sa interface na associated sa network na iyon. In this case, another switch papunta kay Engineering network.
Router: Base sa aking routing table, ang IP address ni host F ay nasa network 192.168.2.0/24. At base sa “routing protocols” na naka-set sakin, makakarating ka doon via EIGRP. Let me send your request to that now (pag-uusapan natin ang mga routing protocols in the future).
Marereceive ng switch sa Engineering network side ang request at mauulit kung papaano gumagana ang isang switch. I-checheck ni switch (Engineering network side) ang mac-address ni host F sa kanyang mac-address table at ipapadala n’ya ang request kung saang port ito connected.
Kung walang route na naka-set sa routing table ni router papunta kay host F or kay Engineering network maaring i-drop ni router ang packet or depende sa naka-set na configurations.
What is a routing table?
Okay, since ilang beses nating nabanggit ang salitang routing table, let me explain what it means. Kung ang mga switch ay may mac-address table na ginagamit nila sa pag-analyze ng frames at pag-dedecide kung saan ito ipapadala, ang mga router naman ay may routing table na listahan ng mga “routes” kung aling mga networks or destination siya pwedeng makipag-communicate at mag-send ng packets.
Ang mga routes ay pwedeng manually configured sa mga router or pwede ring “dynamically learned” via routing protocols. Ididiscuss natin ang mga ito sa future articles.
We’ve already discussed at nadaanan na natin ang routing table pero to solidify your understanding, let’s dig deeper.Ang routing table ang “database” or list ng mga routes or “destination” kasama ng kanilang mga path kung paano ito mararating. As we’ve already discussed, ito ang ginagamit ng router to decide kung papaano niya mararating ang isang destination network or address.
Ang mga router(or layer 3 switch) ang naghahandle ng routing table. It can be as simple as 2 simple routes or it can be as large as a full database of routes with hundreds and thousands of routes inside(for example routing table of an ISP). We use the command “show ip route” to view the routing table and it’s content.
Take note, the routing table only install or show “best route” to a certain destination. Ibig sabihin, kahit madaming possible way papunta sa isang network destination, ang inililista lang niya sa kanyang routing table ay ang best routes. Yung ibang path or way for the same destination(for example via other routing protocols) are reserved as backup and can be pull-up anytime happens sa primary path. We will learn more about them in the coming lessons.
Here’s a sample of an actual routing table.

Some terminologies:
Para mas madali pa nating maintindihan, ito yung ilan sa mga terminologies na makikita or ibig sabihin ng mga nakikita natin sa routing table.
- Route source – how the route was learned
- Destination network – address of the remote network
- Outgoing interface – exit interface to use when forwarding packets to the destination
- Codes – symbols or abbreviations used to illustrate a route or routing protocol
Here’s the illustration kung papaano sila i-interpret.

How routers route packets
Let’s have another example.

Sa ating sample image sa taas meron tayong dalawang PC na nasa magka-ibang network na connected sa isang router. Ganito ang mangyayari.
Si Host A gustong maki-pag communicate kay Host B kaso si Host B ay nasa ibang network (10.0.0.0/8). So since nasa remote network si Host B, mapupunta ang packet kay router(again sa pamamagitan ng default gateway sa internal network na 192.168.0.0/24). Matatanggap ni router ang packets then iche-check niya kung meron siyang entry sa routing table para doon sa destination address (so ibig sabihin meron bang route papunta kay 10.0.0.0/8 network kung nasaan si Host B).
Kung meron, ipapadala ito ni router sa appropriate interface or port(this time is interface Fa0/1). Kung wala ido-drop niya ito or pwedeng sa default route, depende kung ano naka-configure sa router.
This is just to simplify everything.
In real world, they can be interconnected into a switch. Pero gaya din ng mga naunang example natin kung paano gumagana ang switch at router, same thing din ang mangyayari. The router main function is to connect different networks together.
Like in our example, ang subnet kung nasaan si Host A(192.168.0.0/24) at ang subnet kung nasaan si Host B(10.0.0.0/8). Without using a router(or layer 3 device) there is no way na pwedeng mag-communicate anga mga devices on those subnets/network.
Ngayon alam na natin ang main function at role ng router sa ating network, let’s talk about how they decide and choose the “best path” to the destination.
Kung matatandaan mo, posibleng meron tayong different path or way para marating ang isang destination, ngayon pano nalalaman ni router kung alin ito at paano niya ito pinag-dedesisyunan. Dito pumapasok ang iba’t ibang klase ng routes, routing protocol, administrative distance, metric at iba.
Ok, let’s stop here for a moment.
I want you to grasp everything we discussed above and let them sink in. Now, that you understand the fundamentals of how routers work, let’s proceed on the next lesson to understand how they ‘decide’ kung saan ipapadala ang packets or anong ‘path’ ang pipiliin para marating ang isang destination.
On the next lesson, we’re going to discussed what we called Administrative Distance and Metric.
Let’s go!
Dumugo nnman Dugo ko LoL..
thanks..
Welcome sir! 🙂
Sir bat yung 192.168.0.0 / 24. Diba sir dapat 192.168.0.0 /16 kc si 192 and 168 ay 8 bits + 8 bits = 16 🙂
Tama naman tingin ko idol. 192.168.0.0/24 or 192.168.0.0 255.255.255.0. So bale 192.168.0.0 – 192.168.0.255. Usable niya is 192.168.0.1 – 192.168.0.254. Let me know if you have questions. THanks!
Salamat idol, nag email pala ako sayo idol. Tungkol sa routing, hoping my reply thank you idol godbless
class c po yun kya naging / 24. include mo po yung zero as 3rd octet. tama po ba.. ?
(1i) increment din subnet mask 255.255.255.0
opo tama natural subnet mask kasi ni class c si /24
class C kasi yan idol.. makikita mo yung first octet nya ay nasa range ng 192 – 223 which indicates na type C yung Ip adress.. in short classful sya kaya yung preceeding Subnet mask nya ay /24 which is the default subnet mask for Class C Ip adressess or 255.255.255.0 in decimal format.. 🙂
Hi Idol,
Ask ko lang kung paano magkikita yung dalawang network na nasa last image sa taas.
C 10.0.0.0 /8
C 192.168.0.0 /24
Considering different network sila, no need na ba for routing protocol if same directly connected sa iisang router ang 2 IP address na magkaiba ng network?
Salute!
You need routing protocol idol. I just give the overview there pero doon sa mga routing protocols tutorials, mas detailed. Salamats!
galing idol ang linaw ng mga paliwanag basic madaling maintidihan thanks chief 🙂
Idol,
Ask ko lang po saan pa ginagamit ang loopback. Maliban sa pag assign ng router id using loopback. ano pa po ba ang ibang use nya? Thanks in advance.
Most of the time it is being used for virtual interfaces.
Anu po ibig sabihin ng Default gateway?