mucus plug?

What is mucus plug and is it a sign of early labor?? 
Im 34w2ds & had it for 3 days now. 
Its like egg white look with some greenish color.