Origin of Thumb Your Nose?

What is the origin of thumb your nose, and what does it really mean?

KnK

It is the familiar rude gesture made by children, where they put their thunb on their nose, stick out their tongue and wiggle their fingers. Often accompanied by singing “nah-nah NAH na naaaah-nah” or similar.

Also known as “cocking a snook.”

Some unsung genius, who really needed a way to convey a message, invented it.

Here is what I found on this link:

http://www.word-detective.com/101797.html