A migration policy and a caching policy for applying mobile agent to IN environments