The rule
This rule is about flow. Waste and vent piping should move water, solids, and air with nothing more than the ordinary friction of the pipe. Anything that adds more resistance than that doesn't belong in the system.
The code gives two ways out. The item is shown as acceptable somewhere in the code, or the building department approves it under 301.2.
Things that can run afoul in the field are burrs and chips left inside the pipe (see 309.3), sags and bellies that hold water, and homemade devices stuffed into a line.
The code spells out one carve-out: enlarging a 3 inch closet bend or stub to 4 inches isn't treated as an obstruction. The inspector and the city's adopted edition of the code have the final word.
On the job
- Ream pipe ends and clear the shavings. Chips left in the line slow the flow and catch solids.
- Support drain runs so they can't sag into a belly. A low spot holds water and solids.
- If you want to put something unusual in a drain or vent line, get approval from the building department first, not after the inspection.
The inspector and your city's adopted edition have the final word.