How to filter nodes?

I am a newbie to ipfs. Please correct me if I am wrong.

When ipfs download a file, it will randomly select a node that contains the file.
I want to ensure that the download speed is at least a certain level.

so what i want to do is:
If a slow node is selected, switch to other nodes.
how can I config this?

No need. IPFS will request the block from several nodes that have the block and take the first one to reply. I’m not aware of a way to configure the number of nodes contacted and I don’t recall what that number is.