Flush a toilet and listen to the sound of the water. Unusual gurgling indicates a possible clog in the pipe vent.
Go to the roof and look down into the small pipe vent to see if any clogs are visible. Use a flashlight so you get a better view. Wear a safety harness and a helmet to protect yourself against falling.
Run a hose down the piping. You'll feel if the hose gets snagged or blocked by a clog. Turn on the water. If the water overflows back onto the roof, there is a stubborn clog that requires removal. The water often removes any mild clogs so the pipe vent is clear again.