We'll you need to see a doctor and get an x-ray. you might have an injury causing the problem. Some rest will be good for it. and yes it needs compressing, a good bandage or sports support.
If it has swelled or bruised at all keep compressed, and when ever you get the chance to sit down ice it for 10mins every hour and try to keep it elevated.