The heat cycle for a female dog lasts about 3 weeks.
During that time her vulva will swell and she will have a bloody discharge.
While she is in heat your dog will be constantly releasing pheromones which will attract all the male dogs in your neighborhood.
The discharge can be not only messy but also quite smelly.