Diffusive dynamics and periodic orbits of dynamical systems