abstracting the subrouter sniffing logic