Molecule diffusion in bacteria and consequences of osmotic stress door