IoT environment has spread and the use of Internet services during move has increased recently. The demand for mobility management, the technology to keep communication even when a communicating mobile node moves, is growing due to it. We proposed a SDN based mobility management scheme in our prior work to deal with inter-domain handovers, but its routing algorithm only considers the number of domains to go through and the number of flow entries to install. This prevents us from selecting suitable routes. In this paper, we show the design of a new routing mechanism that considers various parameters. This mechanism suppresses costs for changing route to carry out handover smoothly and avoids lengthy routes.