I went through my school life being like your son,i was the class clown,some teachers though didnt like it,its a power thing another teacher told me,because i was diverting the attention to me for a few light hearted seconds,the teacher couldnt get the attention i could and got mad.
Sounds exactly the same scenario..
I did fukk around worse as i got older though,but theres nothing wrong with a few jokes thrown into the lesson to break up the boredom and keep you on your toes.