]> git.puffer.fish Git - matthieu/frr.git/commit
ospf: Convert MAX_AGE LSA list to tree
authorDinesh Dutt <ddutt@cumulusnetworks.com>
Tue, 4 Dec 2012 18:46:37 +0000 (10:46 -0800)
committerScott Feldman <sfeldma@cumulusnetworks.com>
Mon, 7 Jan 2013 17:59:43 +0000 (09:59 -0800)
commit91e6a0e5ca973c7183f638987b67aa370e9b484c
tree734c8c74baaaa6d3c303928b4f6d1d35d3394115
parent4ba4fc857685bfe31c7127826652012a750367c5
ospf: Convert MAX_AGE LSA list to tree

Store the MaxAge LSA list in a tree instead of a linked list for efficient access.
Walking the list can be quite inefficient in some large systems and under certain tests.

ospfd maintains the list of LSA's that have been MaxAge'd out in a separate
linked list for removal by a remover/walker thread. When a new LSA is to be
installed, the old LSA is ejected and when it is ejected, the MaxAge LSA list
is traversed to ensure that the old LSA is also removed from this list if it
exists on this list.

When a large number (> 5K) MaxAge LSAs are bombarding the system, walking this
list takes a significant time causing timers to fire and actions to be taken
such as expiring neighbors due to expiry of DeadInterval (especially when timer
is really low, <= 12s), creating a spiral of instability.

By making this MaxAge LSA list be a tree, this problem is mitigated.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Ayan Banerjee <ayan@cumulusnetworks.com>
Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
ospfd/ospf_lsa.c
ospfd/ospf_lsdb.c
ospfd/ospf_lsdb.h
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h