Denmark has reopened its road and rail links to Germany a day after they were closed to stop migrants from travelling to Sweden.

State-owned train operator DSB closed the train service between Denmark and Germany on Wednesday, stopping around 350 passengers in two trains in Rodby.

The protesting migrants demanded them to be allowed to travel further to Sweden. They refused to be registered in Denmark and seek asylum there.

"The situation changes from hour to hour, but some are seeking asylum in Denmark, some are returning to Germany, and others are in custody or traveling on through Denmark."

The motorway in Rodby was also closed yesterday when 300 refugees began walking on it.

In order to control the flow of refugees from Germany, the Danish police ordered the trains to stop away from the train ferry stops.

This made the passengers, including migrants, to walk on the ferries, and cross to Rodby, Reuters reported.

According to the Danish police, 3,000 foreigners have arrived in the country between Sunday and Wednesday.

"The situation changes from hour to hour, but some are seeking asylum in Denmark, some are returning to Germany, and others are in custody or traveling on through Denmark," they said.

Europe has been struggling with the huge influx of migrants from Syria and other middle-eastern countries, for the past few weeks.

Last week, Hungary had to cancel its trains in order to control the movement of refugees to other Schengen countries.

A majority of the migrants are headed to Germany, while the country is asking other European countries to share the burden.

The European Union is making arrangements to accommodate 120,000 migrants across the continent.