Etiquettes

Making salaam to people who we don't know whether they are Muslim or not

Q: Nabi (sallallahu alaihi wasallam) instructed us Muslims to give salaams to those whom we know and those whom we don't know (among the Muslims). How will we know the individuals we are giving salaam to are Muslims or not since we don't know them? Do we just assume that they are Muslims by looking at their clothing, their professions (halaal butcher) or any signs that would be hint of their faith or do we just ask them before giving them salaam?