Skip to main content

Why all areas must be connected to area 0 in OSPF

Why all areas must be connected to AREA 0 in OSPF ?

When you learn regarding OSPF the first concept which you come across is that all areas must be connected to AREA 0 or backbone area to transfer traffic from one non Backbone area to other non Backbone area. Like if suppose you have three areas in OSPF -  Area 0 , Area - 1 , Area - 2. There are two users one is in Area 1 and other is in Area 2. They want to communicate with each other.Now how will they communicate ?  :roll:

User 1 of Area 1 send traffic to Area 0 then traffic will move from Area 0 to Area 2 and finally reach to user 2 of Area 2 right ? This a strict rule on which OSPF works. But why this rule exists? This post describes all about this.

As you know Routers in same area exchange each and every information known as LSA (Link state advertisement) to each other.Only summary routes or Summary LSA are forwarded to backbone area via ABR (Area Border Router) which is connected to this area and backbone area. Ok, here I think I need a diagram to explain this scenario so that I can make you understand more :

Here :

R1 - Backbone Router

R2 and R3 - ABR (Area border Router)

R4 , R5 , R6 , R7 - Area Router

Ok let's begin. In above topology R2 , R4 and R5 routers are in the same AREA . Yes! R2 is ABR and that's why it is in two areas at the same time. It is in Area 0 as well as Area 1. All these routers will send all types of the update to all routers in that area that is Area 1. R2 than convert all these updates or routes to summary routes and send this to R1 backbone Router. Same applies to Area 2.

R2, R4 and R5 will not see beyond R2 and they depend on upon R2 for the routes which are beyond R2 and here they act as Distance Vector. You may be wonder to know that isn't it :roll:

So by this, we reach to a conclusion that in inter-area or routers in the same area are act like a Distance Vector. Distance Vector is vulnerable to ROUTING LOOPS. Traffic from one area can only reach another area through area 0 otherwise Routing Loop will  formed in the network because routers in the same Area has same picture of the network in that AREA only. It does not have any idea or picture of another Area. Here in our case Area 1 Routers does not have any idea related to Area 2. If we have very large network in which we have lots of areas and they are connected to each other than it is more vulnerable to routing loops.  OSPF avoids loops by mandating this rule that all areas must be connected to area 0 in OSPF.

Hope you find this post informative. Please share this post if you like it.  :-)


  1. Could you explain the OSPF advantages & what the algorithm ?

  2. Thanks for the comment. I will post regarding OSPF advantages and its algorithm in future post.

  3. advantages is that updates is limited by area, is better for memory of router because number of update is decrese

  4. here you mention one wrong thing.
    like u said that routers within area behaves like distance vector which wrong,
    routers within single area behaves as link state routing protocol not distance vector.

    please fix me if i am wrong.


Post a Comment

Popular posts from this blog

SuperPuTTY for EVE-NG

To use SuperPuTTY as default client for telnet in Eve-NG for multi tab console

When we click on Router or Switch in EVE-NG by default console open in CMD. Here I posting a method to use SuperPutty with EVE-NG so that you can use TAB function of SuperPutty.
You need to edit registry 
Enable handling of telnet://hostname:port/ URLs on the command line. With this feature, you can now set SuperPuTTY as the default handler for Telnet URLs 
If you run the Registry Editor (Start->Run->regedit.exe) and set the value in:
HKEY_CLASSES_ROOT\telnet\shell\open\command to be: "\path\to\SuperPutty.exe"
(with the full pathname of your SuperPuTTY executable)

In my case it like this :

C:\Program Files (x86)\SuperPuTTY\SuperPutty.exe %1

Second most important thing :

Select "Only allow single instance of SuperPutty to run" in SuperPutty options (Tools > Options)

And in GUI options , select Tab Text : "Dynamic"

And Finally you will get the multi tab console in Superp…

Install Linux in Eve-NG

Install Linux in Eve-NG :
You can choose any of Linux image from the pack below and simply upload into EVE. Download your preferred image from this link:Download Linux Images Here  (This Link is Provided by EVE - NG)     2. Download your desirable image     3. Using WinSCP or FileZilla SSH (TCP 22) to your EVE and upload downloaded image to the location: /opt/unetlab/addons/qemu/     4. Using Putty or other telnet client, CLI SSH (TCP 22) to your EVE and go to location: cd /opt/unetlab/addons/qemu/    5. Unzip your uploaded image file, make sure you are using right name of uploaded image. Example for ubuntu desktop image below. tar xzvf linux-ubuntu-desktop-16.04.4.tar.gz    6. Remove raw zipped image file from EVE rm -f linux-ubuntu-desktop-16.04.4.tar.gz   7. Fix permissions /opt/unetlab/wrappers/unl_wrapper -a fixpermissions   6. Repeat this procedure for each downloaded image, expecting right image name in commands
Ready to go images recommeneded settings: IMPORTANT NOTE: Before you start Li…

NAT Cloud in EVE-NG

NAT Cloud in EVE-NG

I want to share with you how to create a NAT cloud in the EVE-NG community edition. Essentially, this is a virtual network with a DHCP server, which will allow NAT connections over the management interface of the EVE-NG VM for Internet access.

Interface, DHCP Server and NAT First of all, we need to create a network which can be used in the topology. I’ll be using the predefined pnet9 interface (Cloud 9 network) for this, but any other interface will do. 1 2 3 ip address add192.168.255.1/24dev pnet9 echo1

copy IOS from FTP server for cisco switch upgrade

These are the commands to copy IOS from FTP to Flash:
Filezilla SERVER :

copy ftp://username:password@ftp-server-ip/IOS-name.bin flash:

Example :

copy ftp://cisco:cisco@ flash:

SolarWinds SFTP & SCP Server (When we need to copy IOS to Flash using Secured channel like SCP or SFTP:

copy scp://<User>:<Password>@<Server-IP>/<File-name> flash0://<File-Name>

What is Ansible?

Ansible is a simple automation language or you can say application that can perfectly automate IT infrastructure or network infrastructure.

Ansible is a free-software platform for configuring and managing computers or network devices which combines multi-node software deployment, ad hoc task execution, and configuration management. (description taken from wikipedia)

It can also be used for network management. Like Puppet or Chef which requires agent to be installed on host system but Ansible does not require an agent on the host system. It uses SSH for transport to communicate with the host. When Ansible was first developed it was used primarily for server administration but in the last few years of development more and more network modules have been added to the software. Currently these Network vendor devices can be manage by Ansible. Current version is Ansible Ver 2.4 :

A10 Networks

Cisco ACI



Aruba Networks

Cisco ASA








Dell OS

First look of Open NX-OS

Cisco NX-OS is the network operating system that is used in Cisco Nexus switches. These Nexus switches from Cisco are built for DATA-CENTERS. In this post I will give you a brief idea regarding the NX-OS operating system.  NX-OS has been evolved from SAN-OS which was originally developed for MDS switches by Cisco only. These MDS switches are used for storage network.

Cisco NX-OS is purely based on Micro-kernel Linux where as traditional Cisco IOS is also based on Linux but with Monolithic kernel. I will tell you the difference between these two types of kernel below in this post because it is the key difference between NX-OS and IOS.
 Monolithic Kernel :
Monolithic kernel is a single large process running entirely in a single address space or memory space. It is a single static binary file. All kernel services exists and executes in the kernel address space. If one process having some problem then it will effect all other processes and may interrupt the complete kernel flow. As an ex…