It's sounds like it could be a mammary tumor. Unspayed female dogs have a 25% chance of getting mammary tumors when they age. The risk is higher if they've had puppies.
Try not to panic as 50% of mammary tumors are benign. Early detection is the key.
Here's a good article for you:
Mammary Tumors (Canine)