]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Install multipath routes with weights
authorvivek <vivek@cumulusnetworks.com>
Tue, 24 Mar 2020 19:25:28 +0000 (12:25 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 31 Mar 2020 03:12:31 +0000 (20:12 -0700)
commit4e30bc2bfec5ead773e37388d6f407022570262f
tree43db412e444150550d398c107cf110eded0ed4e4
parent42d436cf01d52948d9fe86cbe579a3e108224d01
bgpd: Install multipath routes with weights

Perform weighted ECMP if the multipaths have link bandwidth. This involves
assigning weights to each of the next hops associated with the prefix based
on the link bandwidth of the corresponding path as a factor of the total
(cumulative) link bandwidth for the prefix. The weight values used are
between 1 and 100. Weights are assigned only if all paths in the multipath
have link bandwidth, otherwise any bandwidths are ignored and regular
ECMP is performed. This is as recommended in
https://tools.ietf.org/html/draft-ietf-idr-link-bandwidth

A subsequent commit will implement additional (user-configurable) behaviors.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
bgpd/bgp_mpath.c
bgpd/bgp_mpath.h
bgpd/bgp_zebra.c