These commands let you move from frame to frame on the display according to their visible position. Moving to the "next" frame means moving to the next frame to the right; the "previous" frame is the next frame on the left.
It does exactly what's asked for in:
https://emacs.stackexchange.com/questions/29600/switch-to-a-neighboring-frame