RIP v2 in nutshell

1, RIP does not form adjacency for each other,  nor do they use hello protocol. It just send out update to the mulitcast destination ip 224.0.0.9 with UDP protocol port 520. RIPv2 router can also configured to use the 255.255.255.255 broadcast ip address, but this is not commonly done.

RIP can also send unicast update, when “neighbor ip-address” command is configured, identifys a neighbor to which unicast RIP updates will be sent.

RIPv2 has only 2 types of messages: requests and Responses

Update interval is 30 seconds by default, update will be full update, when routes change, update will be triggered as well.

2, RIPv2 convergence and loop prevention is realized by the following functions:

  • Counting to Infinity(16)
  • Split Horizon(should not be enabled in point-to-mulitpoint segment)
  • Route Poisoning
  • Split Horizon with Poisoned Reverse
  • Triggered update
  • Update time (30 secs by default)
  • Invalid after time (180 secs by default)
  • Holddown timer (180 secs by default)
  • Flushed after timer (240 secs by default)

When a router has one interface shutdown, router will flush the poisoned routes to all of other interfaces, the update will been sent immediately. When a router has a link down, after “Invalid after time”, the route will be set as invalid, holddown timer starts, after 60 secs, route will be flushed and holddown timer reset, the route change will trigger update as in the first scenario.

3, Routes can be filtered in both “in” and “out” direction by using distribute-list

4, RIPng for IPv6

5, “clear ip route *” command will clear the routing table entry and with RIP, sends RIP requests, quickly rebuilding the routing table

 

IS-IS in nutshell

1, IS-IS is using NASP address to build up adjacency between each node, not IP address.

2, IS-IS is used to solve L1 and L2 routing problem described in

https://yingsnotebook.wordpress.com/2017/05/27/osi-network-tcpip

Especially L1 is similar with OSPF Not So Stub Totally Stub area, L1 area has no information about l2 routing and any other l2 area’s routing, it has only a default router (L1L2 router) which will connect this L1 area to L2 area; L2 area is similar with OSPF backbone area, which has information of both L2 and L1 areas.

When OSI network model is used, L2 will carry only area id info because L2 only need to forward the traffic towards correct L1 area, it does not have to know all ES address in L1 area. When IP is used, L2 will have IP information for networks directly connected in L2 router, and also the networks routes learned from L1 route calculation.

L1L2 router will have two IS-IS link databases, one is for L1 area which it connects to, the other is for L2. L1 and L2 databases are separated and can not be shared with each other, but L1L2 router will advertise routes learned according to L1 calculation to L2 database.

3, In IS-IS there are two types of network link: point-to-point and broadcast link. While point-to-multipoint can be simulated as several point-to-point links.

All interfaces in broadcast link will participate in DIS selection, like DR and BDR selection in OSPF broadcast link, but unlike DR and BDR role in OSPF, DIS in IS-IS is not the only one router which can send out LSP update, instead, all routers in  IS-IS broadcast link can send out LSP update. DIS is used to:

  • Help routers on a broadcast segment to synchronize
  • Representing the broadcast segment in the link-state database as a standalone object- The Pseudonode

4, Unlike OSPF which has several types of LSA, in IS-IS each router generate only one LSP, which includes all routes information of the router, LSP can be very long and need to be segmented to transfer in Layer two network, a sequence number will be used to identify the LSP packet sent by each router.  Router selected as DIS will generate 2 LSP: One is the general LSP for routing information, the other is Pseudonode LSP to indicate broadcast segment information. LSPID will be system ID + Pseudonode ID(local circuit ID of the interface)

5,  IS-IS has 3 adjacency states:

  • Down: the initial state
  • Initializing: IIHs have been received from the neighbout, but it is not certain that the neighbor is properly receiving this routers IIH
  • Up: IIHs have been received and also it is certain that the neighbor is properly receiving this router’s IIHs

6, IS-IS is a true multiprotocol routing protocol in the sense that it does not require any particular Layer 3 routing to carry it packets, and in a single instance, it can carry informaton of destination described by different address families, for example IPv4 and Ipv6 can be carried at the same time a single LSP and maintained in the same link state datebase.

OSI network & TCP/IP

OSI teminology: ES (end system)  is used as host in TCP/IP, IS( Intermediate System) is used for a router

In network layer of OSI reference model, there are 2 modes for end-to-end communication: connectionless-mode and connection mode. For connection-oriented mode, an adaptation of the x.25 is used, there is no analogous connection-oriented network layer protocol in TCP/IP. Connectionless-mode network protocol (clns) is to OSI networks what IPv4/v6 are to TCP/IP networks.

NSAP address is the address used in OSI reference model, unlike ip address, each IS node has only one NSAP address, each interface on the IS node is represented with local circuit ID. NSAP has minimum 8 octets, with only AFI, system ID and SEL. Tha maximum size is 20 octotets

Levels of Routing in OSI networks:

Level 0 routing: between ES and IS

Level 1 routing: between ES nodes within the same area

Level 2 routing: between ES nodes which are in the different area of the same domain

Level 3 routing:between ES nodes which are in different domains

IS-IS provice level 1 and level 2 routing. BGP  for inter-autonomous system routing in TCP/IP is fairly analogy of Level 3 routing.

Stub/totally stub/nssa/totally nssa

Stub area: LSA type 1/2/3 are allowed, LSA type 4/5/7 are not allowed, no ASBR is allowed default route is injected automatically when stub area is configured on ABR

Totally stub area: LSA type 1/2 are allowed,,a default route is injected automatically, this default route is an only allowed type 3 LSA. LSA type 4/5/7 are not allowed.

Not so stub area: LSA type 1/2/3/7 is allowed, LSA type 4/5 are not allowed, ASBR is allowed. default route need to be configured manually with command: area <area id> nssa default-information originate. This default route will be advertisized as LSA type 7

Totally Not So Stub area: LSA type 3/4/5 is not allowed, LSA type 1/2/7 allowed. default route need to be configured manually with command: area <area id> nssa default-information originate. This default route will be advertisized as LSA type 7

When OSPF do recalculation

1, When there is update of LSA type 1 and type 2, recalculation will be done for the entire routing table,  started with shortest path calculation for each area. not just in the area that link state database has changed.

2, When there is update of LSA type 3, network summary, the recalculation will be done partially. Specially, the destination described in the network summary LSA will be recalculated, if the destination is ABR, it may also need to re-examine all external LSA types.

3, When there is update of LSA type 5 or 7, the destination described in the external LSA will be recalculated.

default-information originate in different routing protocols

RIP

To generate a default route into Routing Information Protocol (RIP), use the default-informationoriginate command in router configuration mode. To disable this feature, use the no form of this command.

Example:

router rip 
 version 2
 network 172.17.16.0
 default-information originate route-map condition
!
route-map condition permit 10
 match ip address 10
 set interface s1/0
!
access-list 10 permit 172.17.16.0 0.0.255.255
setinterface Indicates where to forward packets that pass a match clause of a route map for policy routing.

OSPF:

Default routes injected into a normal area can be originated by any OSPF router. The OSPF router does not, by default, generate a default route into the OSPF domain. In order for OSPF to generate a default route, you must use the default-information originate command.

There are two ways to advertise a default route into a normal area. The first is to advertise 0.0.0.0 into the OSPF domain, provided the advertising router already has a default route. The second is to advertise 0.0.0.0 regardless of whether the advertising router already has a default route. The second method can be accomplished by adding the keyword always to the default-information originate command.

Example:

router ospf 2
 network 5.0.0.0 0.255.255.255 area 1
 network 6.0.0.0 0.255.255.255 area 0
 default-information originate
ip route 0.0.0.0 0.0.0.0 6.0.0.3

Because it has a default route, Router originates a type 5 LSA with a link ID of 0.0.0.0. This is the result of the default-information originate command in its OSPF configuration.You can also add the always keyword to the default-information originate command to make a router originate a 0.0.0.0 type 5 LSA even if the router does not have a default route in its routing table.

BGP:

refer to item 6 in

https://yingsnotebook.wordpress.com/2017/03/29/bgp-network-summary-ii/

The default-information originate, redistribution from a different source, and network 0.0.0.0 are all similar in the resulting effect: they will inject the default route into BGP RIB and it will be advertised to all BGP neighbors. The difference is in the origin of the default route that is injected into BGP:

  • default-information originate causes the default route to be artificially generated and injected into the BGP RIB, regardlessly of whether it is present in the routing table.
  • Redistribution and network 0.0.0.0 will inject the default route into BGP only if the default route is currently present in the routing table, and additionally in the case of redistribution, if learned by a specific source protocol we are redistributing from.

The neighbor X.X.X.X default-originate is different in that the default route will be advertised only to this specific BGP neighbor and not to all existing BGP neighbors as with the previous approaches. The default route will not be present in the BGP RIB of the router that is configured with the neighbor X.X.X.X default-originate command and so it won’t be generally advertised to all BGP neighbors. At the same time, this command is similar to the default-information originate in that the default route is artificially generated and does not need to be present in the routing table.

Network summary route in different routing protocols

network summary route in different routing protocol

RIP:

  • auto summary: summary subnets into classful net route
  • ip summary-address: Automatic summary addressing always summarizes to the classful address boundary, while the ip summary-address router configuration command summarizes addresses on a specified interface.
    interface Ethernet1
    ip address 10.1.1.1 255.255.255.0
    ip summary-address rip 10.2.0.0 255.255.0.0
    no ip split-horizon
  • Automatic summary will override the configured summary address feature on a given interface except when both of the following conditions are true:
    •The configured interface summary address and the IP address of the configured interface share the same major network (the classful, nonsubnetted portion of the IP address).
    •Split horizon is not enabled on the interface.

OSPF:
OSPF is link state routing protocol that works on the concept of areas. All areas must have same LSDB (link state database); hence OSPF summarization can only done on the border routers i.e. on ABR (Area border router) and ASBR (Autonomous system boundary router).

  • Inter Area route summarization:
    To summarize routes towards another area, in ABR we can use the following command:
    area [area-id] range [ ip-address ] [mask ] [advertise | not-advertise |cost {cost}]
    It will remove subnets routes from advertising to other area but a summarized route.
  • External route summarization.
    Use the following command to help reduce the size of the routing table and allow an OSPF Autonomous System Boundary Router (ASBR) to advertise one external route as an aggregate for all redistributed routes that are covered by the address.
    summary-address network netmask

BGP:
network summary of BGP can be found here
https://yingsnotebook.wordpress.com/2017/03/27/bgp-network-summary/