Class AbstractBestPathSelector

    • Constructor Detail

      • AbstractBestPathSelector

        protected AbstractBestPathSelector​(long ourAs)
    • Method Detail

      • replaceOriginator

        protected RouterId replaceOriginator​(RouterId routerId,
                                             OriginatorId originatorId)
        RFC 4456 mandates the use of Originator IDs instead of Router ID for selection purposes.
        Parameters:
        routerId - routerID
        originatorId - originator
        Returns:
        returns originators Id if present otherwise routerId
      • isExistingPathBetter

        protected boolean isExistingPathBetter​(@NonNull BestPathState state)
        Chooses best route according to BGP best path selection.
        Parameters:
        state - attributes of the new route
        Returns:
        true if the existing path is better, false if the new path is better