use suffix tree for upstream routing