The sunward Poynting flux throughout the magnetosheath and foreshock (directly measured by INERBALL-1, CLUSTER-4, and DOUBLE STAR TC1) and its correlation and bi-correlation with the dynamic pressure of the solar plasma flow have been analyzed. It has been demonstrated for the first time that perturbations caused by resonances in the magnetospheric boundary layers propagate upstream towards the bow shock as the short impulses of the sunward Poynting flux, which excite the strongest three-wave resonances. They are initiated in the foreshock and regulate the bow shock surface oscillations. Another interaction zone near the magnetopause assists plasma flow extra deflection and acceleration around the magnetopause. At the outer boundary of stagnant cusp the turbulent barrier can separate the flowing and stagnant plasmas namely by the three-wave cascades. Therefore, both experiment and magnetohydrodynamic simulation demonstrate the leading role of the discovered waves and nonlinear processes in the collisionless interaction of the plasma flow and magnetic barrier.