build rbtree to store upstreams so as to improve performance when searching for upstreams