Showing posts with label OSPF. Show all posts
Showing posts with label OSPF. Show all posts

Thursday, January 12, 2017

OSPFv3 BFD in EXOS.

BFD Overview

Bidirectional Forwarding Detection (BFD) is a hello protocol that provides the rapid detection of failures in the path and informs the clients (routing protocols) to initiate the route convergence.
It is independent of media, routing protocols, and data protocols. BFD helps in the separation of forwarding plane connectivity and control plane connectivity.
Different routing protocol hello mechanisms operate in variable rates of detection, but BFD detects the forwarding path failures at a uniform rate, thus allowing for easier network profiling and planning, and consistent and predictable re-convergence time.

OSPFv3 BFD

BFD can be used by other routing protocol including OSPFv3 the procedure for session setup and tearing down as below

BFD/OSPF session setup

  • OSPF discovers a neighbor
  • Router sends a request to the local BFD process to initiate a BFD neighbor session with the OSPF neighbor router
  • The BFD neighbor session with the OSPF neighbor router is established

Tearing Down BFD/OSPF session

  • A failure occurs in the network.
  • The BFD neighbor session with the OSPF neighbor router is torn down.
  • BFD notifies the local OSPF process that the BFD neighbor is no longer reachable.
  • The local OSPF process tears down the OSPF neighbor relationship. If an alternative path is available the routers will immediately start converging on it
Configuration Example

One of EXTREME Customer is using 100 msec bfd interval, and routing protocol like OSPF, LDP, BGP take advantage of BFD.

enable bfd vlan "t1"

configure bfd vlan "t1" receive-interval 100 transmit-interval 100

enable bfd vlan "t2"

configure bfd vlan "t2" receive-interval 100 transmit-interval 100

enable bfd vlan "t3"

configure bfd vlan "t3" receive-interval 100 transmit-interval 100

enable bfd vlan "t4"

configure bfd vlan "t4" receive-interval 100 transmit-interval 100

enable bfd vlan "t11"

configure bfd vlan "t11" receive-interval 100 transmit-interval 100

enable mpls bfd vlan "t2"

enable mpls bfd vlan "t3"

enable mpls bfd vlan "t4"

configure ospfv3 vlan t1 bfd on

configure ospfv3 vlan t2 bfd on

configure ospfv3 vlan t3 bfd on

configure ospfv3 vlan t4 bfd on

Above configuration is the lab device configuration to test network convergence time with customer’s configuration.
Limitation on EXOS
The following limitations apply to BFD in this release:
  • Direct connection (single hop) networks only are supported.
  • OSPF, MPLS and static routes act as BFD clients
  • Hitless failover is supported.
  • The echo function is not supported.
  • BFD protocol has been implemented in software. The number of sessions handled by BFD at minimal timers (less than 100ms) varies depending on platform type and processing load (which is effected by other protocols being enabled, or other system conditions such as software forwarding).

OSPF graceful restart in EXOS


OSPFv3 Graceful restart

To protect data plane during the events on Control plane like failover, process restart etc., Graceful restart can be used. In EXOS OSPFv3 Graceful restart supported from 16.2

Without Graceful restart



Without graceful restart, adjacent routers will assume that information previously received from the restarting router is stale and will not be used to forward traffic to that router.

With Graceful restart

However, in many cases, two conditions exist that allow the router restarting OSPF to continue to forward traffic correctly. The first condition is that forwarding can continue while the control function is restarted. Most modern router system designs separate the forwarding function from the control function so that traffic can still be forwarded independent of the state of the OSPF function. Routes learned through OSPF remain in the routing table and packets continue to be forwarded. The second condition required for graceful restart is that the network remain stable during the restart period. If the network topology is not changing, the current routing table remains correct. Often, networks can remain stable during the time for restarting OSPF.

Restarting and helper mode



Routers involved with graceful restart fill one of two roles: the restarting router or the helper router.
With graceful restart, the router that is restarting sends out Grace-LSAs informing its neighbors that it is in graceful restart mode, how long the helper router should assist with the restart (the grace period), and why the restart occurred. If the neighboring routers are configured to help with the graceful restart (helper-mode), they will continue to advertise the restarting router as if it was fully adjacent. Traffic continues to be routed as though the restarting router is fully functional.
  If the network topology changes, the helper routers will stop advertising the restarting router. The helper router will continue in helper mode until the restarting router indicates successful termination of graceful restart, the Grace-LSAs expire, or the network topology changes. A router can be configured for graceful restart, and for helper-mode separately. A router can be a helper when its neighbor restarts, and can in turn be
helped by a neighbor if it restarts.

Planned and Unplanned Restarts

Two types of graceful restarts are defined: planned and unplanned.
A planned restart would occur if the software module for OSPFv3 was upgraded, or if the router operator decided to restart the OSPF control function for some reason. The router has advance warning, and is able to inform its neighbors in advance that OSPF is restarting.
An unplanned restart would occur if there was some kind of system failure that caused a remote rebootor a crash of OSPFv3, or a failover occurs. As OSPFv3 restarts, it informs its neighbors that it is in themidst of an unplanned restart.
You can decide to configure a router to enter graceful restart for only planned restarts, for only unplanned restarts, or for both. Also, you can separately decide to configure a router to be a helper for only planned, only unplanned, or for both kinds of restarts.

OSPFv3 Graceful restart Configuration

• Configure a router to perform graceful OSPFv3 restart:
configure ospfv3 restart [none | planned | unplanned | both]
• Configure a router interface to act as a graceful OSPFv3 restart helper:
configure ospfv3 [[vlan | tunnel] all | {vlan} vlan-name | {tunnel} tunnelname | area area-identifier] restart-helper [none | planned | unplanned |both]
• The graceful restart period sent out to helper routers can be configured with the following command:
configure ospfv3 restart grace-period seconds
• Disable or enable helper router LSA check:
disable ospfv3 [[vlan | tunnel] all | vlanvlan-name | {tunnel} tunnel-name |area area-identifier] restart-helper-lsa-check
enable ospfv3 [[vlan | tunnel] all | {vlan} vlan-name | {tunnel} tunnel-name |area area-identifier] restart-helper-lsa-check
By default, a helper router will terminate graceful restart if received LSAs would affect the restarting router. This will occur when the restart-helper receives an LSA that will be flooded to the restarting router or when there is a changed LSA on the restarting router's retransmission list when graceful restart is initiated.