Aki i had it too but that was because i had deprived sleep but when i started sleeping for sufficient hours i dont get anymore.

You can google sleep paralysis.

As far protection from jinn are concerned you can do the morning and evening adkhaars i.e after fajr and asr.. and do the necessary things while sleeping like wudhu, recite ayatul kurse, recite last two verses of baqrah, blow into ur hands and recite last three chapters of Quran and rub front of ur body wherever ur hands can reach from head face to rest.. and do the other duas ...

My personal experience and knowledge on jinn i can conclude this as sleep paralysis... u can google sleep paralaysis

http://en.wikipedia.org/wiki/Sleep_paralysis

Islaam4u