Framework for trail rejection and threshold on links