Impacts of solar flare on the Earth’s magnetosphere