how does the caste system work ?

how much different is it than the racism we experience in america ?