Get Pet Questions Answered by Pet Experts
It sounds like your dog might be having some hip or back problems as is evidenced by the swelling.
I suggest that you see the vet tomorrow for an exam and possibly for x-rays to determine the cause.
If nothing else, your vet can give you an anti-inflammatory to help with any pain he might be having.
Let me know if you still have questions.