A class of boundary value problems for nonlinear diffusion equations is studied. Using singular perturbation theory and matched asymptotic expansions, the author analyses the interactions of compact-support solutions of the porous media equation with fixed boundaries and with other solutions. The boundary layer analysis yields results on how 'stopping' and 'merging' disturbances at the interface propagate back into the solution. Analysis is also extended to cover merging problems for the fourth-order lubrication equation.