Monday, July 25, 2011

Basics of Router, IOS and Gateway

Router

A router is a Computer or a Device used for connecting multiple networks. This means it has multiple interfaces that each belong to a different IP network.

It also have components like RAM,ROM,PROCESSOR like computer CPU.
Basically when a router receives a IP packet on one interface, it determines which interface to use for forwarding the packets to which destination address.
  • Used for packet switching and packet filtering.
  • It also determines the best path to send packets.
  • It never forward broadcast by default.

The router will receive a Packet that is encapsulated in one type of datalink frame such as ethernet, and while forwarding the packet it encapsulate to different frame like PPP (Point to point protocol).

Many vendors/OEMs (Original Equipment Manufacturer) are manufacturing Routers now a days.

CISCO, D-LINK, DATASYS, HUAWEI etc.
A sample Cisco Router

Router Interfaces

There are many interfaces in a router, the physical interface is known as WIC-2T  (Wan Interface Card).

In case of Leased Line connections, A modem can be connected through this interface by the serial V.35 cable, DTE smart DB60 cable serial as shown below in pic. 
WIC Card

Serial Cable

A serial cable used at serial port of router is to use as administrative terminal access which can be used for configuring the router.

There are many types and series of routers. For higher series of routers i.e. at core routers  another interface used is STM card. STM-1, STM-4, STM-16 like this for Fiber connectivity .

  










: Fig :STM-1 CARD  



Typically A router can be represented in a network with a symbol as shown below.:


IOS

Internetwork operating System, is the OS used in Routers. Basically IOS manages the hardware and software resources of the router including memory allocation, Processes, Security and file systems.

  • It provides the privilege levels for access to different commands.
  • It provides the interface between user and hardware enabling user to execute commands to   configure and manage the devices.
  • It provides Connectivity, Modularity, Reliability in network redundancy, Security policies.
  • The IOS is stored in Flash Memories and can be updates accordingly when needed.
  • It carries Network protocols and Functions. 
  • Connecting high speed traffic between devices.
  • Routers are Network Layer ( L3) Devices. 
 
Flash Memory Card of Router

NVRAM: Non Volatile RAM. 

The "enable" password or the "enable−secret" password is stored in the startup configuration file in the nonvolatile RAM (NVRAM). The password recovery procedure involves booting the router while ignoring the startup configuration file in the NVRAM.

Routers come in different series to Market as per the requirement and sizing of the network.
Below are some sample series; 


Configuring Router (Cisco) for example:
If you need to configure your router from CLI (Command Line Interface) mode, You need to enable command first.

Router>enable (Enter)
Output:

Router#

Then Type

Router# Config t

or

Router# Configure terminal


If you type a question mark (?) at the prompt, you will get all the commands available.


Basic Routing:
  • Routing is the process of transferring data from one local area network to another local area network.
  • Bridge is a network connection that connects two or more network segments and shares traffic as necessary according to hardware addresses. A bridge is a layer two device (data link).
  • Router is a device that receives and forwards traffic according to software addresses. A router is a layer three device according to OSI model.
  • Network interface is a software object that connects to a physical device such as modem or network card, Lan Card.
  • Demand dial interfaces - these are interfaces such as VPN, persistent dial-up connection and PPPoE connection. New demand dial interfaces are added through Network Interfaces node.
  • Windows includes software router called Routing and Remote access service. This is a multiprotocol router capable of LAN to LAN, LAN to WAN, VPN, NAT routing through IP networks. It also supports routing futures such as IP multicasting, demand-dialing, packet filtering, DHCP relay, build in support for RIP 2 and OSPF.
  • NAT stands for network address translation and is a service that is part of a router in which the header information in IP data grams is modified by the router before being sent out. This allows many computer with private addresses to share a single public IP and still be able to surf the net.
  • Switching: Lan switching is a form of packet switching in local area network. It is hardware based method and packets are sent where it is need. It is of collision free and reliable technique. There are many kinds like layer 2, layer 3,layer 4 and multi-layer switching [combination of all layers].




Basic router used for Routing Network

Gateway:

A gateway is a network node or an interface of a router in a computer network. It uses packet switching technique for data transmission.

Network gateways, or protocol translation gateways can perform protocol conversions to connect networks with different network protocol technologies.
It is responsible for the data for communication by routing to another network. It can stop the traffic at its interface also. 

It operates at layer 3 of OSI model. All the data inflows and outflows are managed by it. The gateway gives us access into different networks for which we can send email, browse at web pages, buy online, chat online, etc. 

On basis of data flow and directions, it can be further divided as unidirectional gateway and bidirectional gateway for either one direction or both directions.
Sometimes we have heard as default gateway. The default gateway set to router address as xx.xxx.xx.1 at many places. In larger networks, a network gateway typically acts as a proxy server and a firewall.

A router have many algorithms to work. Those routing algorithms help the routers to work in such a way its intended.

Below are the routing algorithms;

Static and Dynamic: Static routes are manually configured and modified whereas dynamic routes dynamically maintain the routing table as per the network and the changes occur within the network.

Flat and Hierarchical: In a flat routing system, the routers are peers of all other routers. In a hierarchical routing system, some routers form a routing backbone or area.

Host-intelligent and Router-intelligent: In host intelligent, routing algorithms allow the source end system determines the entire route to a destination (source routing). Most routing algorithms assume that hosts know nothing about network, and the path determination process is done by the routing algorithms called router intelligent.


-DR







Tuesday, March 1, 2011

Data Packet

Data Packet:

Packet

A packet is nothing but small or large segment of a message being transferred from one host to another host over a digital communication link. Host may be a computer device, a mobile device, etc.

Data sent over a packet switched network. In packet switching network, a message is sent by dividing it to smaller packets given by unique numbers to identify at the receiving end.

What is there inside a packet?

Inside a packet there might be addresses (Source, destination), length, priority, payload, hop limit, error detection and correction etc.

Example such as IP packet. An IP packet consists of header and payload. Where Payload is what is contains the primary data/information.

So just keep in mind the basic thing. Nothing to be serious. If you need further information you can study other forums and sites on those.

Packets that pass through a network is called as network traffic. 

Please let me know if any suggestion is there.

Thanks!

 ***

-DR

 

 


Tuesday, February 1, 2011

Network Rack

Network/Server Rack:

Today we will discuss one of the important item in networking environment i.e. network rack. 

A network rack is a chassis or a frame or an enclosure made of metal that holds and organizes computer network devices such as switches, routers, storages, servers etc. Racks come with doors and lock to prevent unauthorized access.

One of the advantages of rack mounting is that several devices can be placed into one place to manage it effectively.

A typical full stack rack size is 42U, which is around 6ft height. Other sizes come as 36U, 29U etc.

If we calculate the length of U in a rack (Vertical) way it will be, 1U = 44.45mm = 1.75 inch

Similarly average racks comes with widths such as 36’,42’, 50’.

Many racks come with fully assembled and some in open to assemble later at your place. Small size racks come for rack mounting.

These racks come with other accessories such as patch panel, power distribution unit (PDU), clamps, bolts, cooling fans etc. They also provide cable management and allow optimized airflow for increased operational efficiency and extended equipment life.

Patch Panel

A patch panel is there to manage the cables in the network rack. They come with multiple jacks that connect cables and route them where they need to go. With help of proper cable labeling or tagging, all the cables should be terminated at patch panel. The labeling can not only save lots of time during network trouble shooting but also saves costs during any change.

Blanking panel

Blanking panels are pieces of either plastic or metal those are used to fill a blank spot in a rack which is not currently in use. Blanking panels help improve airflow sometimes in a rack.

Railing

Rails are attached to both sides of a server or devices which allows it to slide into the server rack in To and FRO motion for easy handling.

Clamps/ side Bars

There is a cable management bar in the rack that has a slot for each cable for routing the cable from source to destination.

So this was just an overview of racks and why we use them. 

***

If you have any comments and suggestions please post below. Thanks!

Below are some reference images 

Image Source: Amazon

***
-DR




 

Network Scanning Tools

Network Scanning through Nmap and Nessus Network scanning is a process used to troubleshoot active devices on a network for vulnerabilities....