An overlay network is a computer network which is built on the top of an underlying physical network. With the mobile internet access becoming the leading tool, overlay must be changing with different IP addresses, which may incur a large number of unnecessary update messages to overlay network. In recent years, mobile IP is being spread widely as one of fundamental protocols of mobile internet, which can guarantee overlay network unchangeable. However, the overlay efficiency may be affected negatively due to the mismatch between overlay and mobile IP network. In this paper, we present a topology-aware overlay network model. In the model, we proposed near-home principle applied in the joining procedure in mobile IPv4 environment and near-ROSP principle in mobile IPv6 environment. In our simulation, our proposed near-home principle and near-ROSP principle could do better to alleviate the mismatch between overlay and mobile IP network.