It's generally the latter.
"How do you know" teaches us something; "how do you perceive it" does not.