Dynamics and generation mechanisms of mesoscale structures in tokamak edge plasmasa)