These are most often a sign of infection within the human body. They are attempting to drain out any infections within the body. If they are painful and swelling you should see a doctor for possible blood work or other test such as urine to see if infection is present in the body.
You may go to this site for info. If I may further assist please reply back.
__________________
Please click the Green ACCEPT if my answer is helpful. Positive FEEDBACK and Bonus is appreciated.

