Three ways to break out is either through Kai, nagashi or direct physical pain.
Three ways to know it's a genjutsu? Well for one you would know that a huge fireball descending from the sky isn't likely or the shinobi is experienced enough to know what a genjutsu is...you tell me the third one.