In normal operation, a sand filter for pools has water come in at the top, and the water is collected by the laterals at the bottom.
In backwash mode, water is injected through the laterals, and is collected at the top.
Plumbing is used to select for all the correct pathways.