Networks Horizon

share

Tuesday, 31 January 2012


Classless Routers and Classless Routing-Difference


Classless and Classful Routing Protocols


Before the internet and general networking become popular into what it is now, there were and still are routing protocols that only do classful routing.

Classful Routing
If we use a classful routing protocol we cannot change the subnet mask of any networks. We have to use the default subnet mask, so for example ..if we have a 172.16.X.X network the default subnet mask is a /16 or 255.255.0.0. So, in short we cannot have different size networks(subnetting) when using the a classful routing protocol like Rip version 1. Similarly for an Ip address 192.16.1.0 network we have only mask available is 255.255.255.0. So with a classful routing protocol we have maximum 254 usable hosts in a single network( for a class C IP address ). For class B network/ip address we can have maximum 2^8-2 usable host in a single network. We cannot have multiple network for a single IP address.

Remember that classful routing does not support subnet information, and therefore do not support VLSM (Variable Length Subnet masks) or subnetting.

Classless Routing
With a classless routing protocol we can split a single network into multiple network instead of having 254 usable hosts in one network; For the above classB IP example, we could have 126 usable hosts with two networks. The ranges for the first network would start at 192.168.1.1 and end at 192.168.1.126, and the second would start at 192.168.1.127 and end at 192.168.1.254(usable hosts). The subnet mask for both of these networks would be 255.255.255.128.

Problem with Classful routing
With a classful routing protocol it would only look at the class of the address in this case a class C and not look at the subnet mask(will ignore 255.255.255.128 or /25) and apply a default subnet mask of 255.255.255.0(/24) causing these addresses to be in the same network which in reality their not.

So we can say, classful routing protocols do not carry subnet mask information on their routing updates. This makes them unsuitable for hierarchical addressing that require Variable Length Subnet Mask (VLSM) in discontiguous network. In opposite, classless routing protocols also carry subnet mask information on their routing updates so suitable for subnetting and VLSM.

Example of Classful and Classless routing protocol

Classful: RIP v1 and IGRP
Classless:RIP v2, EIGRP, OSPF, Intermediate System to Intermediate System (IS-IS)and BGP

Classful and Classless Routers -info

Routers are classless by default and can behave classful if "no ip classless" command is used in global configuration mode. With the classful(no classless) behaviour in the router all the IP addresses will have their natural network mask like class A ip address will have 255.0.0.0. Similarly:
Class A->255.0.0.0
Class B->255.255.0.0
Class C->255.255.255.0

As In current world, we are currently using CIDR( Classless Interdomain Routing), we need to keep only thing in mind... sub-netting is more important and IP address and classes do not matter much.

With "ip classless" command we make router to ignore classes(A,B,C..) so that router can read IP addresses on its classful behavior based on subnet mask. This is router's default behavior.
In the other hand, a router configured with " no ip classless" command tell router to give significance to IP addresses and their default classes not to their sub-net masks.


Impact on Routing table and packet forwarding

Suppose in the diagram, there is a traffic packet for the host 10.1.2.0/24 from PC1, default gw router(R1) will perform the routing based on routing table but first R1 will check whether it is configured as classful or classless..


Routing Table R1

=========================
10.0.0.0/8
   10.1.1.0/24 directly connected
192.16.1.0/24
   192.16.1.0/24 directly connected
0.0.0.0 0.0.0.0 192.16.1.2   ------------>> default route
=========================


  • If it is configured as classless ("ip classless" command) ->traffic will be forwarded to the default route because there is no entry for the route 10.1.2.0/24 in the routing table of R1. Default route is a default exit point which tells the packet where to leave in case it doesn't find any route in the routing table.
  • If it is configured as classful("no ip classless" command)->destined traffic will be dropped by R1 assuming that route has been mapped already to major class 10.0.0.0/8 and there is no entry for that route. Only 10.1.1.0/24 exist. but if there is a traffic for another destination 172.18.1.0/24 from PC1, traffic packet will be forwarded to the default route(0.0.0.0/0) because there is no entry for the route(172.18.1.0) in the routing table.


Thursday, 19 January 2012


Available Telecom / Network  Speed

Port Type
Speed
Other info
POTS
28.8 Kbps

ISDN BRI
64 Kbps

DS0
64 Kbps

DS1/T1
1.544 Mbps
sometimes referred as 1.5Mbps
E1
2.048 Mbps
sometimes referred as 2Mbps
E3
34.368 Mbps
sometimes referred as 34Mbps
DS3/T3/HSSI
44.736 Mbps
sometimes referred as 45Mbps
OC1/ SONET 1/SDH 1
51.84 Mbps
sometimes referred as 52Mbps
OC3/STM1
155.52 Mbps
sometimes referred as 155Mbps
STM4/OC12
622.08 Mbps
sometimes referred as 622Mbps

Optical transmission systems are known as SONET (Synchronous Optical NETwork) in North America and SDH (Synchronous Digital Hierarchy) in the Rest of the World. Optical Carriers are typically known by their OC-x number where x is a multiple of the OC-1 rate of 51.84 Mbps. While OC-x is a common world-wide standard for optical systems there are differences but they are accommodated within the standard. North America uses an STS-x (Synchronous Transport Signal) format for frames (packets) and Europe an STM-x (Synchronous Transport Module) format.

Full Form
STM =Synchronous Transport Modules
SONET =Synchronous Optical Network
OC =Optical Carrier
HSSI=High-Speed Serial Interface
SDH =synchronous digital hierarchy
DS =Digital Signal
POTS =Plain old telephone service

Wednesday, 18 January 2012


Timers, Update, Message Types and States of various protocols

Timers
Protocol
Hello/Keepalive timer
Dead/Hold timer
Other info
EIGRP
5 sec in shared broadcast(LAN)/60 sec in other networks
3 times=3x hello timer
60 sec for all networks greater than T1 capacity includes LAN
OSPF
10 sec in Broadcast, Point-to-Point network/30 sec in other networks
4 times=4xhello timer

BGP
60 sec in all type of network
3 times=180 sec

RIP2
30 sec(request message)
180 sec=invalid timer
240 sec=flush timer

HSRP
3 sec
10 sec



Updates 
Protocol
Updates
Other info
EIGRP
Triggered only
In case of network change
OSPF
Triggered and periodic in 30 mins
Triggered and periodic
BGP
5 sec in iBGP
30 sec in eBGP
triggered and incremental after update timer.
RIP2
30 sec periodic
Regular interval


Message Types
EIGRP
OSPF
RIP2
BGP
HSRP
Hello
Hello
Request(Hello)
Open
Hello
Update
DBD
Response(Update)
Keepalive
Coup
Query
LSRequest

Update
Resign
Reply
LSU

Notification

Ack
LSAck




LSRefresh




Protocol States
EIGRP
OSPF
BGP
RIP2
HSRP
FRAME RELAY
Passive = means that a router has a successor for a route.
Down
Idle

Initial
Active
Actove =means that a router does not have a successor or feasible successor for a route and is actively sending queries to neighbors to get information about the route
Init
Active

Learn
Inactive

Attempt
Open sent

Listen
Deleted

2-way
Open confirmed

Speak


Extart
Established

Standby


Exchange


Active


Load





Full





Other details

HSRP
HSRP uses UDP port 1985 and multicast address 224.0.0.2 for sending updates
RIP and RIP2
RIPv2 uses UDP port 520 and multicast address 224.0.0.9 for sending updates
RIP v1 broadcast by default.
BGP
BGP uses UDP port 179 and only unicast.
EIGRP
EIGRP uses multicast address 224.0.0.10 for sending updates
OSPF
DR to non-DR updates uses multicast address 224.0.0.5
Non-DR to DR updates uses multicast address 224.0.0.6
LDP(Label Distribution Protocol)
LDP uses UDP for sending hello(discovery) messages and rely on TCP to ensure reliable and in-order delivery of label messages. It uses UDP/TCP port 646. It uses multicast address 224.0.0.2 for updates like HSRP